FunctionCallResultItem
type FunctionCallResultItem = object;Type Declaration
Section titled “Type Declaration”callId
Section titled “callId”callId: string;The ID of the tool call. Required to match up the respective tool call result.
optional id: string;An ID to identify the item. This is optional by default. If a model provider absolutely requires this field, it will be validated on the model level.
name: string;The name of the tool that was called
output
Section titled “output”output: | string | { providerData?: Record<string, any>; text: string; type: "text";} | { detail?: "low" | "high" | "auto" | string & object; image?: | string | { data: string | Uint8Array<ArrayBuffer>; mediaType?: string; } | { url: string; } | { fileId: string; }; providerData?: Record<string, any>; type: "image";} | { file: | string | { data: string | Uint8Array<ArrayBuffer>; filename: string; mediaType: string; } | { filename?: string; url: string; } | { filename?: string; id: string; }; providerData?: Record<string, any>; type: "file";} | ( | { providerData?: Record<string, any>; text: string; type: "input_text";} | { detail?: string; image?: | string | { id: string; }; providerData?: Record<string, any>; type: "input_image";} | { file?: | string | { id: string; } | { url: string; }; filename?: string; providerData?: Record<string, any>; type: "input_file";})[];The output of the tool call.
Type Declaration
Section titled “Type Declaration”string
{ providerData?: Record<string, any>; text: string; type: "text";}{ detail?: "low" | "high" | "auto" | string & object; image?: | string | { data: string | Uint8Array<ArrayBuffer>; mediaType?: string; } | { url: string; } | { fileId: string; }; providerData?: Record<string, any>; type: "image";}{ file: | string | { data: string | Uint8Array<ArrayBuffer>; filename: string; mediaType: string; } | { filename?: string; url: string; } | { filename?: string; id: string; }; providerData?: Record<string, any>; type: "file";}(
| {
providerData?: Record<string, any>;
text: string;
type: "input_text";
}
| {
detail?: string;
image?: | string
| {
id: string;
};
providerData?: Record<string, any>;
type: "input_image";
}
| {
file?: | string
| {
id: string;
}
| {
url: string;
};
filename?: string;
providerData?: Record<string, any>;
type: "input_file";
})[]
providerData?
Section titled “providerData?”optional providerData: Record<string, any>;Additional optional provider specific data. Used for custom functionality or model provider specific fields.
status
Section titled “status”status: "in_progress" | "completed" | "incomplete";The status of the tool call.
type: "function_call_result";