(opts: &mut SessionOptions, def: &AgentDefinition)
| 37 | } |
| 38 | |
| 39 | fn apply_model(opts: &mut SessionOptions, def: &AgentDefinition) { |
| 40 | if opts.model.is_some() { |
| 41 | return; |
| 42 | } |
| 43 | |
| 44 | if let Some(model) = &def.model { |
| 45 | let provider = model.provider.as_deref().unwrap_or("anthropic"); |
| 46 | opts.model = Some(format!("{}/{}", provider, model.model)); |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | fn apply_prompt(opts: &mut SessionOptions, def: &AgentDefinition) { |
| 51 | let Some(prompt) = &def.prompt else { |
no outgoing calls
no test coverage detected