Output object
Reference for the output object structure
All model types return an output object which has the following properties. This object is made available to the scoring functions.
How to use this?
- Generation
- Hosted models are pre-configured to respond with this object
- If you are using Custom scripts, the
execute
method is expected to return this object
- Scoring: If you are writing a custom scorer in Python, you can use this
as a reference for the
output
object sent to the scorer.
Output structure
The value from the model (for chat models, this is the message content from the assistant’s response.)
An arbitrary key (string), value (string) object that can be used to store additional metadata (e.g. retrieved context from a RAG pipeline, or result of a pre-processing step). The metadata is shown on the web reporter and can also be scored.
List of tool call objects in the response from the model.
Tool call
This mirrors the OpenAI tool call object.
A unique identifier for the tool call.
Equal to “function”, since only one type is supported.
The function object.
Function
Name of the function
The arguments to call the function with in a string-ified JSON format