The Trace Service in the Galtea SDK allows you to collect, manage, and persist traces that capture the internal operations of your AI agents during inference. This Service is exposed by theDocumentation Index
Fetch the complete documentation index at: https://docs.galtea.ai/llms.txt
Use this file to discover all available pages before exploring further.
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.