Parse field description in function_tool.FunctionTool #245
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 |
Beta Was this translation helpful? Give feedback.
-
BTW I don't think it works by annotating with |
Beta Was this translation helpful? Give feedback.
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.FunctionTool
to wrap my function in ADK withGOOGLE_AI
. For example:Both
UserMetaData
andMails
are apydantic
BaseModel. I gave thedescription
to 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
description
of 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
Beta Was this translation helpful? Give feedback.
All reactions