GenkitG
Genkit16mo ago
6 replies
ltd-scarlet

Introduction to function calling  |  Gen...

Do we have support for Tools yet in Genkit Go. Yes, we can define the tools and invoke it directly from the Genkit UI but if we use it with ai.Generate, it comes back with exceptions):

rpc error: code = InvalidArgument desc = Unable to submit request because function parameters schema should be of type OBJECT. Learn more: https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/function-calling error details: name = DebugInfo detail = [ORIGINAL ERROR] generic::invalid_argument: Unable to submit request because function parameters schema should be of type OBJECT. Learn more: https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/function-calling [google.rpc.error_details_ext] { message: "Unable to submit request because function parameters schema should be of type OBJECT. Learn more: https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/function-calling" } stack =

On closer inspection, how do we provide the input and output schema definitions for the ToolDef like it is there for the Genkit JS package.
Google Cloud
This is a master guide to function calling with best practices for generating efficient and readable code on Vertex AI.
Introduction to function calling  |  Generative AI on Vertex AI  | ...
Was this page helpful?