Skip to main content

validate_agent_commands

Function validate_agent_commands 

Source
pub fn validate_agent_commands(
    config: &Config,
    registry: &AgentRegistry,
    developer_agent: &str,
    reviewer_agent: &str,
    config_path: &Path,
) -> Result<()>
Expand description

Validates that agent commands exist in the registry.

Checks that both developer and reviewer agents have valid commands defined either in the config or the registry.

§Arguments

  • config - The pipeline configuration
  • registry - The agent registry
  • developer_agent - Name of the developer agent
  • reviewer_agent - Name of the reviewer agent
  • config_path - Path to the unified config file for error messages

§Returns

Returns Ok(()) if validation passes, or an error with details.