Returns
Returns a Trace object.Example
Parameters
string
required
The ID of the inference result this trace belongs to.
string
required
The name of the tool or function that was called.
string
TraceType value:
SPAN, GENERATION, EVENT, AGENT, TOOL, CHAIN, RETRIEVER, EVALUATOR, EMBEDDING, GUARDRAIL. See Trace Types for details. Other string values are sent to the API unchanged, so values added in newer API versions can be used; the API rejects invalid ones.string
Human-readable description of what this operation does. Useful for documentation and debugging. Maximum size: 1MB.
any
The input data passed to the tool/function. Accepts any JSON-serializable value. Maximum size: 10MB.
any
The output data returned by the tool/function. Accepts any JSON-serializable value. Maximum size: 10MB.
string
Error message if the tool call failed.
float
The time in milliseconds the tool call took.
any
Additional metadata about the trace. Accepts any JSON-serializable value. Maximum size: 10MB.
string
ISO 8601 timestamp when the trace started.
string
ISO 8601 timestamp when the trace ended.