-
Notifications
You must be signed in to change notification settings - Fork 6.5k
feat: google genai integration with tool block #20096
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
Conversation
...-index-integrations/llms/llama-index-llms-google-genai/llama_index/llms/google_genai/base.py
Show resolved
Hide resolved
| "id": part.function_call.id if part.function_call.id else "", | ||
| "name": part.function_call.name, | ||
| "args": part.function_call.args, | ||
| "thought_signature": part.thought_signature, |
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.
I think we might be losing thought signatures here? Although not totally sure either
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.
Yeah, we might be, but ToolCallBlock does not have something that could properly handle the signature and I did not want to open it to additional_kwargs chaos... Although I can do that if we think it is necessary
...index-integrations/llms/llama-index-llms-google-genai/llama_index/llms/google_genai/utils.py
Outdated
Show resolved
Hide resolved
|
I'm still seeing some weird behaviour
|
logan-markewich
left a comment
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.
This looks good to me now, thanks!
Adding
ToolCallBlocksupport in GoogleGenAI integration (e2e tested)