Function formatToOpenAIAssistantTool
- formatToOpenAIAssistantTool(tool): {
function: {
description: string;
name: string;
parameters: JsonSchema7Type & {};
};
type: string;
} Parameters
tool: StructuredToolInterface<ZodObject<any, any, any, any, {}>>
Returns {
function: {
description: string;
name: string;
parameters: JsonSchema7Type & {};
};
type: string;
}
function: {
description: string;
name: string;
parameters: JsonSchema7Type & {};
}
description: string
name: string
parameters: JsonSchema7Type & {}
type: string