Skip to main content

Create evaluations

Evaluations are created when you call Chat with evaluations enabled (via Portal configuration or SDK parameters). The model output is what gets evaluated, with the request used as context. If a callback is provided, the evaluation is passed to that function asynchronously. If no callback is provided, and stream is true, then the evaluation is available on the last chunk. If no callback is provided and stream is false, then the evaluation can be found on the completion response.

Example (callback)

integer
The Maitai identifier for the application.
string
A unique identifier for the session, passed in from the Chat endpoint.
string
The identifier of the evaluated chat completion request.
array
A list of individual Sentinel results.
string
The unique identifier for the evaluation request.