Interface ChatResult

The result of a chat request.

Stubbed

interface ChatResult {
    errorDetails?: ChatErrorDetails;
    metadata?: {
        [key: string]: any;
    };
}

Properties

errorDetails?: ChatErrorDetails

If the request resulted in an error, this property defines the error details.

metadata?: {
    [key: string]: any;
}

Arbitrary metadata for this result. Can be anything, but must be JSON-stringifyable.

Type declaration

  • [key: string]: any