The tool to convert to an OpenAI function.
Optionalfields: number | { strict?: boolean }Optionalstrict?: booleanIf true, model output is guaranteed to exactly match the JSON Schema
provided in the function definition.
The inputted tool in OpenAI function format.
Formats a
StructuredToolorRunnableToolLikeinstance into a format that is compatible with OpenAI function calling. IfStructuredToolorRunnableToolLikehas a zod schema, the output will be converted into a JSON schema, which is then used as the parameters for the OpenAI tool.