interface AnthropicMessageContentDocument {
    cache_control?: null | AnthropicCacheControl;
    citations?: {
        enabled?: boolean;
    };
    context?: string;
    source: {
        data: string;
        media_type?: string;
        type: string;
    } | {
        type: string;
        url: string;
    } | {
        content: {
            source: {
                data: string;
                media_type?: string;
                type: string;
            } | {
                type: string;
                url: string;
            } | {
                text: string;
                type: string;
            };
            type: string;
        }[];
        type: string;
    };
    title?: string;
    type: "document";
}

Hierarchy

  • AnthropicMessageContentBase
    • AnthropicMessageContentDocument

Properties

cache_control?: null | AnthropicCacheControl
citations?: {
    enabled?: boolean;
}
context?: string
source: {
    data: string;
    media_type?: string;
    type: string;
} | {
    type: string;
    url: string;
} | {
    content: {
        source: {
            data: string;
            media_type?: string;
            type: string;
        } | {
            type: string;
            url: string;
        } | {
            text: string;
            type: string;
        };
        type: string;
    }[];
    type: string;
}
title?: string
type: "document"