Agents

Genai Traces Chat

Changed on
post/agents/traces/chat

Request

  • Base URL
    https://trace.wandb.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://trace.wandb.ai/agents/traces/chat
  • Auth
    none declared

Request body

project_idstring required
trace_idstring required
include_feedbackboolean
include_model_tool_callsboolean

Include tool calls requested in model outputs, even when no execution span was recorded, and place each execution span after the model span that requested it. Requests without execution evidence have no status, duration, or result. Defaults to false.

Response

Successful Response

trace_idstring required
root_span_namestring nullable required
agent_namestring nullable required
agent_versionstring nullable required
status_code'UNSET' | 'OK' | 'ERROR' nullable required
providerstring nullable required
started_atstring date-time nullable required
ended_atstring date-time nullable required
wb_user_idstring nullable required
total_duration_msinteger nullable required

Wall-clock duration of the trace root span in milliseconds. This is not a sum of child span durations.

total_cost_usdnumber nullable required
total_input_tokensinteger required
total_output_tokensinteger required
total_reasoning_tokensinteger required
total_cache_creation_input_tokensinteger required
total_cache_read_input_tokensinteger required

Changes