Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,10 @@ async def on_handoff_hook(

taskflow = available_tools.taskflows.get(t)
if taskflow is None:
taskflow_list = '\n'.join(available_tools.taskflows.keys())
await render_model_output(
f"** 🤖❗ Input Error: No such taskflow: {t}. Available taskflows are:\n{taskflow_list}"
)
raise ValueError(f"No such taskflow: {t}")

await render_model_output(f"** 🤖💪 Running Task Flow: {t}\n")
Expand Down
2 changes: 1 addition & 1 deletion taskflows/examples/example_reusable_prompt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ taskflow:
user_prompt: |
Tell me more about apples.

{{ GitHubSecurityLab/seclab-taskflow-agent/prompts/examples/example_prompt.yaml }}
{{ PROMPTS_GitHubSecurityLab/seclab-taskflow-agent/prompts/examples/example_prompt }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was actually a deliberate change because the "PROMPTS" thing wasn't working. Do you know where that mechanism is implemented?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's probably because you didn't change the prompt path to match the filekey. It's implemented here: https://github.com/GitHubSecurityLab/seclab-taskflow-agent/blob/main/main.py#L466 Maybe the error message there should also list the available prompts