Skip to main content

validate_agent_binary_paths

Function validate_agent_binary_paths 

Source
pub fn validate_agent_binary_paths(
    agent: &AgentConfig,
    label: &str,
) -> Result<()>
Expand description

Validate that all configured binary paths are non-empty strings.

Checks each binary path field in AgentConfig - if specified, it must be non-empty after trimming whitespace.

§Arguments

  • agent - The agent config to validate
  • label - Context label for error messages (e.g., “agent”, “profiles.dev”)

§Binary fields validated

  • codex_bin, opencode_bin, gemini_bin, claude_bin, cursor_bin, kimi_bin, pi_bin