Skip to main content

LogSpanVariable

Variable attached to a Model or ModelStream span for evaluation tracking.

Overview

LogSpanVariable pairs a variable name with a content value. When attached to a LogSpanModelContent or LogSpanModelStreamContent span, the variable is available for continuous evaluations in Adaline.

Fields

name
str
required
The variable name. 1–200 characters.
value
LogSpanVariableValue
required
The variable’s content value. LogSpanVariableValue is a discriminated union (on modality) that wraps one of: TextContent, ImageContent, PdfContent, ReasoningContent, ToolCallContent, or ToolResponseContent.

LogSpanVariableValue

The value field accepts any content type supported by the Adaline message schema, wrapped in a LogSpanVariableValue union via actual_instance.

Examples

Text Variable

Image Variable

Attaching to a Model Span


Serialization


JSON Example