Changelog
New Features:
- Claude Prompt Caching (Multi-Block): Three Anthropic prompt caching enhancements, scoped to the Claude model (#7662):
- New
system_prompt_blocks: List[SystemPromptBlock]onClaude— each block hastext,cache, and optionalttl("5m"or"1h") that overrides the model-levelextended_cache_timeflag per block. - New
cache_tools: boolon Claude (Anthropic, AWS Bedrock, VertexAI). Addscache_controlto the last tool so the tool prefix is cached. - Deterministic tool ordering in
Model._format_tools(sort by name), so request prefixes stay stable across runs and prompt caches actually hit. Applies across Anthropic, OpenAI, Gemini, and Bedrock.
- New
- Parallel MCP Backend: Added
ParallelMCPBackendas a new web backend forWebContextProvider(#7667). Talks to Parallel's public MCP server atsearch.parallel.ai/mcp, exposingweb_search+web_fetch(compressed markdown output). Keyless by default; Bearer-auth viaPARALLEL_API_KEYfor higher rate limits; optional OAuth endpoint viause_oauth=True. Defaults to a 30s timeout (up fromMCPTools' 10s) becauseweb_fetchfrequently runs longer on large pages.
Improvements:
- OpenAI Model String: Mapped
"openai:"model string prefix toOpenAIResponses(previouslyOpenAIChat). Added"openai-chat:"as a fallback for users who still needOpenAIChat.Agent(model="openai:gpt-5.4")now resolves toOpenAIResponses(id="gpt-5.4").
Bug Fixes:
- A2A: Pinned
a2a-sdk>=0.3.0,<1.0in the release workflow.a2a-sdkv1.0 has breaking changes that need to be adopted in a follow-up. - Cookbook:
- Fixed outdated Redis cookbook docs - removed dependency install and setup commands that are no longer needed (#7615).
- Fixed
output_schemaexample to demonstrateoutput_schemawith a Pydantic model (it was incorrectly usingoutput_modelwith web search). - Fixed typo in
cookbook/05_agent_os/README.mdthat referenced a non-existentagno_agent.py(corrected toagno_assist.py) (#7663).
What's Changed
- chore: map "openai:" model string to OpenAIResponses by @kausmeows in #7655
- fix typo in 05_agent_os readme by @asifshaikh in #7663
- [cookbook] fix outdated docs for Redis by @edlng in #7615
- feat: add ParallelMCPBackend for web search via Parallel MCP by @Mustafa-Esoofally in #7667
- feat: multi-block prompt caching for Claude by @ysolanky in #7662
- chore: Release v2.6.1 by @kausmeows in #7666
New Contributors
- @asifshaikh made their first contribution in #7663
- @edlng made their first contribution in #7615
Full Changelog: v2.6.0...v2.6.1