Cell API
    Preparing search index...

    Interface ModelResponse<T>

    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 ModelResponse<T extends ModelResult<any>> {
        metadata: ResponseMetadata;
        result: T;
        results: T[];
    }

    Type Parameters

    • T extends ModelResult<any>

      the type of the result(s) provided by the AI model

    Hierarchy (View Summary)

    Index

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

    result: T

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

    results: T[]

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