Cell API
    Preparing search index...

    Interface ChatResponse

    Interface representing the response received from an AI model. This interface provides methods to access the main result or a list of results generated by the AI model, along with the response metadata. It serves as a standardized way to encapsulate and manage the output from AI models, ensuring easy retrieval and processing of the generated information.

    interface ChatResponse {
        metadata: ChatResponseMetadata;
        result: Generation;
        results: Generation[];
    }

    Hierarchy (View Summary)

    Index

    Retrieves the response metadata associated with the AI model's response. The response metadata

    result: Generation

    Retrieves the result of the AI model. The result generated by the AI model

    results: Generation[]

    Retrieves the list of generated outputs by the AI model. The list of generated outputs