Formats a StructuredTool or RunnableToolLike instance into a
format that is compatible with OpenAI tool calling. If StructuredTool or
RunnableToolLike has a zod schema, the output will be converted into a
JSON schema, which is then used as the parameters for the OpenAI tool.
Formats a
StructuredToolorRunnableToolLikeinstance into a format that is compatible with OpenAI tool 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.