(
code_config: &CodeConfig,
opts: &SessionOptions,
)
| 6 | use std::sync::Arc; |
| 7 | |
| 8 | pub(super) fn resolve_auto_delegation_config( |
| 9 | code_config: &CodeConfig, |
| 10 | opts: &SessionOptions, |
| 11 | ) -> crate::config::AutoDelegationConfig { |
| 12 | let mut auto_delegation = if let Some(config) = opts.auto_delegation.clone() { |
| 13 | config |
| 14 | } else { |
| 15 | let mut config = code_config.auto_delegation.clone(); |
| 16 | if let Some(auto_parallel) = code_config.auto_parallel { |
| 17 | config.auto_parallel = auto_parallel; |
| 18 | } |
| 19 | config |
| 20 | }; |
| 21 | if let Some(enabled) = opts.manual_delegation_enabled { |
| 22 | auto_delegation.allow_manual_delegation = enabled; |
| 23 | } |
| 24 | if let Some(auto_parallel) = opts.auto_parallel_delegation { |
| 25 | auto_delegation.auto_parallel = auto_parallel; |
| 26 | } |
| 27 | |
| 28 | auto_delegation |
| 29 | } |
| 30 | |
| 31 | pub(super) fn resolve_session_llm_client( |
| 32 | code_config: &CodeConfig, |
no test coverage detected