Skip to main content

parse_model_spec

Function parse_model_spec 

Source
pub fn parse_model_spec(spec: &str, current_agent: &str) -> ModelSpec
Expand description

Parse a model spec string into agent + model.

Formats:

  • agent:model → explicit (e.g., claude:sonnet)
  • model → infer agent from model name