Skip to main content

Returns

This method returns None. Traces are saved to the platform and the context is automatically cleared.

Example

galtea.traces.save_context(
    session_id="YOUR_SESSION_ID",
    inference_result_id="YOUR_INFERENCE_RESULT_ID"
)

Parameters

session_id
string
required
The ID of the session to associate the traces with.
inference_result_id
string
The ID of the inference result to associate the traces with.
After save_context() completes, the trace context is automatically cleared.