galtea.traces object.
Remember that we will be using the
galtea object. More information here.Two Approaches to Trace Collection
The SDK provides two ways to collect traces:1. Automatic Collection (Recommended)
When usinggaltea.inference_results.generate(), trace collection is handled automatically:
2. Manual Collection
For full control over the trace lifecycle:SDK Methods
Context Management
- Start Collection Context
- Get All From Context
- Get Current ID From Context
- Add To Context
- Save Context
- Clear Context
Utilities
Direct API Methods
Related Concepts
Trace
Understand how traces capture the internal operations of your AI agents.