shipfeedAI news, curated daily

00:32:28 CET
21 MAY00:32:28shipfeed
pull to refreshlast sync
Just in — 30 new
§ agents · storyline

AutoGen — python v0.4.9

AutoGen v0.4.9 releases native Anthropic model client support and introduces a breaking serialized state schema change that replaces agent IDs with agent names as keys.

Mar 12 · · primary fetch1 sourceupdated Mar 12 ·

What's New [Breaking] Serialized State Schema Change Starting v0.4.9, the team state is using the agent name as the key instead of the agent ID, and the team_id field is removed from the state. This is to allow the state to be portable across different teams and runtimes. States saved with the old format may not be compatible with the new format in the future. See migration scripts here: https://github.com/ekzhu/autogen-migration/ Anthropic Model Client Native support for Anthropic models. Get your update: ``` pip install -U "autogen-ext[anthropic]" ``` The new client follows the same interface as `OpenAIChatCompletionClient` so you can use it directly in your agents and teams.

```python import asyncio from autogen_ext.models.anthropic import AnthropicChatCompletionClient from autogen_core.models import UserMessage async def main(): anthropic_client = AnthropicChatCompletionClient( model="claude-3-sonnet-20240229", api_key="your-api-key", # Optional if ANTHROPIC_API_KEY is set in environment ) result = await anthropic_client.create([UserMessage(content="What is the capital of France?", source="user")]) # type: ignore print(result) if __name__ == "__main__": asyncio.run(main())…

read full article on github.com
§ sources1 publication · timeline below
  1. github.comautogen python-v0.4.9primary