Parse field description in function_tool.FunctionTool #245
Unanswered
lienchen0526
asked this question in
Q&A
Replies: 2 comments
|
GOOGLE_AI backend will raise error if response schema is set. Only Vertex AI backend takes response. In the meanwhile, we want to converge to using genai's conversion function. We just haven't gotten bandwidth to test whether it's equivalent to our current implementation. If you're interest, feel free to send us CLs. We use piper as SOT. https://github.com/googleapis/python-genai/blob/main/google/genai/types.py#L1332 |
0 replies
|
BTW I don't think it works by annotating with |
0 replies
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.
I'm currently using
function_tool.FunctionToolto wrap my function in ADK withGOOGLE_AI. For example:Both
UserMetaDataandMailsare apydanticBaseModel. I gave thedescriptionto each fields clearly, hoped to make it visible to Gemini. However, I found the code here will only parse the description of parameter, but not return type (i.e.Mails) when we are usingVERTEX_AI:I wonder if we can make the
descriptionof the returned type also be parsed even we are usingGOOGLE_AI? Or there are some limitations I missed? Many thank.If it is feasible, I have a pull request: #88
Reference:
Best Regards,
Jerry
My LDAP: jerrylien@google.com
All reactions