Skip to main content

parse_with_agent_surface_from

Function parse_with_agent_surface_from 

Source
pub fn parse_with_agent_surface_from<T, I>(
    spec: &ToolSpec,
    ctx: &AgentModeContext,
    argv: I,
) -> Result<AgentDispatch<T>, Error>
Expand description

Parse argv against the normal or agent-filtered surface for a clap CLI.

ยงErrors

Returns a clap error when parsing fails or when an unknown agent capability is requested.