Post Agent Chat
POST /agent/chat
Say something to the agent and get its answer.
kind in the answer says which way the turn went: chat is a reply in
message; work_item means the agent read the message as a job and
STARTED it - work_item_id is the work item, and whether its workflow
actually launched is in workflow_started.
Each turn runs a model and is charged. Omit session_id to start a new
session.
Authorizations
Parameters
Header Parameters
Request Body required
Mirror of agent_runtime.interfaces.routers.chat_router.ChatRequest.
object
Uploaded file ids to attach, each at most once.
object
What you say to the agent. Required unless you attach a file.
Responses
200
Successful Response
object
An open envelope for the app’s answer.
Open because the chat answer (kind, message, chips, sources,
work_item_id, …) and the oversight feed (approvals, blockers,
autonomous_fixes, states, bounds) are both still growing, and a
dropped field on an agent surface is one the caller does not know they
lost.
object
object
Whether there are more pages
Items per page
Current page number (1-indexed)
Total number of items
422
Validation Error