Formats a StructuredTool or RunnableToolLike instance into a format
that is compatible with OpenAI function calling. It uses the zodToJsonSchema
function to convert the schema of the StructuredTool or RunnableToolLike
into a JSON schema, which is then used as the parameters for the OpenAI function.
Formats a
StructuredToolorRunnableToolLikeinstance into a format that is compatible with OpenAI function calling. It uses thezodToJsonSchemafunction to convert the schema of theStructuredToolorRunnableToolLikeinto a JSON schema, which is then used as the parameters for the OpenAI function.