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

    Parameters

    Returns {
        description: string;
        name: string;
        parameterDefinitions: Record<string, any>;
    }

    • description: string
    • name: string
    • parameterDefinitions: Record<string, any>

Generated using TypeDoc