v1.21.0 #1411
Closed
Unshure
announced in
Announcements
v1.21.0
#1411
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Major Features
Custom HTTP Client Support for OpenAI and Gemini - PR#1366
The OpenAI and Gemini model providers now accept a pre-configured client via the
clientparameter, enabling connection pooling, proxy configuration, custom timeouts, and centralized observability across all model requests. The client is reused for all requests and its lifecycle is managed by the caller, not the model provider.Gemini Built-in Tools (Google Search, Code Execution) - PR#1050
Gemini models now support native Google tools like GoogleSearch and CodeExecution through the
gemini_toolsparameter. These tools integrate directly with Gemini's API without requiring custom function implementations, enabling agents to search the web and execute code natively.Hook-based Model Retry on Exceptions - PR#1405
Hooks can now retry model invocations by setting
event.retry = Truein theAfterModelCallEventhandler, enabling custom retry logic for transient errors, rate limits, or quality checks. This provides fine-grained control over model retry behavior beyond basic exception handling.Per-Turn Conversation Management - PR#1374
Conversation managers now support mid-execution management via the
per_turnparameter, applying conversation window management before each model call rather than only at the end. This prevents context window overflow during multi-turn conversations with tools or long responses.Agent Invocation Metrics - PR#1387
Metrics now track per-invocation data through
agent_invocationsandlatest_agent_invocationproperties, providing granular insight into each agent call's performance, token usage, and execution time. This enables detailed performance analysis for multi-invocation workflows.ToolRegistry Replace Method - PR#1182
The
ToolRegistrynow supports replacing existing tools via thereplace()method, enabling dynamic tool updates without re-registering all tools. This is particularly useful for hot-reloading tool implementations or updating tools based on runtime conditions.Web and Search Result Citations - PR#1344
Citations now support web locations (
WebLocation) and search result positions (SearchResultLocation), enabling agents to reference specific URLs and search result indices when grounding responses in retrieved information.A2A Server FastAPI/Starlette Customization - PR#1250
A2A servers now support passing additional kwargs to FastAPI and Starlette app constructors via
app_kwargs, enabling customization of documentation URLs, debug settings, middleware, and other application-level configuration.Major Bug Fixes
Citation Streaming and Union Type Fix - PR#1341
Fixed
CitationLocationto properly handle union types and correctly join citation chunks during streaming, resolving issues where citations were malformed or lost in streamed responses.Usage Metrics Double Counting - PR#1327
Fixed telemetry double counting of usage metrics, ensuring accurate token usage tracking and preventing inflated cost calculations.
Tools Returning Image Content - PR#1079
Fixed OpenAI model provider to properly support tools that return image content, enabling vision-capable tools to work correctly.
Deprecation Warning Timing - PR#1380
Fixed deprecation warnings to only emit when deprecated aliases are actually accessed, eliminating spurious warnings for users not using deprecated features.
What's Changed
New Contributors
Full Changelog: v1.20.0...v1.21.0
Beta Was this translation helpful? Give feedback.
All reactions