Get an execution trace
GET/tracing/:execution_id
Returns the trace of an agent execution that ran with tracing or attributions set to true: the input values, the fragments that each retrieval placeholder retrieved and the messages as sent to the LLM. For an execution with attributions, the trace also holds the answer and, for each sentence of the answer, the retrieved fragments that support the sentence, from the moment the answer is complete. Foundation4 keeps a trace for 60 minutes after the execution.
Permissions. None on an object. Only the API key that ran the execution can read the trace.
Agents and prompt templates describes tracing.
Request
Responses
- 200
- 401
- 404
The trace.
The authentication headers are missing or invalid, or the API key is inactive or expired. Errors lists the messages.
No trace with this identifier exists for the key: the trace expired, a different API key ran the execution or the identifier is wrong (Trace not found, with the identifier in details.id).