Skip to content

python_v0.1.87

Choose a tag to compare

@Tomas2D Tomas2D released this 04 Dec 17:52
· 9 commits to main since this release
python_v0.1.87
c9d1ec5

⚠️ This release has breaking changes. Read the Breaking changes section before upgrading.

Highlights

  • Python 3.14 is supported (#1842).
  • MCP Python SDK 2.x: beeai-framework[mcp] now installs next to packages that need mcp 2.x (mcp>=1.30,<3) (#1828). MCPTool created with from_client reconnects after the MCP server restarts (#2000).
  • NVIDIA NIM chat provider: ChatModel.from_name("nvidia:...") (#1908).
  • Claude Opus 5.5, Sonnet 5.5, Fable 5.1 and Mythos 5.1: these models reject a forced tool choice. They now get the tool call through structured output on Anthropic, Bedrock and Vertex AI (#1979, #1998). Claude models that reject sampling parameters no longer get the implicit temperature=0 (#1991, #1921).
  • DeepSeek tool calling works in thinking mode (#2071).

Breaking changes

AgentStack integration removed (#1870)

AgentStack is no longer maintained. Its integration was deprecated in v0.1.86 and is now removed:

  • the beeai_framework.adapters.agentstack module (AgentStackAgent, AgentStackServer, AgentStackChatModel, ...) and the beeai_framework.adapters.beeai_platform aliases;
  • the [agentstack] and [beeai-platform] extras;
  • the agentstack backend provider, so ChatModel.from_name("agentstack:...") no longer resolves.

Migration: serve agents with A2AServer (pip install 'beeai-framework[a2a]') and call remote agents with A2AAgent or ACPAgent. For models, use a regular backend provider instead of the AgentStack proxies.

A2A adapter now uses a2a-sdk 1.x (#1927)

beeai-framework[a2a] now requires a2a-sdk>=1.3.

  • The a2a types in the public API are the 1.x protobuf types. This covers A2AAgent.agent_card, the a2a fields of A2AServerMetadata, and A2AAgentOutput.event. A2AAgentUpdateEvent.value is now a StreamResponse instead of a (task, update) tuple.
  • The agent card is served at /.well-known/agent-card.json only. It is no longer served at /.well-known/agent.json.
  • A2AServerMetadata.queue_manager is ignored.
  • A2AServer still serves 0.3 clients by default. To serve only the 1.0 protocol, set A2AServerConfig(enable_v0_3_compat=False).

OpenAPITool raises on error responses (#1951)

A non-2xx response now raises ToolError instead of returning an OpenAPIToolOutput with the error status. If your code checks output.status for 4xx or 5xx responses, catch ToolError instead.

Behaviour changes

  • DeepSeek (#2071):
    • The default model is now deepseek-flash. DeepSeek scheduled deepseek-chat and deepseek-reasoner to be discontinued.
    • Requests that force a tool choice turn thinking off, unless you set thinking or reasoning_effort. RequirementAgent forces a tool choice on most steps, so with DeepSeek it now runs without thinking by default.
  • Default models: the default Groq model (#2036) and the default watsonx model (#2076) were replaced because the providers retired the old ones.
  • PromptTemplate no longer HTML-escapes values (#2033).
  • LocalFileBackend reads and writes files as UTF-8 (#2069).

Fixes

More than 60 fixes, among them:

  • Agents:
    • RequirementAgent keeps its requirements after a text reply that isn't a final answer (#2054).
    • ToolCallingAgent honours total_max_retries=0 (#2046).
    • Cycle detection counts only consecutive identical tool calls (#2050, #2066).
    • The final parallel tool exchange stays in memory (#1952).
  • Memory: SlidingMemory, TokenMemory and SummarizeMemory keep each tool call together with its results (#1917, #2041, #1900).
  • JSON Schema to Pydantic conversion handles:
    • self-references (#1970);
    • boolean subschemas (#2065);
    • look-around patterns (#2064);
    • required nullable properties (#2040);
    • optional anyOf/oneOf properties (#2067);
    • property names that aren't valid identifiers (#1953).
  • OpenAPITool:
    • resolves $ref request bodies, parameters and component schemas (#2008, #2012, #2044);
    • applies Path Item parameters (#1966);
    • keeps parameter descriptions (#2006).
  • StreamToolCallMiddleware is scoped to its run and resets between model calls (#2029, #2078).
  • The ChatModel cache key includes the response_format schema (#2031).
  • Environment variables are now read:
    • OLLAMA_BASE_URL by the Ollama models (#2057);
    • OLLAMA_API_HEADERS by OllamaEmbeddingModel (#1926);
    • AZURE_API_HEADERS by the Azure OpenAI chat model (#1960).
  • LangChain adapter: tools and tool choice are sent to the model (#2043), stop sequences are honoured (#1980, #2016), and the finish reason is reported (#1920).

The full list is in the changelog.