SAP AI SDK for JavaScript - v2.17.0
    Preparing search index...

    Type Alias PredictResponse

    PredictResponse: {
        additional_information?: string[];
        id: string;
        metadata: PredictMetadata;
        predictions: Record<string, any>[];
        status: PredictStatus;
    } & Record<string, any>

    Response schema for prediction endpoint.

    Example response: { "id": "8f15bafd-5fb8-4a35-bd2f-43c3b5887584", "metadata": {"num_columns": 5, "num_predictions": 1, "num_query_rows": 1, "num_rows": 3}, "predictions": [{"category": [{"confidence": 0.71, "prediction": "Electronics"}], "id": 4}], "status": {"code": 0, "message": "ok"}, }

    Type Declaration

    • Optionaladditional_information?: string[]

      Warnings or informational messages from context selection Default: [].

    • id: string
    • metadata: PredictMetadata
    • predictions: Record<string, any>[]
    • status: PredictStatus