Represents a completion response from an LLM. This includes the ID, creation timestamp, the assistant's message, and optional token usage statistics.
Value parameters
- citations
-
The sources the model cited in its answer, when the provider reports them (see Citation); empty for a model that does not search or does not cite, and for a completion assembled from streamed chunks, which carry none.
- content
-
The main content of the response.
- created
-
When the completion was created. Providers that report a creation time (the OpenAI-format
createdfield, epoch seconds) are converted at the wire boundary; providers that report none stamp the time the response was received. - estimatedCost
-
Optional estimated cost of this completion in USD. Computed from token usage and model pricing when available.
- id
-
Unique identifier for the completion.
- message
-
The assistant's message in response to the user's input.
- model
-
The model that generated this completion.
- toolCalls
-
List of tool calls made by the assistant.
- usage
-
Optional token usage statistics for the completion.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any