Returns
Returns a Trace object.Example
Parameters
The ID of the inference result this trace belongs to.
The name of the tool or function that was called.
TraceType value:
SPAN, GENERATION, EVENT, AGENT, TOOL, CHAIN, RETRIEVER, EVALUATOR, EMBEDDING, GUARDRAIL. See Trace Types for details.Human-readable description of what this operation does. Useful for documentation and debugging. Maximum size: 32KB.
The input data passed to the tool/function. Accepts any JSON-serializable value. Maximum size: 128KB.
The output data returned by the tool/function. Accepts any JSON-serializable value. Maximum size: 128KB.
Error message if the tool call failed.
The time in milliseconds the tool call took.
Additional metadata about the trace. Accepts any JSON-serializable value. Maximum size: 128KB.
ISO 8601 timestamp when the trace started.
ISO 8601 timestamp when the trace ended.