Skip to content

AG2 1.4.0

Latest

Choose a tag to compare

@Lancetnik Lancetnik released this 29 Nov 16:38
4b35b2f

Highlights

❗ Breaking changes

  • OpenAI: OpenAIConfig now uses the Responses API. To keep using Chat Completions, including with servers that only support /chat/completions, switch to OpenAICompletionsConfig. With the new default, requests use store=True; set store=False if you do not want to request response storage.
  • Provider SDKs: The Anthropic integration now requires anthropic>=2,<3. Remove temperature, top_p, and top_k from AnthropicConfig. The Gemini integration now requires google-genai>=3.2,<4 and defaults to the v1 Developer API; use api_version="v1beta" for models available only in beta. The Mistral integration now requires mistralai>=3.9.
  • Agent APIs: Replace Agent(assembly=...) with assembler middleware and Agent(knowledge=...) with KnowledgePlugin. For delegation, replace TaskConfig and Agent(tasks=...) with explicit worker agents exposed through Agent.as_tool(). To create a task directly, use Task(...) instead of Agent.task().

See the 1.4 migration guide for before-and-after examples.

🔒 Security

  • ACP terminal permissions (GHSA-4m42-h2gw-83m5): The ACP client now enforces allow_terminal=False. Previously, it advertised that terminal access was disabled but did not reject terminal requests from a remote agent. Users who rely on this setting should upgrade to 1.4.0.
  • SandboxShellTool path checks on Windows (9232328): The ignore check now rejects paths containing a NUL character before attempting to resolve them.

What's Changed

  • fix(mistral): require mistralai>=3.9 and read typed prompt_tokens_details by @vvlrff in #3723
  • docs: mention OpenBot in the AG-UI overview by @mme in #3722
  • fix(tools): drop bogus kwargs property and set additionalProperties for **kwargs tools by @shengzhaowei in #3716
  • feat(acp): support agent-client-protocol 1.1 by @vvlrff in #3735
  • perf(stream): call framework handlers without dependency injection by @vvlrff in #3718
  • fix(knowledge): preserve line endings in DiskKnowledgeStore read/write by @vvlrff in #3717
  • ci: auto-merge Dependabot updates after required checks by @Lancetnik in #3736
  • fix(openai): handle incomplete, failed and error events in Responses streams by @pcbeingused333 in #3737
  • feat(gemini)!: GeminiDecisionsConfig; require google-genai>=3.2 by @marklysze in #3738
  • refactor(anthropic)!: remove deprecated temperature/top_p/top_k by @vvlrff in #3728
  • feat(openai)!: OpenAIConfig is now an alias for OpenAIResponsesConfig by @vvlrff in #3729
  • refactor(agent)!: remove deprecated Agent.task() by @vvlrff in #3730
  • refactor(agent)!: remove deprecated Agent(assembly=...) by @vvlrff in #3731
  • build(anthropic)!: require anthropic>=2.0.0 by @vvlrff in #3740
  • refactor(agent)!: remove deprecated Agent(knowledge=...) by @vvlrff in #3732
  • refactor(agent)!: remove deprecated TaskConfig and Agent(tasks=...) by @vvlrff in #3733
  • docs: add the 1.4 migration guide by @vvlrff in #3734
  • chore: bump version to 1.4.0 by @vvlrff in #3746

New Contributors

Full Changelog: v1.3.4...v1.4.0