Skip to main content
MessagePart = { content: string; type: "text"; } | { content: string; type: "reasoning"; } | { arguments?: string; toolCallId: string; toolName: string; type: "tool_call"; } | { result?: string; toolCallId: string; type: "tool_result"; } | { fileId: string; mimeType?: string; modality: Modality; type: "file"; } | { content: string; mimeType: string; modality: Modality; type: "blob"; } | { modality: Modality; type: "uri"; uri: string; }
Defined in: src/genai/types.ts:23