Chat Main Agent
Receives 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 body
Example request
{
"project_id": "00000000-0000-0000-0000-000000000001",
"current_focused_layer_id": "00000000-0000-0000-0000-000000000000"
}Response
Successful Response
Changes
Changed in 5 of the 30 revisions of this API.210
- ○
added the new optional request property
new-optional-request-property
- ○
- ●
the
//request property's maxLength was set to200request-property-max-length-set
- ●
the
///request property's maxLength was set to200request-property-max-length-set
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
///new-optional-request-property
- ○
added the new optional request property
///new-optional-request-property
- ○
added the new optional request property
///new-optional-request-property
- ●
- ○
added the new optional request property
new-optional-request-property
- ○
- ○
added the new optional request property
new-optional-request-property
- ○
- ○
added the new optional request property
new-optional-request-property
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○