Skip to content

v0.4.0.dev12

Pre-release
Pre-release
Compare
Choose a tag to compare
@ekzhu ekzhu released this 27 Dec 20:09
· 25 commits to main since this release
d933b9a

Important Changes

  • run and run_stream now support a list of messages as task input.
  • Introduces AgentEvent union type in AgentChat, for all messages that are not meant to be consumed by other agents. Replace AgentMessage with AgentEvent | ChatMessage union type in your code, e.g., in your custom selector function for SelectorGroupChat and processing code for TaskResult.messages.
  • Introduce ToolCallSummaryMessage to ChatMessage for tool call results from agents. Read AssistantAgent Doc
  • Introduce ModelContext parameter for AssistantAgent, allow usage of BufferedChatCompletionContext to limit context window size sent to model.
  • Introduce ComponentConfig and add configuration loader for ChatCompletionClient. See Component Config
  • Moved autogen_core.tools.PythonCodeExecutorTool to autogen_ext.tools.code_execution.PythonCodeExecutionTool.
  • Documentation updates.

Upcoming Changes

  • Deprecating @message_handler. Use @event or @rpc to annotate handlers instead. @message_handler will be kept with a deprecation warning until further notice. #4828
  • Token counting mechanism bug fixes #4719

New Contributors

Full Changelog: v0.4.0.dev11...v0.4.0.dev12