Skip to main content

LogSpanVariable

Variables attached to Model or ModelStream spans for evaluation tracking. A variable captures a named piece of content (text, image, PDF, etc.) that Adaline uses to power continuous evaluations.

Import

Type Definitions

LogSpanVariable

Properties:
  • name - Variable name, 1–200 characters. Should match a variable name defined in your prompt template.
  • value - The variable content, a discriminated union on modality (LogSpanVariableValue)

LogSpanVariableValue

This is a subset of MessageContent, supporting the modalities relevant for evaluation variables.

Examples

Text Variable

Image Variable

PDF Variable

Using with a Model Span


  • LogSpanModelContent — uses LogSpanVariable in its variables field
  • MessageContent — full content union that LogSpanVariableValue is derived from
  • Span — class where span content with variables is set