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