Trace¶
evaldeck.trace.Trace
¶
Bases: BaseModel
Complete execution trace of an agent.
A trace captures everything that happened during an agent's execution, from the initial input to the final output, including all intermediate steps (LLM calls, tool calls, reasoning).
model_post_init
¶
add_step
¶
complete
¶
Mark the trace as complete.
Source code in src/evaldeck/trace.py
to_dict
¶
evaldeck.trace.Step
¶
Bases: BaseModel
A single step in an agent's execution trace.
Steps can represent LLM calls, tool calls, reasoning steps, or human input.
evaldeck.trace.TokenUsage
¶
Bases: BaseModel
Token usage for an LLM call.
cost_estimate
property
¶
Estimate cost based on token usage. Returns None if model unknown.
evaldeck.trace.StepType
¶
Bases: str, Enum
Type of step in an agent trace.
evaldeck.trace.StepStatus
¶
Bases: str, Enum
Status of a step execution.
evaldeck.trace.TraceStatus
¶
Bases: str, Enum
Status of the overall trace execution.