Skip to main content

parse_with_agent_surface

Function parse_with_agent_surface 

Source
pub fn parse_with_agent_surface<T>(
    spec: &ToolSpec,
) -> Result<AgentDispatch<T>, Error>
Expand description

Parse process 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.