Skip to content

AnthropicContentBlock

AnthropicContentBlock = { text: string; type: "text"; } | { source: { type: "url"; url: string; } | { data: string; media_type: string; type: "base64"; }; type: "image"; } | { id: string; input: Record<string, unknown>; name: string; type: "tool_use"; } | { content: string | object[]; tool_use_id: string; type: "tool_result"; }

Defined in: backend/src/providers/anthropic.ts:46

Anthropic message content block.