AssistantMessageItem
type AssistantMessageItem = object;
Type declaration
Section titled “Type declaration”content
Section titled “content”content: ( | { providerData: Record<string, any>; refusal: string; type: "refusal"; } | { providerData: Record<string, any>; text: string; type: "output_text"; } | { providerData: Record<string, any>; text: string; type: "input_text"; } | { audio: | string | { id: string; }; format: null | string; providerData: Record<string, any>; transcript: null | string; type: "audio"; } | { image: string; providerData: Record<string, any>; type: "image"; })[];
optional id: string;
providerData?
Section titled “providerData?”optional providerData: Record<string, any>;
role: "assistant";
status
Section titled “status”status: "in_progress" | "completed" | "incomplete";
optional type: "message";