Formats a StructuredTool or RunnableToolLike instance into a
format that is compatible with OpenAI tool 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 tool.
Formats a
StructuredTool
orRunnableToolLike
instance into a format that is compatible with OpenAI tool calling. It uses thezodToJsonSchema
function to convert the schema of theStructuredTool
orRunnableToolLike
into a JSON schema, which is then used as the parameters for the OpenAI tool.