AIDK API Reference / aidk-ai-sdk / AiSdkContentPart
Type Alias: AiSdkContentPart ​
ts
type AiSdkContentPart =
| {
text: string;
type: "text";
}
| {
image: string | Uint8Array;
mimeType?: string;
type: "image";
}
| {
data: string | Uint8Array;
mimeType: string;
type: "file";
}
| {
args: unknown;
toolCallId: string;
toolName: string;
type: "tool-call";
}
| {
isError?: boolean;
result: unknown;
toolCallId: string;
toolName: string;
type: "tool-result";
};Defined in: packages/adapters/ai-sdk/src/components.tsx:30
AI SDK content part types we support.