LogSpanVariable
Variables attached toModel 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
name- Variable name, 1–200 characters. Should match a variable name defined in your prompt template.value- The variable content, a discriminated union onmodality(LogSpanVariableValue)
LogSpanVariableValue
Examples
Text Variable
Image Variable
PDF Variable
Using with a Model Span
Related
- LogSpanModelContent — uses
LogSpanVariablein itsvariablesfield - MessageContent — full content union that
LogSpanVariableValueis derived from - Span — class where span content with variables is set