v0.4.0.dev12
Pre-release
Pre-release
Important Changes
run
andrun_stream
now support a list of messages astask
input.- Introduces
AgentEvent
union type in AgentChat, for all messages that are not meant to be consumed by other agents. ReplaceAgentMessage
withAgentEvent | ChatMessage
union type in your code, e.g., in your custom selector function forSelectorGroupChat
and processing code forTaskResult.messages
. - Introduce
ToolCallSummaryMessage
toChatMessage
for tool call results from agents. Read AssistantAgent Doc - Introduce
ModelContext
parameter forAssistantAgent
, allow usage ofBufferedChatCompletionContext
to limit context window size sent to model. - Introduce
ComponentConfig
and add configuration loader forChatCompletionClient
. See Component Config - Moved
autogen_core.tools.PythonCodeExecutorTool
toautogen_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
- @hsm207 made their first contribution in #4655
- @iamarunbrahma made their first contribution in #4500
- @inbal2l made their first contribution in #4717
- @r-bit-rry made their first contribution in #4759
- @jspv made their first contribution in #4755
- @akurniawan made their first contribution in #4681
- @lanbaoshen made their first contribution in #4767
- @srjoglekar246 made their first contribution in #4801
- @richard-gyiko made their first contribution in #4826
- @kimmywork made their first contribution in #4732
Full Changelog: v0.4.0.dev11...v0.4.0.dev12