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 with with generate()
When using galtea.inference_results.generate(), trace collection is handled automatically:
2. Manual Collection with Context Management
For full control over the trace lifecycle, useset_context() and clear_context():
Set context before running traced functions:
Service Methods
Context Management
Direct API Methods
Related
Trace
Understand how traces capture the internal operations of your AI agents.