Repository navigation
feat: support injecting custom LLM clients into Gemini and AnthropicLlm - #5035
brucearctor wants to merge 6 commits into
Conversation
|
Response from ADK Triaging Agent Hello @brucearctor, thank you for your contribution! To help reviewers better understand and verify your changes, could you please add a You can find more details in our contribution guidelines. Thanks! |
|
Hi @brucearctor , Thank you for your contribution! We appreciate you taking the time to submit this pull request. |
looking into them |
- Move Client import to TYPE_CHECKING, remove duplicate top-level import - Exclude client field from Pydantic serialization using Field(exclude=True) - Apply custom client guard to _live_api_client for consistency - Add client parameter to ApigeeLlm.__init__ and forward to super()
|
I think got these comments addressed. While I hate using Any type, to address your comments/suggestions, I failed to find a workaround. |
|
@rohityan any update on this PR? |
…tatus (ogx-ai#5667) # What does this PR do? Update Google Interactions API documentation to reflect the current state after tool calling support merged in ogx-ai#5572. Document the Google ADK limitation where its `Gemini` class cannot accept a custom `genai.Client` with a custom `base_url`, linking to the upstream PR google/adk-python#5035 with workarounds. Fix code examples to use the proper `http_options` API instead of the private `_api_client._url` hack. ## Test Plan Documentation-only change, no code modified. Verified markdown renders correctly by reviewing the raw files. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Sébastien Han <seb@redhat.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Thank you @brucearctor for your contribution! 🎉 Your changes have been successfully imported and merged via Copybara in commit a01d516. Closing this PR as the changes are now in the main branch. |
Enable injecting pre-configured LLM clients into Gemini and AnthropicLlm models to support multi-agent systems with distinct configurations. Addresses #5027.
Testing Plan
I have verified these changes with the following:
Automated Tests
Manual Verification
Verification Command