[PR #412] [MERGED] [feat] Add send event endpoints to api server #447

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

📋 Pull Request Information

Original PR: https://github.com/run-llama/llama_deploy/pull/412
Author: @nerdai
Created: 12/18/2024
Status: Merged
Merged: 12/23/2024
Merged by: @masci

Base: mainHead: nerdai/api-server-send-event


📝 Commits (10+)

📊 Changes

9 files changed (+194 additions, -7 deletions)

View changed files

e2e_tests/apiserver/deployments/deployment_hitl.yml (+14 -0)
e2e_tests/apiserver/deployments/src/workflow_hitl.py (+23 -0)
e2e_tests/apiserver/test_hitl.py (+33 -0)
📝 llama_deploy/apiserver/routers/deployments.py (+26 -1)
📝 llama_deploy/client/models/apiserver.py (+29 -2)
📝 llama_deploy/client/models/core.py (+12 -0)
📝 tests/apiserver/routers/test_deployments.py (+31 -2)
📝 tests/client/models/test_apiserver.py (+1 -1)
📝 tests/client/models/test_core.py (+25 -1)

📄 Description

This PR adds a new endpoint in api server allowing users to post a new Event that gets sent to a running workflow of a specified deployment.

I've also added the send_event() method to the Task apiserver/model class.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/run-llama/llama_deploy/pull/412 **Author:** [@nerdai](https://github.com/nerdai) **Created:** 12/18/2024 **Status:** ✅ Merged **Merged:** 12/23/2024 **Merged by:** [@masci](https://github.com/masci) **Base:** `main` ← **Head:** `nerdai/api-server-send-event` --- ### 📝 Commits (10+) - [`817093d`](https://github.com/run-llama/llama_deploy/commit/817093dc8b8f3c8223f208556628d5a58cdad2a6) send event endpoint - [`f43516b`](https://github.com/run-llama/llama_deploy/commit/f43516b69a6968ecc9bb475fbf270e87681fba22) restrict to HumanResponseEvent only - [`10f958e`](https://github.com/run-llama/llama_deploy/commit/10f958e3a0935dec118eef2ebff727e797bbbbb1) add unit test for test_send_human_response_event - [`bbbf888`](https://github.com/run-llama/llama_deploy/commit/bbbf8884e021037515687bc2356744d55eaac21c) add send_human_response to Task model - [`4127b67`](https://github.com/run-llama/llama_deploy/commit/4127b6781316469e75c4b2ac5219d7a81f7bda4f) add json - [`801a33d`](https://github.com/run-llama/llama_deploy/commit/801a33dbe9e8c4a5b2ca3027ca869b9007cd501d) add e2e test with hitl - [`385f8f2`](https://github.com/run-llama/llama_deploy/commit/385f8f276bbf78389019f4f5b52f3543f36e47c6) fix broken test - [`0a1e5dd`](https://github.com/run-llama/llama_deploy/commit/0a1e5dd87a7a9fde09e5466a14ecd6c678137266) use more generic event - [`23b1635`](https://github.com/run-llama/llama_deploy/commit/23b1635dd78f287a066fb2dd9b6c06f1d6dbe5e4) update test_send_event unit test - [`315a525`](https://github.com/run-llama/llama_deploy/commit/315a525b815bb6ea97eaeb646d13bf64e6ca81e5) update e2e test ### 📊 Changes **9 files changed** (+194 additions, -7 deletions) <details> <summary>View changed files</summary> ➕ `e2e_tests/apiserver/deployments/deployment_hitl.yml` (+14 -0) ➕ `e2e_tests/apiserver/deployments/src/workflow_hitl.py` (+23 -0) ➕ `e2e_tests/apiserver/test_hitl.py` (+33 -0) 📝 `llama_deploy/apiserver/routers/deployments.py` (+26 -1) 📝 `llama_deploy/client/models/apiserver.py` (+29 -2) 📝 `llama_deploy/client/models/core.py` (+12 -0) 📝 `tests/apiserver/routers/test_deployments.py` (+31 -2) 📝 `tests/client/models/test_apiserver.py` (+1 -1) 📝 `tests/client/models/test_core.py` (+25 -1) </details> ### 📄 Description This PR adds a new endpoint in api server allowing users to post a new `Event` that gets sent to a running workflow of a specified deployment. I've also added the `send_event()` method to the `Task` apiserver/model class. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 01:17:24 -05:00
yindo closed this issue 2026-02-16 01:17:24 -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#447