Skip to main content
POST
/
agents
/
conversations
/
chat
Genai Conversation Chat
curl --request POST \
  --url https://api.example.com/agents/conversations/chat \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "project_id": "<string>",
  "conversation_id": "<string>",
  "limit": 50,
  "offset": 0,
  "include_feedback": false
}
'
{
  "conversation_id": "<string>",
  "turns": [
    {
      "trace_id": "<string>",
      "root_span_name": "<string>",
      "provider": "<string>",
      "total_duration_ms": 123,
      "messages": [
        {
          "span_id": "<string>",
          "agent_name": "<string>",
          "started_at": "2023-11-07T05:31:56Z",
          "user_message": {
            "text": "<string>",
            "content_refs": [
              "<string>"
            ]
          },
          "assistant_message": {
            "text": "<string>",
            "model": "<string>",
            "reasoning_content": "<string>",
            "reasoning_tokens": 123,
            "input_tokens": 123,
            "output_tokens": 123,
            "duration_ms": 123,
            "content_refs": [
              "<string>"
            ]
          },
          "tool_call": {
            "tool_name": "<string>",
            "tool_arguments": "<string>",
            "tool_result": "<string>",
            "duration_ms": 123,
            "content_refs": [
              "<string>"
            ]
          },
          "agent_start": {
            "model": "<string>",
            "system_instructions": "<string>",
            "tool_definitions": "<string>"
          },
          "agent_handoff": {},
          "context_compacted": {
            "compaction_summary": "<string>",
            "compaction_items_before": 123,
            "compaction_items_after": 123
          },
          "feedback": [
            {}
          ]
        }
      ],
      "feedback": [
        {}
      ]
    }
  ],
  "total_turns": 0,
  "has_more": false,
  "limit": 50,
  "offset": 0,
  "feedback": [
    {}
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

Request to get the multi-turn chat view for a conversation.

project_id
string
required
conversation_id
string
required
limit
integer
default:50

Maximum number of conversation turns to return.

Required range: 0 <= x <= 50
offset
integer
default:0

Number of most-recent turns to skip. Results are returned in chronological order within the selected page.

Required range: x >= 0
include_feedback
boolean
default:false

Response

Successful Response

Multi-turn chat view: an ordered list of per-turn chat responses.

Each entry in turns corresponds to one trace_id, which Weave treats as one conversation turn. This is not necessarily one invoke_agent span: a turn can contain zero, one, or many agent invocations. The frontend can render turn-number dividers between entries and still reuse AgentTraceChatRes rendering for each individual turn.

conversation_id
string
required
turns
AgentTraceChatRes · object[]
total_turns
integer
default:0
has_more
boolean
default:false
limit
integer
default:50
offset
integer
default:0
feedback
Feedback · object[] | null