Dynamically generate list of agents, try to fix goal changing flow

This commit is contained in:
Laine
2025-03-11 14:48:39 -04:00
parent f13ed70bfe
commit 8db1dcd4a7
6 changed files with 49 additions and 42 deletions

View File

@@ -1,18 +1,8 @@
# can this just call the API endpoint to set the goal, if that changes to allow a param?
# if this functions, it could work to both send a signal and also circumvent the UI -> API thing. Maybe?
# --- OR ---
# end this workflow and start a new one with the new goal
# --- OR ---
# send a signal to the workflow from here?
import shared.config
def change_goal(args: dict) -> dict:
new_goal = args.get("goalID")
if new_goal is None:
new_goal = "goal_choose_agent_type"
return {
"new_goal": new_goal,