Skip to main content

resolve_options

Function resolve_options 

pub fn resolve_options(
    domain: OptionDomain,
    config: &Config,
    agent_alias: &str,
    partial_args: &Value,
    tools: &[&dyn Tool],
) -> Vec<OptionEntry>
Expand description

Resolve the selectable values for one domain.

agent_alias scopes agent-relative domains (peer targets, channel refs). partial_args carries sibling arguments already chosen in the editor so dependent domains can narrow; resolution degrades to the unfiltered union when the driving argument is absent or non-literal. tools feeds ToolNames; pass the active registry slice.