Events are not persisted to memory - they are immutable temporary notifications that stream during execution. They provide immediate feedback about what’s happening (e.g. start, progress chunks, completion) but are not stored permanently. Events are consumed as they’re generated and are ideal for real-time monitoring, progress tracking, and streaming responses. For permanent storage and analysis, this information is captured in Traces.Documentation Index
Fetch the complete documentation index at: https://docs.timbal.ai/llms.txt
Use this file to discover all available pages before exploring further.
Traces
A Trace is the core data structure that captures execution information for every runnable execution, providing a complete audit trail of what happened. This tracing system enables complete observability into your application’s behavior and performance. For the previous llm example events, a trace would look like this:Runs
A Run represents the complete execution of your application - from the moment you invoke a runnable until it finishes. Think of it as the lifecycle of a single request or operation, whether that’s a simple function call or a complex multi-step agent workflow. Every Run is composed of a collection of traces:- Simple execution: Running a single tool generates one trace - the tool’s input, output, timing, and metadata
- Complex execution: Running an agent generates multiple traces as it decides which tools to use, calls LLMs for reasoning, executes tools, and processes results
run_id, creating a complete execution history that you can analyze, debug, or replay.