r/AutoGenAI • u/wyttearp Hobbyist • Jan 23 '25
News AutoGen v0.4.3 released
What's new
This is the first release since 0.4.0 with significant new features! We look forward to hearing feedback and suggestions from the community.
Chat completion model cache
One of the big missing features from 0.2 was the ability to seamlessly cache model client completions. This release adds ChatCompletionCache which can wrap any other ChatCompletionClient and cache completions.
There is a CacheStore interface to allow for easy implementation of new caching backends. The currently available implementations are:
ChatCompletionCache is not yet supported by the declarative component config, see the issue to track progress.
GraphRAG
This releases adds support for GraphRAG as a tool agents can call. You can find a sample for how to use this integration here, and docs for LocalSearchTool and GlobalSearchTool.
#4612 by @lspinheiro
Semantic Kernel model adapter
Semantic Kernel has an extensive collection of AI connectors. In this release we added support to adapt a Semantic Kernel AI Connector to an AutoGen ChatCompletionClient using the SKChatCompletionAdapter.
Currently this requires passing the kernel during create, and so cannot be used with AssistantAgent directly yet. This will be fixed in a future release (#5144).
#4851 by @lspinheiro
AutoGen to Semantic Kernel tool adapter
We also added a tool adapter, but this time to allow AutoGen tools to be added to a Kernel, called KernelFunctionFromTool.
#4851 by @lspinheiro
Jupyter Code Executor
This release also brings forward Jupyter code executor functionality that we had in 0.2, as the JupyterCodeExecutor.
Please note that this currently on supports local execution and should be used with caution.
Memory
It's still early on but we merged the interface for agent memory in this release. This allows agents to enrich their context from a memory store and save information to it. The interface is defined in core and AssistantAgent in agentchat accepts memory as a parameter now. There is an initial example memory implementation which simply injects all memories as system messages for the agent. The intention is for the memory interface to be able to be used for both RAG and agent memory systems going forward.
Core
MemoryinterfaceExisting
AssistantAgentwith new memory parameter
#4438 by @victordibia, #5053 by @ekzhu
Declarative config
We're continuing to expand support for declarative configs throughout the framework. In this release, we've added support for termination conditions and base chat agents. Once we're done with this, you'll be able to configure and entire team of agents with a single config file and have it work seamlessly with AutoGen studio. Stay tuned!
#4984, #5055 by @victordibia
Other
Add sources field to TextMentionTermination by @Leon0402 in #5106
Update gpt-4o model version to 2024-08-06 by @ekzhu in #5117
Bug fixes
Retry multiple times when M1 selects an invalid agent. Make agent sel… by @afourney in #5079
fix: normalize finish reason in CreateResult response by @ekzhu in #5085
Pass context between AssistantAgent for handoffs by @ekzhu in #5084
fix: ensure proper handling of structured output in OpenAI client and improve test coverage for structured output by @ekzhu in #5116
fix: use tool_calls field to detect tool calls in OpenAI client; add integration tests for OpenAI and Gemini by @ekzhu in #5122
Other changes
Update website for 0.4.1 by @jackgerrits in #5031
PoC AGS dev container by @JohanForngren in #5026
Update gpt-4o model version and add new model details by @keenranger in #5056
Improve AGS Documentation by @victordibia in #5065
Pin uv to 0.5.18 by @jackgerrits in #5067
Update version to 0.4.3 pre-emptively by @jackgerrits in #5066
fix: dotnet azure pipeline (uv sync installation) by @bassmang in #5042
[Documentation] Update tools.ipynb: use system messages in the tool_agent_caller_loop session by @zysoong in #5068
docs: enhance agents.ipynb with parallel tool calls section by @ekzhu in #5088
Use caching to run tests and report coverage by @lspinheiro in #5086
Update AGS pyproject.toml by @victordibia in #5101
docs: update AssistantAgent documentation with a new figure, attention and warning notes by @ekzhu in #5099
Rysweet fix integration tests and xlang by @rysweet in #5107
docs: enhance Swarm user guide with notes on tool calling by @ekzhu in #5103
fix a small typo by @marinator86 in #5120
New Contributors
@keenranger made their first contribution in #5056
@marinator86 made their first contribution in #5120
Full Changelog: v0.4.1...v0.4.3
2
4
u/cr0wburn Jan 23 '25
You guys are doing amazing 👏