Add endpoint to API Server deployments resource to get event stream using client's get_task_result_stream method. #111

Closed
opened 2026-02-16 01:15:49 -05:00 by yindo · 0 comments
Owner

Originally created by @nerdai on GitHub (Oct 7, 2024).

Originally assigned to: @nerdai on GitHub.

(The control plane already consumes the stream messages from the Workflow services and emits SSE using FastAPI StreamingResponse)

Implement the equivalent of what we have in workflows:

handler = workflow.run()
async for event in handler.stream_events():
    # do something with event
    pass

for Llama Deploy through the API Server, something like GET http://apiserver.local/my-deployment/events

Acceptance Criteria

  • there is an endpoint in the API Server that allows user to get events streamed from a task
Originally created by @nerdai on GitHub (Oct 7, 2024). Originally assigned to: @nerdai on GitHub. (The control plane already consumes the stream messages from the Workflow services and emits SSE using FastAPI StreamingResponse) Implement the equivalent of what we have in workflows: ```python handler = workflow.run() async for event in handler.stream_events(): # do something with event pass ``` for Llama Deploy through the API Server, something like GET http://apiserver.local/my-deployment/events **Acceptance Criteria** - there is an endpoint in the API Server that allows user to get events streamed from a task
yindo closed this issue 2026-02-16 01:15:49 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/llama_deploy#111