v1.7.0 — Cache Me If You Can
This release introduces conversation starters with caching and metadata support, stronger validation, and cleaner FastAPI/MCP behavior, plus a round of stability work in tests and docs.
Breaking Changes
This release completes the v1.x transition by removing deprecated v0.x APIs. If you're still using old patterns, see the Migration Guide.
- Removed deprecated Agency APIs (
agency_chart, completions proxy,message_files), enforced strict Agent kwargs, and removed legacy reminder override behavior. SendMessageno longer accepts themy_primary_instructionsfield. Remove it from tool payloads to avoid schema errors.get_agency_structureis deprecated. Useget_agency_graphfor nodes/edges andget_metadatawhen you need the full metadata bundle.SendMessageHandoffis deprecated and renamed toHandoff.
Features
- feat: conversation starters cache and metadata by @bonk1t in #516:
- Exposes conversation starters in agency graph/FastAPI metadata, adds a cached starter-prompts system with fingerprinting and warmup for sync/streaming runs, removes deprecated completions paths, and refreshes related docs/tests.
- Add shared resource parameters to the agency class by @ArtemShatokhin in #502:
- You can now pass shared tools, tool folders, files folders, and MCP servers once, and have them applied to every agent (with shared vector store support and FastAPI wiring).
- Add local file path support to file urls by @ArtemShatokhin in #498:
- FastAPI now accepts local file paths in
file_urlswhenallowed_local_file_dirsis set, with strict allowlisting, better error reporting, and updated AG-UI handling.
- FastAPI now accepts local file paths in
- Add dynamic client configuration override to fastapi endpoints by @ArtemShatokhin in #503:
- Each request can now override
base_urlandapi_key(and LiteLLM provider keys) viaclient_config.
- Each request can now override
Improvements
- Remove my_primary_instructions by @bonk1t in #499: Simplified
SendMessageschema by removing the redundantmy_primary_instructionsfield. - chore: bump openai-agents to 0.6.4 by @bonk1t in #497: Upgraded
openai-agents(andopenai) and tightened runtime tool type checks so invalid hosted tool inputs are caught earlier. - rename SendMessageHandoff to Handoff by @bonk1t in #507: Introduced
Handoffas the preferred tool name, keptSendMessageHandoffas a deprecated alias, and refreshed docs/tests to match. - fix: tighten tool validation errors by @bonk1t in #501: Agent tool validation now rejects invalid tool entries earlier (like uninitialized hosted tool classes or
FunctionToolclasses). - Rename agency graph metadata APIs by @bonk1t in #517: Added
get_agency_graph(nodes/edges only) andget_metadata(graph + metadata), plus updated visualization and docs.
Fixes
- fix: pass uvicorn_config through run_mcp by @bonk1t in #510:
run_mcpnow forwards Uvicorn settings to FastMCP for HTTP/SSE servers, and MCP examples are more runnable out of the box. - Fix tools_folder relative imports with stable namespace by @ArtemShatokhin in #513: Tools loaded from
tools_foldernow support relative imports reliably.
Tests
- Stabilize tests: standardize models to GPT-5 mini + harden messaging/streaming tests by @bonk1t in #514: Updated test models and added more stable streaming, send_message, and vector-store assertions.
Refactors & Chores
- cleanup: drop deprecated v0/v1 APIs and align docs/tests by @bonk1t in #512: Cleaned out deprecated surfaces and aligned docs/examples/tests to v1.x-only usage.
Full Changelog: v1.6.0...v1.7.0