Open jensroth-git opened 3 months ago
It turns out that you cannot return number
values with Gemini. The following works:
execute: async ({ city }) => {
console.log('getting temperature for ' + city);
return {
temperature: 25,
};
},
It works for me if I return an object, even if I do not define some sort of type verification somewhere...
Description
Getting the following exception when providing a return value from a tool call when using the google generative ai provider.
Uncaught APICallError AI_APICallError: Invalid value at 'contents[2].parts[0].function_response.response' (type.googleapis.com/google.protobuf.Struct), 25
Code example
Additional context
No response