Returns
Returns a list of Trace objects.Example
Parameters
List of trace objects to create. Each trace should include
session_id, name, and optionally other fields.TraceBase Fields
| Field | Type | Required | Description |
|---|---|---|---|
session_id | str | Yes | ID of the session this trace belongs to |
name | str | Yes | Name of the traced operation |
id | str | No | Client-generated ID (auto-generated if not provided) |
inference_result_id | str | No | ID of the inference result this trace belongs to |
node_type | NodeType | No | Type: TOOL, CHAIN, RETRIEVER, LLM, CUSTOM. See Node Types |
parent_trace_id | str | No | ID of parent trace |
input_data | dict | No | Input parameters |
output_data | dict | No | Output result |
error | str | No | Error message if failed |
latency_ms | float | No | Execution time in milliseconds |
start_time | str | No | ISO 8601 timestamp when the trace started |
end_time | str | No | ISO 8601 timestamp when the trace ended |
metadata | dict | No | Additional custom metadata |