feat(api): Implement agent streaming router with SSE
This commit is contained in:
@@ -48,7 +48,7 @@ async def test_stream_agent_success(auth_header):
|
||||
json={"message": "hello", "thread_id": "t1"},
|
||||
headers=auth_header) as response:
|
||||
assert response.status_code == 200
|
||||
assert response.headers["content-type"] == "text/event-stream"
|
||||
assert "text/event-stream" in response.headers["content-type"]
|
||||
|
||||
lines = list(response.iter_lines())
|
||||
# Each event should start with 'data: ' and be valid JSON
|
||||
|
||||
Reference in New Issue
Block a user