Chat Main Agent
Changed onReceives and processes a streaming chat request via the AgentService.
This endpoint streams the agent's response in real-time using Server-Sent Events.
Args: request: The chat request data containing message and project_id (pre-validated). agent_service: The AgentService instance (dependency).
Returns: StreamingResponse with Server-Sent Events containing streaming chat data.
Raises: HTTPException: 400 for validation errors. HTTPException: 404 if project not found or user doesn't own it. HTTPException: 500 for unexpected errors.
Request
- Base URLhttps://api.maia-analytics.com (the document declares no server; this is the origin it was published from)
- URLhttps://api.maia-analytics.com/api/v1/chat/stream
- AuthHTTP bearer
Request body
Example request
{
"project_id": "00000000-0000-0000-0000-000000000001",
"current_focused_layer_id": "00000000-0000-0000-0000-000000000000"
}Response
Successful Response
Changes
- info
added the new optional request property
- info
- warning
the
//request property's maxLength was set to200 - warning
the
///request property's maxLength was set to200 - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
/// - info
added the new optional request property
/// - info
added the new optional request property
///
- warning