Skip to main content

SubagentProviders

Type Alias SubagentProviders 

Source
pub type SubagentProviders = Arc<dyn Fn(&str) -> Option<Arc<dyn ModelProvider>> + Send + Sync>;
Expand description

How a frontend resolves any provider kind to a turn provider: the credential policy behind the subagent tool’s cross-provider model argument. A None answer means that kind has no usable credentials here — the same shape the model picker’s catalog reports. The registry’s build does the wiring; what this closure adds is the resolved credentials themselves.

Aliased Type§

pub struct SubagentProviders { /* private fields */ }