Types¶
Core data types for russo. All types are Pydantic models.
_types
¶
Core data types for russo.
All data flowing through the pipeline is a Pydantic model, giving us validation, serialization, and rich repr for free.
Audio
¶
Bases: BaseModel
Audio data with format metadata.
save
¶
Save audio to a file. Wraps raw PCM in a WAV container if needed.
Usage
audio.save("output.wav")
Source code in src/russo/_types.py
ToolCall
¶
Bases: BaseModel
A normalized tool/function call representation.
Provider-agnostic — parsers convert provider-specific formats into this.
AgentResponse
¶
Bases: BaseModel
Normalized response from an agent, containing extracted tool calls.
raw
class-attribute
instance-attribute
¶
The raw, unparsed response from the provider (for debugging).
ToolCallMatch
¶
Bases: BaseModel
Result of comparing a single expected tool call against actuals.
EvalResult
¶
Bases: BaseModel
Full evaluation result for a test scenario.
summary
¶
Human-readable summary of the evaluation.
Source code in src/russo/_types.py
SingleRunResult
¶
Bases: BaseModel
Result of a single pipeline run within a batch.
BatchResult
¶
Bases: BaseModel
Aggregated results from running the pipeline multiple times.
Covers three scenarios: - Single prompt, N runs (reliability testing) - Multiple prompts, 1 run each (variant testing) - Multiple prompts, N runs each (full matrix)
summary
¶
Human-readable summary grouped by prompt.