unstale

pypi / ag2

ag2

What changed in ag2 0.10 to 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

56 breaking19 security33 deprecations250 new APIs and options2 performance46 behavior and defaults2 tooling168 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

ag2 1261 changes

Breaking changes 44

  • The acp extra now requires agent-client-protocol>=1.0.0,<2; 0.12.x is no longer supported.

    1.3.2release notes

  • A turn ending on a final tool result or client-tool handoff now ends there even if input was queued; queued input goes to the next turn.

    1.3.2release notes

  • ag2.acp.AuthMethod no longer supports the env-var method removed by the SDK.

    1.3.2release notes

  • BridgeState.turn_text is replaced by turn_messages.

    1.3.2release notes

  • Inline media values in DataSource.value and encryptedValue are decoded strictly; invalid Base64, including whitespace and line breaks, receives 400 before the stream starts.

    1.3.2release notes

  • Thought summaries arrive as ModelReasoning instead of being included in reply text.

    1.3.2release notes

  • ACP emits each message chunk as its own ModelMessage event instead of joining a turn's chunks into one string.

    1.3.2release notes

  • In ACP, reply.body is now the agent's final message rather than everything it said.

    1.3.2release notes

  • Token usage is normalized across providers: prompt_tokens includes cache reads and writes, cache token fields are parts of it, and total_tokens is at least prompt_tokens plus completion_tokens. Gemini Live thinking tokens count toward completion_tokens.

    1.3.2release notes

  • Composes a store, the knowledge tool, bootstrap, and event logging; compaction and aggregation are configured through the plugin with corresponding triggers.

    1.3.0release notes

  • AG2 1.3 requires Python 3.11 or newer; environments using Python 3.10 must upgrade.

    1.3.0release notes

  • Fresh root invocations copy their input values, so callers should read results from reply.context.variables rather than their original containers.

    1.3.0release notes

  • Plain values are deep-copied for each branch by default.

    1.3.0release notes

  • Original descendant usage records reach ancestors as they arrive with source identity and are counted once; new delegation rollups are no longer generated.

    1.3.0release notes

  • Supports Anthropic SDK 2.x; the extra now requires anthropic>=1.15.0,<3.

    1.2.2release notes

  • Rejects non-string dataset tags.

    1.2.2release notes

  • The OpenAI SDK requirement is now openai>=3.37.0,<4.

    1.2.2release notes

  • Provides the current Chat Completions behavior as the replacement for OpenAIConfig.

    1.2.2release notes

  • Rejects empty old_content when updating non-empty files.

    1.2.2release notes

  • The ElevenLabs integration now requires elevenlabs>=2.73.0,<3.

    1.2.1release notes

  • Can now return an Input or a sequence of them, so custom channel adapters may need changes.

    1.2.1release notes

  • Tool calls use the configuration that discovered the tool; a Variable(default_factory=...) can no longer route a call to a different server.

    1.2.1release notes

  • Mistral support uses mistralai 3.2 and exposes its new chat parameters; the extra requires mistralai>=3.2.0,<4.

    1.2.1release notes

  • The async_client type is now httpx2.AsyncClient; httpx.AsyncClient still works at runtime but no longer type-checks.

    1.2.1release notes

  • The shell refuses ignored files named through a wildcard.

    1.2.0release notes

  • The | operator creates an independent toolkit collection: tools retain their existing middleware, and source middleware is not inherited by tools from the other side or later additions.

    1.2.0release notes

  • Approval grants are now keyed by tool implementation, binding approval to the specific implementation.

    1.1.1release notes

  • The bedrock extra installs aiobotocore>=3.9.1,<4 instead of boto3; applications that also install boto3 must choose a compatible botocore version.

    1.1.1release notes

  • The session parameter now requires an aiobotocore AioSession; a boto3.Session fails on the first call.

    1.1.1release notes

  • The context() tool now rejects non-positive limit and recent_n values.

    1.1.1release notes

  • readonly mode now allows only commands that cannot write files or run other programs; several commands were removed from its built-in set.

    1.1.1release notes

  • With allowed or readonly enabled, commands are split into argv, checked, and run without a shell; shell syntax is refused and expansions cannot bypass the allow-list.

    1.1.1release notessecurity advisory

  • Each turn exposes one tool per name; later code-declared tools win, while runtime MCP and client tools rank below code-declared tools.

    1.1.1release notes

  • Reserved ag: and a2a: keys are stripped in both directions across A2A, AG-UI, A2UI and NLIP; dropped inbound keys are logged as warnings, and outbound keys are removed before transmission.

    1.1.0release notes

  • A turn now fails instead of waiting indefinitely when nobody can answer a human-input request.

    1.0.3release notes

  • Every AG2 MCP client and server surface now targets the MCP 2.0 protocol.

    1.0.3release notes

  • The dependency bound is now mcp>=2.0.0,<3; update pins below 2.0 before upgrading.

    1.0.3release notes

  • The integration is adapted to TinyFish 0.5 per-product hosts and pinned to the 0.5 release line.

    1.0.2release notes

  • The top-level package is now imported as ag2; the autogen import name is no longer shipped by this repository.

    1.0.0release notes

  • as_tool(stream=...) accepts a Stream instance and rejects invalid types loudly instead of silently.

    1.0.0release notes

  • The autogen import name is no longer shipped by this repository; Classic remains available from its own distribution.

    1.0.0release notes

  • The beta namespace is gone; its contents moved to the top-level ag2 package.

    1.0.0release notes

  • The classic CLI has been removed.

    1.0.0release notes

  • Failures previously discarded silently now surface, so developers should review error handling that relied on the old behavior.

    1.0.0release notes

Security 5

  • Shell command-filter bypasses are fixed.

    1.1.2release notes

  • A new TealTiger policy inspects tool output after the call, so disallowed results can be caught on the way back.

    1.0.5release notes

  • TealTiger governance adds prompt injection detection to its policy set.

    1.0.3release notes

  • Served agent cards are signed and consumed cards are verified, allowing agents to establish that a card came from who it claims.

    1.0.2release notes

  • Transport security is available for agent-to-agent communication over gRPC.

    1.0.2release notes

Deprecations 12

  • Agent(assembly=...) continues to work with deprecation warnings and is scheduled for removal in 1.4.0; register AssemblerMiddleware through middleware= and add HaltCheckMiddleware when using AlertPolicy.

    1.3.0release notes

  • Agent(knowledge=...) continues to work with deprecation warnings and is scheduled for removal in 1.4.0; use plugins=[KnowledgePlugin(...)].

    1.3.0release notes

  • Agent(tasks=...) and Agent.tasks continue to work with deprecation warnings and are scheduled for removal in 1.4.0; construct workers explicitly and delegate through Agent.as_tool().

    1.3.0release notes

  • Continues to work with deprecation warnings and is scheduled for removal in 1.4.0; construct Task(owner_id=..., spec=TaskSpec(...)) directly for standalone work.

    1.3.0release notes

  • Will become an alias for OpenAIResponsesConfig in 1.4; use OpenAIResponsesConfig or OpenAICompletionsConfig explicitly.

    1.3.0release notes

  • The automatically injected tool continues to work with deprecation warnings and is scheduled for removal in 1.4.0; delegate through Agent.as_tool().

    1.3.0release notes

  • Continues to work with deprecation warnings and is scheduled for removal in 1.4.0; construct workers explicitly and delegate through Agent.as_tool().

    1.3.0release notes

  • temperature is deprecated until 1.4.0; SDK 2.x warns and drops it, while SDK 1.x warns and still sends it.

    1.2.2release notes

  • top_k is deprecated until 1.4.0; SDK 2.x warns and drops it, while SDK 1.x warns and still sends it.

    1.2.2release notes

  • top_p is deprecated until 1.4.0; SDK 2.x warns and drops it, while SDK 1.x warns and still sends it.

    1.2.2release notes

  • Deprecated ahead of the 1.4.0 Responses API change; create() emits a DeprecationWarning. Use OpenAICompletionsConfig to keep Chat Completions or OpenAIResponsesConfig to move now.

    1.2.2release notes

  • AG2 Classic now lives in a separate repository and remains installable and maintained; use its distribution rather than upgrading to ag2>=1.0 for existing Classic code.

    1.0.0release notes

New APIs and options 93

  • PermissionPolicy is now exported from ag2.acp.

    1.3.2release notes

  • Enables lifecycle events for ask, run, or resume with a capability value.

    1.3.0release notes

  • Ancestors receive descendant events, including streamed chunks; typed observer callbacks can monitor them without triggering ancestor model or tool handling.

    1.3.0release notes

  • An observed event exposes a live handle to the invocation that authored it, allowing delivery through that invocation's normal handlers.

    1.3.0release notes

  • Controls resumption of responses that reach the per-request token limit.

    1.3.0release notes

  • Retained events can be filtered by type and conditions, selected by first or last match, or counted; since_last_user_input limits queries to the latest user-input interval.

    1.3.0release notes

  • Configures the maximum accepted event size for tool results.

    1.3.0release notes

  • Keeps a value from being inherited by descendants.

    1.3.0release notes

  • Shares one binding across an invocation tree, including replacement of its value; applications provide synchronization for concurrent updates.

    1.3.0release notes

  • Defines whether values are copied per branch, local to an agent, or shared across an invocation tree.

    1.3.0release notes

  • Provides current facts before the model's next decision; callbacks support dependency injection and can persist snapshots as service observations.

    1.3.0release notes

  • Captures the complete ordered model input for each call.

    1.3.0release notes

  • Enables lifecycle events with an expiry deadline for an external observer; it does not impose a local execution timeout.

    1.3.0release notes

  • Updates A2UI to the current spec, including callAgentFunction, agentFunctionResponse and renderer capabilities.

    1.2.2release notes

  • Adds an option to configure or disable the Anthropic SDK's own OpenTelemetry spans.

    1.2.2release notes

  • Adds a typed speed option to AnthropicConfig.

    1.2.2release notes

  • Adds a paid-data toolkit extension.

    1.2.2release notes

  • Adds a timeout that limits each callback.

    1.2.2release notes

  • Adds a timeout that limits each observer callback.

    1.2.2release notes

  • Accepts question_instructions as strings, ag2 inputs or SDK parts, and appends them to the agent prompt.

    1.2.2release notes

  • Provides a way to move to the Responses API now.

    1.2.2release notes

  • Adds a timeout that limits each stream subscriber callback.

    1.2.2release notes

  • Adds a per-invocation timeout for function tool calls; timed-out calls return a TimeoutError to the model, which can continue.

    1.2.2release notes

  • Adds support for Box questions with a BoundingBox response schema.

    1.2.1release notes

  • Adds an extension that measures whether a CompactStrategy makes the agent's next actions worse, not just how many tokens it saves.

    1.2.1release notes

  • The ElevenLabs integration supports Scribe and TTS options.

    1.2.1release notes

  • Adds a Firecrawl search and scrape toolkit.

    1.2.1release notes

  • Adds a Keenable search toolkit.

    1.2.1release notes

  • Adds realtime Mistral speech-to-text support in ag2.live.

    1.2.1release notes

  • Adds a streaming Mistral text-to-speech configuration.

    1.2.1release notes

  • Adds offline Mistral speech-to-text support in ag2.live.

    1.2.1release notes

  • Adds a Mistral text-to-speech configuration.

    1.2.1release notes

  • Accepts a reasoning option for configuring effort and summaries.

    1.2.1release notes

  • ResponseSchema(BoundingBox) enables TypeSafe Box questions to locate objects in images.

    1.2.1release notes

  • Agent cards can be cacheable.

    1.2.0release notes

  • Cache diagnostics support is available in the Anthropic client and config.

    1.2.0release notes

  • Input media type validation is available as an opt-in.

    1.2.0release notes

  • Ollama supports configuring an API key.

    1.2.0release notes

  • Ollama supports a custom HTTP client.

    1.2.0release notes

  • Ollama supports configuring tool names.

    1.2.0release notes

  • OpenAI voice configs accept explicit API keys.

    1.2.0release notes

  • OpenAI Decisions API support is available through OpenAIDecisionsConfig.

    1.2.0release notes

  • Push notification URL validation is exposed and can be configured.

    1.2.0release notes

  • The Question marker is available for shared decision schemas used with OpenAI and TypeSafe.

    1.2.0release notes

  • AG-UI serves version 1.0.

    1.1.2release notes

  • Plugins can be scoped to an invocation.

    1.1.2release notes

  • A tool in a served agent can ask a human a question through context.input(); the question arrives as the AG-UI run's interrupt outcome and the answer comes in the next run's resume.

    1.1.1release notes

  • Install this extra to use the TypeSafe Jev provider.

    1.1.0release notes

  • ConversationContext.enqueue() announces a transient event after appending to an agent's inbox, allowing a live session to react between model responses.

    1.1.0release notes

  • Adds TypeSafe Jev support for decision-only agents; response schemas express typed questions, with probabilities and confidence on ModelMessage.metadata. Tools and streaming are unsupported.

    1.1.0release notes

  • A served agent can own its HTTP transport settings.

    1.0.6release notes

  • Prompt cache controls are exposed for OpenAI chat and responses.

    1.0.6release notes

  • Adds diagnostics for OpenAI prompt caching.

    1.0.6release notes

  • Adds a rate_limit governance policy for tealtiger.

    1.0.6release notes

  • You can control which sources supply URLs that web-fetch can fetch.

    1.0.6release notes

  • AG2 can now serve MCP Apps, with structured tool output and extension support.

    1.0.5release notes

  • A new built-in tool provides improved event handling for Anthropic.

    1.0.4release notes

  • TealTiger governance can validate tool arguments before the call runs.

    1.0.4release notes

  • Concurrent task fan-out to subagents can be bounded to set a ceiling on how many run at once.

    1.0.4release notes

  • Toolkit tools can be namespaced to prevent tools from different toolkits colliding on name.

    1.0.4release notes

  • AG2 supports the OpenAI SDK 3.x line, including hosted shell and MCP events.

    1.0.4release notes

  • The function is now exported so developers can turn spans into traces in their own tooling.

    1.0.4release notes

  • An AG2 Agent served over ACP can resume a prior session rather than starting fresh on every connection.

    1.0.4release notes

  • TealTiger governance can deny specific tools by pattern, as an alternative to enumerating permitted tools.

    1.0.4release notes

  • A new community search extension is available.

    1.0.3release notes

  • MCP servers can now expose metadata about themselves.

    1.0.3release notes

  • Define user extensions on top of the A2A protocol.

    1.0.2release notes

  • Any AG2 Agent can now be exposed as an ACP agent for ACP clients to drive.

    1.0.2release notes

  • ACP agents can be driven across a network boundary over HTTP and WebSocket, with support for answering their questions mid-task.

    1.0.2release notes

  • ACP configurations add Kilo Code support and model selection.

    1.0.2release notes

  • An agent's composition is exposed as read-only properties for inspection without reaching into internals.

    1.0.2release notes

  • ElevenLabs is available as a realtime voice provider for LiveAgent.

    1.0.2release notes

  • Gemini now supports HEIC and HEIF image inputs.

    1.0.2release notes

  • Middleware can report its configuration, making a middleware stack inspectable at runtime.

    1.0.2release notes

  • A community extension provides deterministic governance as middleware.

    1.0.2release notes

  • A community extension provides sandbox integration for isolated execution.

    1.0.2release notes

  • Adds full Mistral SDK support, including streaming, multi-modality, and structured outputs.

    1.0.1release notes

  • Adds MistralConfig for the Mistral API.

    1.0.1release notes

  • Adds Agent Client Protocol support for driving CLI coding agents.

    1.0.0release notes

  • Adds support for a new Anthropic code_execution version.

    1.0.0release notes

  • Adds FileSearchTool support for OpenAI Responses.

    1.0.0release notes

  • Gemini FileSearchTool now supports store search.

    1.0.0release notes

  • Adds Gemini GoogleMapsTool grounding.

    1.0.0release notes

  • Exposes AG2 tools to CLI coding agents through an MCP tool gateway.

    1.0.0release notes

  • Adds support for the MCP UI extension.

    1.0.0release notes

  • Adds tracing across the multi-agent network.

    1.0.0release notes

  • Adds integration for the Natural Language Interaction Protocol.

    1.0.0release notes

  • Adds support for exporting metrics to a Prometheus scrape endpoint.

    1.0.0release notes

  • Agents can discover and load tools on demand instead of holding the full tool surface in context up front.

    1.0.0release notes

  • Adds SkillsTool support for OpenAI Responses.

    1.0.0release notes

  • __version__ is now exported at the top level of the package.

    1.0.0release notes

  • Adds a tweet search toolkit.

    1.0.0release notes

  • Adds Files API support for the Z.AI provider.

    1.0.0release notes

Performance 1

  • persistent_stream() now reuses a single stream object rather than creating one per call.

    1.0.3release notes

Behavior and default changes 27

  • Python 3.15 is now supported; installing ag2 on that version builds PyYAML from source and requires a C compiler.

    1.3.2release notes

  • A flat dataclass, TypedDict, or Pydantic model can represent several decision questions in one request; unsupported class schemas are rejected locally.

    1.3.2release notes

  • Sends a reply's text over one connection per reply.

    1.3.0release notes

  • Model runs, delegations, and standalone Task blocks share lifecycle transitions; lifecycle events can be enabled for ask, run, or resume.

    1.3.0release notes

  • Anthropic continuation tokens are now included in token usage counts.

    1.2.2release notes

  • Gemini thinking tokens are now included in token usage counts.

    1.2.2release notes

  • xAI reasoning tokens are now included in token usage counts.

    1.2.2release notes

  • render_envelope can now return an Input or a sequence of them, so custom channel adapters may need changes.

    1.2.1release notes

  • A2A servers can run on several replicas.

    1.2.0release notes

  • Anthropic-only web-fetch options are gated by version.

    1.0.6release notes

  • MemorySkill renders its body anew on each read.

    1.0.6release notes

  • Events retain the identifier returned by the provider.

    1.0.6release notes

  • Chat spans now record the full history and tool-call output, rather than a partial view.

    1.0.5release notes

  • AG-UI stream events now carry token usage reporting.

    1.0.4release notes

  • Tool spans record structured and multi-part tool results instead of flattening them.

    1.0.4release notes

  • ACP is upgraded to protocol version 0.12.1.

    1.0.3release notes

  • Conversation handling is updated for the MCP 2.0 model.

    1.0.3release notes

  • An ACP host driving a served AG2 Agent can answer human-input requests raised mid-task.

    1.0.3release notes

  • ACP is upgraded to protocol version 0.12.

    1.0.2release notes

  • Unknown fields now produce a warning instead of being dropped silently.

    1.0.2release notes

  • Durable reasoning items are kept in ConversationPolicy.

    1.0.2release notes

  • Built-in tools now work alongside function calling.

    1.0.2release notes

  • AG2 1.0.1 pins mcp to <2 until compatibility with MCP 2.0 is implemented.

    1.0.1release notes

  • OpenAI encrypted reasoning content is requested when store is false, allowing reasoning to survive without server-side retention.

    1.0.0release notes

  • Read paths are serialized with the connection lock.

    1.0.0release notes

  • UsageEvent telemetry is excluded from history compaction via the __conversational__ marker.

    1.0.0release notes

  • Perplexity requests now send an X-Pplx-Integration attribution header.

    1.0.0release notes

Fixes and other changes 79

  • ACP preserves text and blob resources, resource links, and the structure of tool results.

    1.3.2release notes

  • Sessions left open when the event loop shuts down no longer fail with asynchronous generator is already running; client configs work without async with.

    1.3.2release notes

  • ACP resolves cwd and additional_directories to absolute paths when a session starts.

    1.3.2release notes

  • Fixes reconnect recovery, artifact reconciliation, and cancellation racing completion.

    1.3.0release notes

  • Child processes are now stopped on cancellation, timeout, and close.

    1.3.0release notes

  • Resolves the enclosing task correctly under concurrent sibling tasks.

    1.3.0release notes

  • Final tool batches are retained for correct conversation replay and continuation.

    1.3.0release notes

  • Preserves the artifact type for empty text artifacts.

    1.2.2release notes

  • Maps OpenAI cache_write_tokens to cache_creation_input_tokens for token usage reporting.

    1.2.2release notes

  • Checks the final response when attributing failures.

    1.2.2release notes

  • Fixes streamed completion choice isolation.

    1.2.2release notes

  • Accepts SKILL.md files that start with a UTF-8 BOM.

    1.2.2release notes

  • Preserves explicitly provided empty storage.

    1.2.2release notes

  • ACP keeps input parts separate and sends each part as its own content block based on what the agent advertises; previously non-text parts were dropped.

    1.2.1release notes

  • Removes empty parent directories after deletion.

    1.2.1release notes

  • File listing now enumerates all pages.

    1.2.1release notes

  • File operations honor the configured HTTP client.

    1.2.1release notes

  • Function call IDs are preserved in Gemini history.

    1.2.1release notes

  • It does not catch errors raised by httpx2.

    1.2.1release notes

  • Accepts os.PathLike values.

    1.2.1release notes

  • Lock paths are normalized.

    1.2.1release notes

  • Watchers are notified of both renamed paths.

    1.2.1release notes

  • Response handling accepts Literal schemas.

    1.2.1release notes

  • Explicit media types are honored for local paths.

    1.2.1release notes

  • Multipart tool results are serialized as text.

    1.2.1release notes

  • Tool call IDs remain unique across turns.

    1.2.1release notes

  • Rejects files uploaded to another provider with UnsupportedInputError.

    1.2.1release notes

  • Accepts empty text, raw, and URL parts.

    1.2.1release notes

  • Threshold keys are applied to passthrough feedback.

    1.2.1release notes

  • Knowledge appends are atomic across connections.

    1.2.1release notes

  • Paths after '=' are checked against the ignore list.

    1.2.1release notes

  • Knowledge appends are atomic across stores.

    1.2.1release notes

  • Sizing falls back to the media type for unknown binary kinds.

    1.2.1release notes

  • Falsy Variable and Inject values are resolved from context.

    1.2.1release notes

  • Conversation history order is preserved.

    1.2.1release notes

  • File creation timestamps are preserved.

    1.2.1release notes

  • The language tag is stripped from single-line markdown fences.

    1.2.0release notes

  • on_change can watch a file path.

    1.2.0release notes

  • Dropped log segments are numbered after the highest existing segment.

    1.2.0release notes

  • Evaluation suites saved with a UTF-8 BOM are accepted.

    1.2.0release notes

  • Toolkit discovery refreshes when resolved configuration changes.

    1.2.0release notes

  • Duplicate streaming tool-call IDs are avoided.

    1.2.0release notes

  • Backslashes are escaped when recovering unquoted frontmatter values.

    1.2.0release notes

  • Prefixes are matched literally.

    1.2.0release notes

  • Evaluation Suite items handle null and single-string tags or metadata.

    1.2.0release notes

  • loads accepts null transitions and args.

    1.2.0release notes

  • Local skill ownership is checked before arguments are validated.

    1.1.2release notes

  • Model output schemas are derived from serialization.

    1.1.2release notes

  • Nested scripts execute from their declared paths.

    1.1.2release notes

  • Timeout failures are preserved after the Tenki SDK upgrade.

    1.1.2release notes

  • MCPToolkit and MCPServerTool now send exactly one Authorization header on every provider, regardless of casing of an explicit header next to authorization_token.

    1.1.1release notes

  • Explicit keys and region_name now apply when passed together with session, rather than being silently ignored.

    1.1.1release notes

  • delegate() now closes its channel when sending the first message fails.

    1.1.1release notes

  • Idle expiry and LRU overflow no longer drop an MCP conversation while a turn is running on it.

    1.1.1release notes

  • Protocol-level failures return the prescribed JSON-RPC codes instead of a generic error or a tool result flagged isError.

    1.1.0release notes

  • Prompts with required arguments are validated before rendering.

    1.1.0release notes

  • Prevents a shared event descriptor from retargeting under concurrency, which could leave a tool awaiting a result that never matched and cause intermittent worker-thread hangs on Windows CI.

    1.1.0release notes

  • Only the SDK extra for the chosen A2A transport is required.

    1.0.6release notes

  • Thinking tokens are reported, and a measured zero remains zero.

    1.0.6release notes

  • Semaphore provisioning for max_concurrency is locked per event loop.

    1.0.6release notes

  • Resource template URI variables are decoded when processing MCP resources.

    1.0.6release notes

  • Tool discovery follows pagination to find tools beyond the first page.

    1.0.6release notes

  • AG2 adapts to breaking changes in the Anthropic SDK 1.x line, with Anthropic model name references updated to match.

    1.0.4release notes

  • Retries stop once streaming chunks have been emitted, preventing duplicate output already seen by the caller.

    1.0.4release notes

  • Suite tasks that produce no trace are counted rather than dropped, so suite totals reflect what actually ran.

    1.0.4release notes

  • Async scorer results are now awaited.

    1.0.3release notes

  • The sources from which usage is accounted have been corrected.

    1.0.3release notes

  • The tool type surface now lives in ag2.tools.types.

    1.0.2release notes

  • Built-in tool calls are no longer trimmed away from their reasoning item.

    1.0.2release notes

  • media_resolution is sent in the Part shape expected by the SDK.

    1.0.2release notes

  • SDK response nodes that arrive as dicts are now read correctly.

    1.0.2release notes

  • A2UI extension activation now persists on ServerCallContext.state.

    1.0.2release notes

  • Sub-task usage incurred before a failure is now reported rather than lost.

    1.0.2release notes

  • Namespaced delegate targets resolve correctly, and unknown targets are enumerated rather than failing opaquely.

    1.0.0release notes

  • Enum types are preserved across a serialization round-trip.

    1.0.0release notes

  • History is now sized correctly from event content.

    1.0.0release notes

  • Redis listener cancellation is now propagated correctly.

    1.0.0release notes

  • Adds support for the current Anthropic web_fetch tool version.

    1.0.0release notes

  • Adds support for the current Anthropic web_search tool version.

    1.0.0release notes

ag2 0.1416 changes

Breaking changes 1

  • Network now fails fast when a delegate targets itself.

    0.14.0release notes

New APIs and options 11

  • Beta agents can now generate UI on the fly with A2UI.

    0.14.0release notes

  • Agents can resume execution from an intermediate state, enabling fine-grained replays and forking.

    0.14.0release notes

  • Adds an observable run method alongside ask so callers can step through or watch an agent run.

    0.14.0release notes

  • Adds an observable run method alongside ask so callers can step through or watch a reply run.

    0.14.0release notes

  • Gemini configuration now accepts a custom asynchronous httpx client.

    0.14.0release notes

  • Adds a convenience method with per-agent client lifecycle.

    0.14.0release notes

  • Beta Gemini configuration adds image generation, editing, and image_config for fine-tuned image behavior.

    0.14.0release notes

  • Adds MemorySkill to provide code-defined skills.

    0.14.0release notes

  • Skills can now compose across runtimes.

    0.14.0release notes

  • Adds support for package as an OpenAI parameter.

    0.14.0release notes

  • Adds support for Z.AI / GLM models, including GLM 5.2.

    0.14.0release notes

Fixes and other changes 4

  • Compaction preserves tool-call cycles and renders CompactionSummary correctly.

    0.14.0release notes

  • Preserves falsy non-Field defaults on events.

    0.14.0release notes

  • Concatenates multi-part text in non-streaming responses.

    0.14.0release notes

  • Zero-argument tools now emit a valid empty-object JSON Schema.

    0.14.0release notes

ag2 0.1390 changes

Breaking changes 4

  • Aggregation now counts only conversational and work events.

    0.13.4release notes

  • Rejects URLs that do not use the http(s) scheme.

    0.13.2release notes

  • Uses arun for async LangChain tools.

    0.13.1release notes

  • The say tool was removed from DiscussionAdapter.

    0.13.1release notes

Security 4

  • MCP servers can use OAuth Resource Server authentication for production-grade access control.

    0.13.4release notes

  • Escapes string values before eval to prevent code injection; users on prior versions should upgrade.

    0.13.2release notes

  • Blocks shell operators when running in readonly or allowed-command mode.

    0.13.2release notes

  • Adds URL validation to prevent Server-Side Request Forgery in the Document Agent.

    0.13.0release notes

New APIs and options 52

  • A new Beta client brings Amazon Bedrock into the Beta config architecture.

    0.13.4release notes

  • AG2 Agents can now be served as MCP servers, allowing MCP clients to use an AG2 Agent as a tool.

    0.13.4release notes

  • SkillPlugin gives agents access to local skills aligned with the agentskills.io spec, creating a portable extension surface for AG2 Agents.

    0.13.4release notes

  • Usage reporting is now decoupled via UsageEvent, separating LLM calls from usage tracking.

    0.13.4release notes

  • Runs an agent in the background while the parent agent continues, useful for long-running work that should not block the foreground conversation.

    0.13.3release notes

  • Adds a cross-process control plane for hub registration, channel lifecycle, and governance.

    0.13.3release notes

  • Provides a local implementation of the Sandbox protocol.

    0.13.3release notes

  • Agent-as-a-judge and Pairwise judge can now exclude reference answers.

    0.13.3release notes

  • Adds the ability to export run_agent spans to an external backend.

    0.13.3release notes

  • Introduces a protocol abstraction for sandboxed execution.

    0.13.3release notes

  • Carries envelopes between hub and clients over WebSocket, with auth and delivery semantics.

    0.13.3release notes

  • Adds a next-generation Anthropic client using the UnifiedResponse architecture.

    0.13.2release notes

  • Adds a beta evaluation framework for grading agent outputs.

    0.13.2release notes

  • Adds a next-generation AWS Bedrock client returning UnifiedResponse with provider, model, text, usage, and cost.

    0.13.2release notes

  • Adds a threshold scorer and agent_judge(threshold=) for pass/fail gating in beta evaluations.

    0.13.2release notes

  • Adds a Classic experimental TinyFish fetch tool.

    0.13.2release notes

  • Adds a Classic experimental TinyFish search tool.

    0.13.2release notes

  • Adds a Beta toolkit exposing TinyFish search and fetch APIs.

    0.13.2release notes

  • Adds support for workflow-based agents introduced in llama-index 0.13.

    0.13.2release notes

  • Adds file API support in the Beta xAI provider.

    0.13.2release notes

  • New middleware gates middleware activation based on event conditions.

    0.13.1release notes

  • Allows custom span attributes and values for telemetry.

    0.13.1release notes

  • Agents can create an agent dynamically through their tooling.

    0.13.1release notes

  • Adds event type negation to _ConditionMeta, enabling expressions such as ~ToolCallEvent.

    0.13.1release notes

  • The AG-UI stream handler supports media inputs.

    0.13.1release notes

  • AG-UI supports multimodal user message content.

    0.13.1release notes

  • N-party channels support [name] prefixes for clearer multi-party addressing.

    0.13.1release notes

  • AG-UI supports reasoning messages in both directions.

    0.13.1release notes

  • Adds support for xAI (Grok) models.

    0.13.1release notes

  • Connects to a remote A2A endpoint as if it were an LLM provider.

    0.13.0release notes

  • Allows an AG2 Agent to be exposed over A2A.

    0.13.0release notes

  • Adds A2A v1.0 support in the Beta framework.

    0.13.0release notes

  • Adds full-duplex realtime voice agents backed by provider realtime APIs, with continuous bidirectional sessions, built-in VAD and barge-in, and tool support.

    0.13.0release notes

  • Defines a protocol for custom adapters, letting developers specify manifests, state, and turn-taking rules while reusing the network's durability and identity layers.

    0.13.0release notes

  • Adds a built-in 1-to-1, one-round channel pattern with strict question-and-response behavior and automatic closure.

    0.13.0release notes

  • Adds a built-in, long-running, multi-turn 1-to-1 channel pattern with bidirectional exchanges.

    0.13.0release notes

  • Adds a built-in N-party turn-taking channel pattern with round-robin, dynamic, or static ordering.

    0.13.0release notes

  • Adds configuration support for passing extra_body to Anthropic requests.

    0.13.0release notes

  • Adds human peers as first-class participants on the network.

    0.13.0release notes

  • Adds opt-out flags for more control over knowledge harness behavior.

    0.13.0release notes

  • Adds client-side MCP connections that discover tools and execute them locally, supporting remote HTTP and local stdio subprocesses.

    0.13.0release notes

  • Adds provider-side MCP connections that forward the server URL and credentials to the LLM provider.

    0.13.0release notes

  • Introduces a multi-agent runtime built around durable, identity-scoped, protocol-typed channels with append-only event logs and built-in orchestration patterns.

    0.13.0release notes

  • Adds an immutable, hub-stamped identity record for agents on the network.

    0.13.0release notes

  • Adds federation that lets a channel span two hubs, supporting cross-organization channels.

    0.13.0release notes

  • Adds a mutable agent track record with observed stats, used by discovery to rank agents by observed outcomes.

    0.13.0release notes

  • Adds an LLM-facing document as part of the network's three-record agent identity.

    0.13.0release notes

  • Adds an audio peer that shares conversation context with the agent.

    0.13.0release notes

  • Adds a foundation for managing long-running agent tasks.

    0.13.0release notes

  • Allows a realtime session to retain low-latency turn detection while disabling audio output.

    0.13.0release notes

  • Adds Thinking Level support to the Gemini and Vertex AI client, including thinking token usage tracking.

    0.13.0release notes

  • Adds declarative workflow orchestration with conditions and dynamic handoffs for multi-agent channels.

    0.13.0release notes

Behavior and default changes 6

  • Network now supports agents in separate processes and machines participating in the same channels.

    0.13.3release notes

  • Empty parameters are omitted from Beta OpenAI configs.

    0.13.2release notes

  • Uses a serializable guardrail response schema.

    0.13.1release notes

  • The Beta filesystem toolset pins read and write encoding to UTF-8.

    0.13.1release notes

  • Tools can signal completion to the WorkflowAdapter, ending the workflow from within a tool call.

    0.13.1release notes

  • Makes the knowledge aggregation lifecycle observable.

    0.13.0release notes

Fixes and other changes 24

  • The A2A protocol version is validated during connection.

    0.13.3release notes

  • Prevents a NoneType crash when a tool result is missing.

    0.13.3release notes

  • The local ChatCompletion model is synchronized with the moderation field in openai 2.41.0.

    0.13.3release notes

  • Guards against a second matching event aborting the turn.

    0.13.3release notes

  • A2A now creates the artifact before appending streamed text chunks.

    0.13.3release notes

  • Prevents AutoPattern from silently ignoring TerminateTarget.

    0.13.3release notes

  • The Beta OpenAI client maps reasoning tokens to thinking_tokens rather than cache_creation.

    0.13.3release notes

  • Writes the user-defined functions module as UTF-8.

    0.13.2release notes

  • Reads files as UTF-8 to prevent Windows charmap errors.

    0.13.2release notes

  • Fixes DeepResearchAgent returning a None summary.

    0.13.2release notes

  • Writes Docling conversion artifacts as UTF-8 to avoid Windows encoding errors.

    0.13.2release notes

  • Writes generated text artifacts as UTF-8 to avoid Windows charmap errors.

    0.13.2release notes

  • Prevents double-registering tools that were already registered.

    0.13.2release notes

  • Coerces the chat summary to str.

    0.13.2release notes

  • Passes working_dir to StdioServerParameters.

    0.13.2release notes

  • Fixes tool_call simulation in agent messages.

    0.13.2release notes

  • Current-turn envelopes render consistently with history, with a coordinator pattern.

    0.13.1release notes

  • Routes keyword-passed positional-or-keyword parameters before **kwargs, fixing tool calls that combine regular arguments with **kwargs.

    0.13.1release notes

  • Initializes the task variable to prevent UnboundLocalError.

    0.13.1release notes

  • Counts Responses image costs per output item.

    0.13.1release notes

  • Pins encoding in mcp_proxy, PythonEnvironment, and Jupyter HTML output.

    0.13.1release notes

  • Pairs tool calls and results correctly after history trimming.

    0.13.0release notes

  • Recursively strips additionalProperties to fix anyOf rejections in the Beta Gemini schema.

    0.13.0release notes

  • Aligns optional-extras pins so dependency resolution succeeds when running uv sync.

    0.13.0release notes

ag2 0.1291 changes

Breaking changes 3

  • Renamed from PerplexitySearchTool to follow the toolkit pattern.

    0.12.3release notes

  • Agent subtasks are disabled by default for safer behavior.

    0.12.2release notes

  • The docker package is now an optional dependency; install it with ag2[docker] to use Docker code execution.

    0.12.1release notes

Security 1

  • Remaining unredacted logger paths now apply redact().

    0.12.1release notes

Deprecations 21

  • PerplexitySearchTool is no longer deprecated and will continue to be supported.

    0.12.1release notes

  • agent_eval is deprecated and planned for removal in v0.14.

    0.12.0release notes

  • AgentOptimizer is deprecated and planned for removal in v0.14.

    0.12.0release notes

  • CrewAIInteroperability is deprecated; the notes recommend LangChain or PydanticAI interop.

    0.12.0release notes

  • FirecrawlTool is deprecated and planned for removal in v0.14.

    0.12.0release notes

  • GPTAssistantAgent is deprecated and planned for removal in v0.14.

    0.12.0release notes

  • ImageGeneration is deprecated and planned for removal in v0.14.

    0.12.0release notes

  • LLaVAAgent is deprecated and planned for removal in v0.14.

    0.12.0release notes

  • MathUserProxyAgent is deprecated and planned for removal in v0.14.

    0.12.0release notes

  • PerplexitySearchTool is deprecated and planned for removal in v0.14.

    0.12.0release notes

  • PythonCodeExecutionTool is deprecated and planned for removal in v0.14.

    0.12.0release notes

  • QdrantRetrieveUserProxyAgent is deprecated and planned for removal in v0.14.

    0.12.0release notes

  • RealtimeAgent is deprecated and planned for removal in v0.14.

    0.12.0release notes

  • RetrieveAssistantAgent is deprecated and planned for removal in v0.14.

    0.12.0release notes

  • SearxngSearchTool is deprecated and planned for removal in v0.14.

    0.12.0release notes

  • SocietyOfMindAgent is deprecated and planned for removal in v0.14.

    0.12.0release notes

  • Swarm functions are deprecated; use the new Group Chat.

    0.12.0release notes

  • SwarmAgent is deprecated and planned for removal in v0.14.

    0.12.0release notes

  • TextAnalyzerAgent is deprecated and planned for removal in v0.14.

    0.12.0release notes

  • WebSearchPreviewTool is deprecated and planned for removal in v0.14.

    0.12.0release notes

  • WebSurferAgent is deprecated and planned for removal in v0.14.

    0.12.0release notes

New APIs and options 40

  • A new top-level Perplexity Search integration is available.

    0.12.3release notes

  • A new Beta tool runs agent-generated code in isolated Daytona or Docker environments.

    0.12.3release notes

  • Adds an opt-in architecture for stateful agents with persistence, assembly, execution, and post-processing stages, enabling memory across sessions and context management without rewriting the agent loop.

    0.12.2release notes

  • Harness LLM calls emit compaction or aggregation completion events on the stream, making their costs visible.

    0.12.2release notes

  • Adds composable assembly policies for shaping agent context, including independent reduction and injection policies.

    0.12.2release notes

  • Adds aggregation that builds long-term memory from short-term experience, including per-session summaries and persistent agent state.

    0.12.2release notes

  • Adds bootstrap support that writes knowledge-store paths and SKILL.md files so agents know where to look on first run.

    0.12.2release notes

  • Adds an agent-owned virtual filesystem with read, write, list, delete, and exists operations, backed by five store implementations.

    0.12.2release notes

  • Builtin tool result events now expose normalized parts.

    0.12.2release notes

  • Makes PerplexitySearchTool available in Beta and integrates it into the search module.

    0.12.2release notes

  • Adds constraint-respecting compaction of the live event stream, with a zero-LLM-cost tail-window option and an LLM-based summarization option.

    0.12.2release notes

  • A LangChain interop factory supports Gemini on Vertex AI.

    0.12.1release notes

  • A DuckDuckGo search tool is available in beta.

    0.12.1release notes

  • A new toolkit for Exa search is available.

    0.12.1release notes

  • A beta Files API client and related file-handling functionality are available.

    0.12.1release notes

  • Step event support enables advanced orchestration patterns.

    0.12.1release notes

  • A new Tavily-powered web search tool is available.

    0.12.1release notes

  • A new API lets developers merge toolkits.

    0.12.1release notes

  • Tools can return Input types and multi-part ToolResult values.

    0.12.1release notes

  • Beta AG-UI support adds UI integration.

    0.12.0release notes

  • Beta agents can delegate tasks using tool calls through the new Tasks API.

    0.12.0release notes

  • Runtime GroupChat candidate filtering is available through AgentEligibilityPolicy.

    0.12.0release notes

  • The beta release adds AgentSpec.

    0.12.0release notes

  • The approval_required middleware adds the allow_always option.

    0.12.0release notes

  • The Beta OpenAI client adds support for the extra_body parameter.

    0.12.0release notes

  • A new Beta tool supports code execution.

    0.12.0release notes

  • A new code executor integrates with Daytona.

    0.12.0release notes

  • A beta toolkit adds file operations.

    0.12.0release notes

  • Beta FunctionTool now supports middleware.

    0.12.0release notes

  • A beta environment supports local shell execution.

    0.12.0release notes

  • A beta tool adds local shell execution.

    0.12.0release notes

  • Beta input support covers Image, Document, Audio, and Video for OpenAI, Gemini, and Anthropic.

    0.12.0release notes

  • Adds Natural Language Interface Protocol support.

    0.12.0release notes

  • Subscribe to Agent events for monitoring and debugging.

    0.12.0release notes

  • A beta plugin system supports composable agent configuration.

    0.12.0release notes

  • Beta search skills support adds skills discovery.

    0.12.0release notes

  • Beta agents are fully serializable.

    0.12.0release notes

  • Beta skills management and discovery are available through the Skills Tool.

    0.12.0release notes

  • Beta Toolkit now supports middleware.

    0.12.0release notes

  • Beta WebSearchTool adds streaming support for web search.

    0.12.0release notes

Performance 1

  • Search tools now use async SDK clients for better performance.

    0.12.3release notes

Behavior and default changes 8

  • AG2 aligns with the v1.0 Agent2Agent protocol specification and provides a compatibility layer for v0.3, enabling interoperability with the broader A2A ecosystem.

    0.12.3release notes

  • The Exa integration header is now set via client.headers.

    0.12.3release notes

  • Redis serialization has moved to the event serializer.

    0.12.2release notes

  • Server-side builtin tool calls are now persisted in history.

    0.12.2release notes

  • Beta support lets developers use models on Google Vertex AI.

    0.12.1release notes

  • Timeouts were added to HTTP requests across multiple modules.

    0.12.1release notes

  • RedisStream events are dispatched locally before publishing.

    0.12.1release notes

  • Improved compatibility with existing ConversableAgents supports handoffs in tool calls.

    0.12.0release notes

Tooling 1

Fixes and other changes 16

  • Updated for the current Exa API.

    0.12.3release notes

  • None content is now handled correctly.

    0.12.3release notes

  • Fixed image handling on both Chat Completions and Responses APIs.

    0.12.3release notes

  • Drains the buffer when a callback outlasts max_wait.

    0.12.2release notes

  • Empty Gemini text parts are dropped, with an AG-UI guard added.

    0.12.2release notes

  • Gemini ToolCallEvent instances now receive unique IDs when the provider omits fc.id.

    0.12.2release notes

  • Adds workload_identity support to OpenAI.

    0.12.2release notes

  • The AG-UI flow was fixed, including handling for the new ToolResult.parts shape in the adapter.

    0.12.1release notes

  • Beta input type mappers were fixed.

    0.12.1release notes

  • A ModuleNotFoundError for this OpenTelemetry exporter module was fixed.

    0.12.1release notes

  • Anthropic Usage calculation now includes total_tokens.

    0.12.1release notes

  • Tool call thought signatures are preserved with VertexAI.

    0.12.1release notes

  • Streaming usage metadata with VertexAI was fixed.

    0.12.1release notes

  • Fixed the DiskCache vulnerability identified as CVE-2025-69872.

    0.12.0release notes

  • Error messages now show actual type names instead of 't'.

    0.12.0release notes

  • Fixed the token-to-char budget calculation.

    0.12.0release notes

ag2 0.1164 changes

Breaking changes 2

  • Updates the client to use the Mistral V2 API.

    0.11.3release notes

  • Migrates the client to OpenAI's Responses v2 API, enabling stateful conversations without manual history management, built-in tools, reasoning features, multimodal applications, structured outputs, and enhanced cost and token tracking.

    0.11.1release notes

Security 6

  • Slack tool dictionary access was made safe.

    0.11.5release notes

  • File operations validate file_name against path traversal.

    0.11.4release notes

  • FileLogger output now redacts sensitive keys to help prevent credential leakage.

    0.11.4release notes

  • MCP resource URIs are validated against path traversal attacks.

    0.11.4release notes

  • ShellExecutor now uses shell=False with shlex.split to prevent command injection.

    0.11.4release notes

  • File operations validate subfolder_path against path traversal.

    0.11.4release notes

New APIs and options 29

  • A new tool generates images.

    0.11.5release notes

  • A new tool manages agent memory and integrates into existing tool schemas.

    0.11.5release notes

  • Redis stream support was added for scalable message handling.

    0.11.5release notes

  • Structured output support using ResponseSchema enables more predictable agent responses.

    0.11.5release notes

  • A new tool executes shell commands.

    0.11.5release notes

  • Telemetry support was added for monitoring and analytics.

    0.11.5release notes

  • Middleware hooks can now be scoped to specific tools for fine-grained control.

    0.11.5release notes

  • A new tool fetches web content.

    0.11.5release notes

  • Domain filtering was added for WebSearchTool.

    0.11.5release notes

  • A new tool and related schemas provide code execution capabilities.

    0.11.4release notes

  • A new middleware hook enables intercepting, transforming, or logging human input during agent conversations.

    0.11.4release notes

  • Tools can return ToolResult with final=True to skip the follow-up LLM call and end the turn immediately.

    0.11.4release notes

  • Introduces AG2 Beta, a redesigned framework that runs alongside the existing AG2 module without breaking current code.

    0.11.3release notes

  • Adds streaming support to the Gemini client.

    0.11.3release notes

  • Lets tools and prompt hooks declare dependencies through Annotated type hints and dependency injection.

    0.11.3release notes

  • Provides a pub/sub event bus for conversation state isolation, real-time streaming, and safe reuse of agents across concurrent users.

    0.11.3release notes

  • Adds an extensible middleware system with built-in history limiting, token limiting, and LLM retry capabilities.

    0.11.3release notes

  • Introduces a unified protocol for LLM support across OpenAI, Anthropic, Gemini, DashScope, and Ollama clients.

    0.11.3release notes

  • Adds a tool for parallel web research that searches and synthesizes information from multiple sources concurrently.

    0.11.3release notes

  • Provides canned LLM responses for unit tests without network calls.

    0.11.3release notes

  • Adds an integration with the TinyFish scraper for web content extraction.

    0.11.3release notes

  • Added support for custom HTTP headers in OpenAILLMConfigEntry and AzureOpenAILLMConfigEntry API requests.

    0.11.2release notes

  • Added support for a new phase key in the Responses client.

    0.11.2release notes

  • Adds processing of human-in-the-loop events in Agent2Agent communication for interactive approval workflows in agent pipelines.

    0.11.1release notes

  • Adds server- and client-side streaming for Agent2Agent communication, including LLM text streaming for real-time remote-agent responses.

    0.11.1release notes

  • Adds event-based streaming for incremental agent-response text updates in AG-UI frontends.

    0.11.1release notes

  • Adds support for Crawl4AI 0.8.x.

    0.11.1release notes

  • AG2 natively supports AG-UI for streaming responses, shared state synchronization, tool call rendering, and human-in-the-loop workflows with compatible frontends.

    0.11.0release notes

  • AG2 supports tracing and instrumentation for local and remote A2A agents, including LLM-level token usage and cost.

    0.11.0release notes

Behavior and default changes 2

  • Adds a User-Agent header to Anthropic API calls.

    0.11.3release notes

  • The Anthropic V1 client adds streaming and non-beta support, improving response handling and compatibility.

    0.11.0release notes

Tooling 1

  • A new command-line interface supports building, running, testing, and deploying multi-agent applications with AG2.

    0.11.5release notes

Fixes and other changes 24

  • Anthropic usage tokens and cached token usage observation were fixed.

    0.11.5release notes

  • Handling of empty tool call arguments in message mappers was fixed.

    0.11.5release notes

  • Anthropic pause_turn handling was fixed.

    0.11.5release notes

  • Message platform tools now initialize sent_message_id before the loop.

    0.11.5release notes

  • Three bugs in ToolCallEvent and ToolErrorEvent event handling were fixed.

    0.11.5release notes

  • Three bugs in ToolCallEvent and ToolErrorEvent event handling were fixed.

    0.11.5release notes

  • ClientTool.register now correctly sends ClientToolCall events to the stream.

    0.11.4release notes

  • The Gemini client now handles messages without a content key.

    0.11.4release notes

  • Tool events were refactored into dedicated types for cleaner runtime handling across all providers.

    0.11.4release notes

  • Fixes handling of LLMConfig objects in AgentOptimizer.

    0.11.3release notes

  • Fixes Gemini thought signature handling.

    0.11.3release notes

  • Fixes an IndexError when last_message() is called on an empty conversation.

    0.11.3release notes

  • Adds missing model entries to token_count_utils.

    0.11.3release notes

  • Fixes the tool call type field concatenating during streaming.

    0.11.3release notes

  • Fixed Gemini structured output when using additionalProperties.

    0.11.2release notes

  • Fixed awaiting awaitable tool results during async execution.

    0.11.2release notes

  • Fixed RandomAgentTarget validation in ensure_handoff_agents_in_group.

    0.11.2release notes

  • Replaced bare except statements with except Exception.

    0.11.2release notes

  • Preserved the async wrapper during context variable injection in the group tool executor.

    0.11.2release notes

  • Fixed handling of empty string content in the OpenAI Responses client.

    0.11.2release notes

  • Fixed support for parallel tool calls in the Gemini client.

    0.11.2release notes

  • Improves the error message shown when Docker is not running.

    0.11.1release notes

  • Fixes a TypeError on the ToolCall return type.

    0.11.1release notes

  • Anthropic and OpenAI clients now support messages without a role for Agent-to-Agent communication.

    0.11.0release notes

ag2 0.1054 changes

Breaking changes 2

  • GroupChat now validates that agent names are unique to prevent conflicts.

    0.10.5release notes

  • LLM configurations were restructured, which may affect how developers configure LLMs.

    0.10.1release notes

Security 3

  • Addressed multiple CVEs to improve security posture.

    0.10.5release notes

  • Group chats now provide comprehensive, fine-grained security control.

    0.10.0release notes

  • Policy-guided safeguards now support the initiate_group_chat API.

    0.10.0release notes

New APIs and options 25

  • Added support for OpenAI's GPT 5.2 Codex models, bringing enhanced coding capabilities to agents.

    0.10.5release notes

  • Added an async reply handler to support async workflows.

    0.10.5release notes

  • Added a code executor for research paper execution, expanding support for scientific and research workflows.

    0.10.5release notes

  • The Responses API now supports the shell tool, enabling agents to interact with command-line interfaces.

    0.10.5release notes

  • Supports provider-specific model request fields, enabling advanced features such as Claude 3.7 Sonnet's Thinking Mode.

    0.10.4release notes

  • The Bedrock client now supports exponential backoff and retries to address throttling on the Bedrock Converse API.

    0.10.4release notes

  • Adds step-through execution for group chats, allowing developers to pause and inspect execution event by event.

    0.10.4release notes

  • Adds step-through execution for agent workflows, allowing developers to pause and inspect execution event by event.

    0.10.4release notes

  • The Responses API supports the apply_patch tool with V4A diff format for structured, multi-file code editing.

    0.10.3release notes

  • Added support for OpenAI GPT-5.2 models.

    0.10.3release notes

  • Extended thinking and reasoning configuration is supported for Google Gemini models, allowing control over reasoning depth and latency.

    0.10.3release notes

  • Added support for thought signatures in functions for Gemini 3 models, improving reasoning-trace capture and downstream processing.

    0.10.3release notes

  • Added the xhigh reasoning effort level for enhanced performance on complex tasks.

    0.10.3release notes

  • A2A Client interceptors are supported.

    0.10.2release notes

  • AG2 supports Anthropic’s Structured Output API, enabling schema-guaranteed responses via constrained decoding.

    0.10.2release notes

  • Bedrock clients support structured output through the response_format API.

    0.10.2release notes

  • Events for handoffs were added.

    0.10.2release notes

  • OpenAICompletionsClient supports Pydantic structured outputs.

    0.10.2release notes

  • ThinkingBlock extracts text for Anthropic clients, enabling better reasoning-trace capture and downstream processing.

    0.10.2release notes

  • An A2A Card was added to Agent builder.

    0.10.1release notes

  • A2A human-in-the-loop support was added.

    0.10.1release notes

  • A new FunctionTarget lets a function determine the target in group chats.

    0.10.1release notes

  • GPT-5.1, Codex, and search model configurations were added.

    0.10.1release notes

  • A new V2 OpenAI client architecture provides a foundation for multimodal messages and access to thinking and reasoning tokens, while remaining compatible with agents using V1 clients.

    0.10.1release notes

  • AG2 supports remote agents using the Agent2Agent (A2A) protocol, enabling agents across platforms, frameworks, and vendors to discover, communicate, and collaborate.

    0.10.0release notes

Behavior and default changes 3

  • Event printing now routes through the logging system, giving developers more control over agent output and debugging.

    0.10.3release notes

  • 404 errors now include address information.

    0.10.2release notes

  • Two-agent chat and group chat APIs now accept list[dict] for message content.

    0.10.0release notes

Fixes and other changes 21

  • Fixed import issues for Anthropic beta blocks.

    0.10.5release notes

  • Fixed support for A2A messages without a role.

    0.10.5release notes

  • Fixed shell tool parsing for Windows paths.

    0.10.5release notes

  • Prevented double using_auto_reply events when using async run.

    0.10.5release notes

  • Handles A2A tasks when task start events are missing.

    0.10.4release notes

  • Group chat costs are now aggregated from all participating agents instead of potentially tracking only the manager or last agent.

    0.10.4release notes

  • Avoids Pydantic deprecation warnings on import.

    0.10.4release notes

  • Group chat runs now set agents on RunResponse.

    0.10.4release notes

  • Corrected tool formatting for Anthropic Beta APIs to make tool calling more reliable.

    0.10.3release notes

  • Resolved a validation error when using async default_auto_reply.

    0.10.3release notes

  • Gemini FunctionDeclaration parameters now use proper Schema objects, improving function calling reliability.

    0.10.3release notes

  • Corrected async processing issues for long-running agent tasks.

    0.10.3release notes

  • Fixed tool call extraction from message_retrieval in the OpenAI V2 client.

    0.10.3release notes

  • Fixed handling of img tags in MultimodalConversableAgent.

    0.10.3release notes

  • Fixed tool choice handling for Bedrock structured outputs using the response_format API.

    0.10.3release notes

  • Fixed missing awaits on async calls.

    0.10.2release notes

  • Fixed a Bedrock key error.

    0.10.2release notes

  • Fixed a failure when using structured outputs and streaming with the OpenAI client.

    0.10.2release notes

  • A fix addresses empty A2A messages.

    0.10.1release notes

  • A fix addresses an UnboundLocalError in FunctionTarget.

    0.10.1release notes

  • Fixes tool detection for OpenAI o1 and merging of LLM tools and functions.

    0.10.0release notes