A model returned a completion. A client wrapped in TracingLLMClient fills in the call's details as well, which a backend that follows the OpenTelemetry GenAI conventions reports on the call's chat <model> span (#2275).
Value parameters
- content
-
the completion's text: message content, which backends record only when told to
- duration
-
how long the call took; the event's
timestampis its end - finishReasons
-
why the model stopped, as the provider reported it
- id
-
the completion's id (
gen_ai.response.id) - input
-
the request's messages: message content, which backends record only when told to; not included in toJson
- model
-
the requested model (
gen_ai.request.model) - options
-
the options the request was sent with
- provider
-
the canonical id of the provider called (
openai,anthropic, ...), when known - responseModel
-
the model that answered, when the provider reported it
- serverAddress
-
the host the request went to, when known
- streamed
-
whether the completion was streamed (
streamComplete) - toolCalls
-
how many tool calls the completion asked for
- usage
-
the call's token usage, when the provider reported it
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TraceEventclass Objecttrait Matchableclass Any