chat
Stream chat response
Sends a chat message and receives an AI response via Server-Sent Events (SSE) streaming
post/api/chat/stream
Request
- Base URL: https://localhost:8080
- URL: https://localhost:8080/api/chat/stream
- Auth: none declared
Request body
Example request
{
"messages": [
{
"role": "user",
"content": "Hello, how can you help me?",
"toolCalls": [
{
"toolCallId": "call_abc123",
"toolName": "suggest_changes",
"args": {
"text": "example"
}
}
],
"toolResults": [
{
"toolCallId": "call_abc123",
"error": "Tool execution failed",
"executionTimeMs": 150
}
]
}
],
"message": "Hello, how can you help me?",
"model": "gpt-4",
"temperature": 0.7,
"sessionId": "session-123",
"clientId": "client-456",
"clientMessageId": "a1b2c3d4-e5f6-7890-abcd-ef0123456789",
"conversationId": "conversation-uuid",
"selectedFileIds": [
"doc-123",
"doc-456"
],
"attachmentIds": [
"attachment-123",
"attachment-456"
],
"documentContent": "This is my document content...",
"country": "US",
"circuitNames": [
"9th Circuit"
],
"stateNames": [
"California"
],
"subdivisionNames": [
"England & Wales"
],
"appContext": "outlook",
"docId": "1A2B3C4D-doc-id",
"hostContext": {
"host": "docs",
"docId": "1A2B3C4D-doc-id"
},
"clientVersion": "1.2.9",
"editMode": "answers_only"
}Response
SSE stream started successfully
Changes
No recorded changes to this operation across all 1 revision of this API.