pub struct AgentRegistry { /* private fields */ }Implementations§
Source§impl AgentRegistry
impl AgentRegistry
pub fn load(data_dir: impl AsRef<Path>) -> Result<Self, ConfigError>
Sourcepub fn load_validated(
data_dir: impl AsRef<Path>,
models: &ModelRegistry,
tools: &ToolRegistry,
) -> Result<Self, ConfigError>
pub fn load_validated( data_dir: impl AsRef<Path>, models: &ModelRegistry, tools: &ToolRegistry, ) -> Result<Self, ConfigError>
Load and validate all agents against the configured models and registered tools.
Sourcepub fn validate_references(
&self,
models: &ModelRegistry,
tools: &ToolRegistry,
) -> Result<(), ConfigError>
pub fn validate_references( &self, models: &ModelRegistry, tools: &ToolRegistry, ) -> Result<(), ConfigError>
Check all cross-references and report every issue in one structured error.
Model checks inspect provider configuration only; they do not require API credentials. Tool checks require an executable implementation to have been registered in the runtime tool registry.
pub fn get(&self, name: &str) -> Option<&AgentDefinition>
pub fn definitions(&self) -> impl Iterator<Item = &AgentDefinition>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AgentRegistry
impl RefUnwindSafe for AgentRegistry
impl Send for AgentRegistry
impl Sync for AgentRegistry
impl Unpin for AgentRegistry
impl UnsafeUnpin for AgentRegistry
impl UnwindSafe for AgentRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more