-
Notifications
You must be signed in to change notification settings - Fork 495
Add support for Gemini models #129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
saqadri
merged 11 commits into
lastmile-ai:main
from
StreetLamb:feature/google-augmentedllm
Apr 13, 2025
Merged
Add support for Gemini models #129
saqadri
merged 11 commits into
lastmile-ai:main
from
StreetLamb:feature/google-augmentedllm
Apr 13, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…l schema transformation for compatibility with Gemini
… in description and improve any_of handling
…uctor[anthropic] from anthropic's optional dependencies
…r ID in GoogleAugmentedLLM
saqadri
approved these changes
Apr 13, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
@saqadri any idea when we might see a new version of the lib on pip which includes this? Many thanks guys for your effort. Really appreciated. |
saqadri
pushed a commit
that referenced
this pull request
Apr 17, 2025
* feat: add GoogleAugmentedLLM and GoogleSettings * feat: add example for MCP Google Agent with configuration and usage instructions * feat: update GoogleSettings to allow optional API key and enhance tool schema transformation for compatibility with Gemini * feat: add google-genai dependency * refactor: rename project_id to project in MCP agent config schema * feat: enhance transform_mcp_tool_schema to track unsupported keywords in description and improve any_of handling * feat: demonstrate generate_structured in mcp_basic_google_agent example * fix: correct structured output generation in GoogleAugmentedLLM * chore: update instructor dependency to version 1.7.9 and remove instructor[anthropic] from anthropic's optional dependencies * fix: improve error handling and response processing in GoogleAugmentedLLM * fix: remove redundant error handling for missing function call name or ID in GoogleAugmentedLLM
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add support for Gemini models. Currently, JSON schema is not compatible with Gemini models, so a 'good effort' conversion is used to transform it into a subset of OpenAPI 3.0, which Gemini supports.
Resolves #93, resolves #121.