mirror of
https://github.com/run-llama/llama_deploy.git
synced 2026-08-25 10:39:36 -04:00
[PR #412] [MERGED] [feat] Add send event endpoints to api server #447
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
main← Head:nerdai/api-server-send-event📝 Commits (10+)
817093dsend event endpointf43516brestrict to HumanResponseEvent only10f958eadd unit test for test_send_human_response_eventbbbf888add send_human_response to Task model4127b67add json801a33dadd e2e test with hitl385f8f2fix broken test0a1e5dduse more generic event23b1635update test_send_event unit test315a525update e2e test📊 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
Eventthat gets sent to a running workflow of a specified deployment.I've also added the
send_event()method to theTaskapiserver/model class.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.