Chat with Agent
Chat with Agent
POST
Chat with Agent
Documentation Index
Fetch the complete documentation index at: https://docs.ag-kit.dev/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Token corresponding to the environment ID, obtained through login authentication
Headers
Accept header for streaming response
Path Parameters
Agent ID
Body
application/json
Response
Agent conversation successful, returns SSE format. Each event follows the SSE specification with JSON data:
data: {"type": "text", "content": "Hello"}
data: {"type": "tool-call-start", "toolCallId": "call_123", "toolCallName": "search"}
data: {"type": "tool-call-args", "toolCallId": "call_123", "delta": "{\"query\": \"weather\"}"}
data: {"type": "tool-call-end", "toolCallId": "call_123"}
data: {"type": "tool-result", "result": "Sunny, 25°C", "toolCallId": "call_123"}
data: [DONE]The response is a stream of Server-Sent Events where each event contains JSON data representing different types of agent interactions.