Function formatToOpenAIAssistantTool
- formatToOpenAIAssistantTool(tool): {
function: {
description: string;
name: string;
parameters: JsonSchema7Type & {
$schema?: string;
definitions?: {
[key: string]: Target extends "jsonSchema7"
? JsonSchema7Type
: Target extends "jsonSchema2019-09"
? JsonSchema7Type
: object;
};
};
};
type: string;
} Parameters
- tool: StructuredToolInterface<ZodObjectAny>
Returns {
function: {
description: string;
name: string;
parameters: JsonSchema7Type & {
$schema?: string;
definitions?: {
[key: string]: Target extends "jsonSchema7"
? JsonSchema7Type
: Target extends "jsonSchema2019-09"
? JsonSchema7Type
: object;
};
};
};
type: string;
}
function: {
description: string;
name: string;
parameters: JsonSchema7Type & {
$schema?: string;
definitions?: {
[key: string]: Target extends "jsonSchema7"
? JsonSchema7Type
: Target extends "jsonSchema2019-09"
? JsonSchema7Type
: object;
};
};
}
description: string
name: string
parameters: JsonSchema7Type & {
$schema?: string;
definitions?: {
[key: string]: Target extends "jsonSchema7"
? JsonSchema7Type
: Target extends "jsonSchema2019-09"
? JsonSchema7Type
: object;
};
}
type: string