Skip to content

ModelResponse

type ModelResponse = object;
output: AgentOutputItem[];

A list of outputs (messages, tool calls, etc.) generated by the model.


optional providerData: Record<string, any>;

Raw response data from the underlying model provider.


optional responseId: string;

An ID for the response which can be used to refer to the response in subsequent calls to the model. Not supported by all model providers.


usage: Usage;

The usage information for response.