OptionalcitationsCitations supporting the information in the response.
OptionalcontentOptionalcontextThe number of context snippets provided to the model to generate the response. This indicates how much retrieved information was available for the generation, allowing for logic to be applied if no context was found (count is 0).
OptionalfinishIndicates why the chat response generation stopped. This signals the end of the response.
stop: The model finished generating the response.
length: Generation was cut off because the maximum number of tokens allowed was reached.
content_filter: Generation stopped because content was blocked by content filtering rules.
(for example, content that contains hate speech or violent material).
tool_calls: Generation stopped because a tool call was triggered.
OptionalidA unique identifier for this chat response.
OptionalmessageOptionalmodelThe name or identifier of the model used to generate this chat response.
Optionalusage
Describes the response format of a chat request.
Export
ChatModel