OutputMessage interface
An output message produced by a model (OTEL gen-ai semantic conventions).
finish_reason defaults to "stop" per OTel spec when not provided.
- Extends
Properties
| finish_reason | Reason the model stopped generating this message. Defaults to |
Inherited Properties
| name | Optional display name of the message author. |
| parts | Ordered list of content parts that make up the message. |
| role | Role of the message author (e.g. |
Property Details
finish_reason
Reason the model stopped generating this message. Defaults to "stop".
finish_reason?: string
Property Value
string
Inherited Property Details
name
Optional display name of the message author.
name?: string
Property Value
string
Inherited From ChatMessage.name
parts
Ordered list of content parts that make up the message.
parts: MessagePart[]
Property Value
Inherited From ChatMessage.parts
role
Role of the message author (e.g. user, assistant).
role: string
Property Value
string
Inherited From ChatMessage.role