Cell API
    Preparing search index...

    Interface ChatResponseMetadata

    Interface representing metadata associated with an AI model's response. This interface is designed to provide additional information about the generative response from an AI model, including processing details and model-specific data. It serves as a value object within the core domain, enhancing the understanding and management of AI model responses in various applications.

    interface ChatResponseMetadata {
        extra: Record<string, any>;
        id?: string;
        model?: string;
        promptMetadata: PromptMetadata;
        rateLimit: RateLimit;
        usage: Usage;
    }

    Hierarchy (View Summary)

    Index
    extra: Record<string, any>
    id?: string
    model?: string
    promptMetadata: PromptMetadata
    rateLimit: RateLimit

    AI provider specific metadata on rate limits.

    RateLimit

    usage: Usage

    AI provider specific metadata on API usage.

    Usage