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
- Source
- TraceEvent.scala
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TraceEventclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Attributes
- Source
- TraceEvent.scala
Attributes
- Source
- TraceEvent.scala
Attributes
- Source
- TraceEvent.scala
Attributes
- Source
- TraceEvent.scala
Attributes
- Source
- TraceEvent.scala
Attributes
- Source
- TraceEvent.scala
Attributes
- Source
- TraceEvent.scala
Attributes
- Source
- TraceEvent.scala
Attributes
- Source
- TraceEvent.scala
Attributes
- Source
- TraceEvent.scala
Attributes
- Source
- TraceEvent.scala
Attributes
- Source
- TraceEvent.scala
Attributes
- Source
- TraceEvent.scala
Attributes
- Source
- TraceEvent.scala
Attributes
- Source
- TraceEvent.scala
Attributes
- Source
- TraceEvent.scala
Attributes
- Source
- TraceEvent.scala
Attributes
- Source
- TraceEvent.scala
Attributes
- Source
- TraceEvent.scala
Attributes
- Source
- TraceEvent.scala
Attributes
- Source
- TraceEvent.scala
Attributes
- Source
- TraceEvent.scala
Inherited methods
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Where this event sits in a trace, when its emitter places it in one (design 4.58): the span it is, that span's parent and when it started; the event's timestamp is its end. None for an event traced on its own. Only TraceEvent.CustomEvent, TraceEvent.TokenUsageRecorded, TraceEvent.ErrorOccurred and TraceEvent.AgentRunEnded carry one.
Where this event sits in a trace, when its emitter places it in one (design 4.58): the span it is, that span's parent and when it started; the event's timestamp is its end. None for an event traced on its own. Only TraceEvent.CustomEvent, TraceEvent.TokenUsageRecorded, TraceEvent.ErrorOccurred and TraceEvent.AgentRunEnded carry one.
Attributes
- Inherited from:
- TraceEvent
- Source
- TraceEvent.scala
