Skip to content

Conversation

@kevinbackhouse
Copy link
Collaborator

Add a header to the yaml files. For example, the header for a taskflow looks like this:

seclab-taskflow-agent:
  type: taskflow
  version: 1

Because the header defines the file type, it means that we won't need to divide the taskflows, personalities, etc into separate directories, which will give us more flexibility in how the files are organized.

At the moment main() still looks for top-level directories named "taskflows", "personabilities", etc. I'll remove that restriction in a separate PR.

I've also included a version number in the header, because that might be useful in the future if we decide we want to change the file format.

Copilot AI review requested due to automatic review settings October 8, 2025 20:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a standardized header to all YAML configuration files to enable type identification and versioning. The header includes the file type (taskflow, personality, prompt, or toolbox) and a version number, allowing for more flexible file organization without relying on directory structure.

Key changes:

  • Added standardized YAML headers with type and version information to all configuration files
  • Modified AvailableTools class to parse headers and categorize files by type rather than directory
  • Updated deploy_task_agents function to receive available_tools parameter for toolbox access

Reviewed Changes

Copilot reviewed 29 out of 29 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
toolboxes/*.yaml Added headers identifying files as type "toolbox" with version 1
taskflows/**/*.yaml Added headers identifying files as type "taskflow" with version 1
prompts/examples/*.yaml Added headers identifying files as type "prompt" with version 1
personalities/**/*.yaml Added headers identifying files as type "personality" with version 1
available_tools.py Refactored to parse file headers and categorize by type instead of directory
main.py Updated to pass unified YAML dictionary to AvailableTools and provide available_tools to deploy_task_agents

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@kevinbackhouse kevinbackhouse merged commit 7a28da8 into GitHubSecurityLab:main Oct 9, 2025
@kevinbackhouse kevinbackhouse deleted the yaml-headers branch October 9, 2025 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants