pub struct AgentConfigIntegration { /* private fields */ }Expand description
Integration layer for agent configuration with ricecoder-agents
This struct provides methods to discover, load, and register agent configurations from markdown files with the ricecoder-agents subsystem.
Implementations§
Source§impl AgentConfigIntegration
impl AgentConfigIntegration
Sourcepub fn new(loader: Arc<ConfigurationLoader>) -> Self
pub fn new(loader: Arc<ConfigurationLoader>) -> Self
Create a new agent configuration integration
Sourcepub fn discover_agent_configs(
&self,
paths: &[PathBuf],
) -> MarkdownConfigResult<Vec<ConfigFile>>
pub fn discover_agent_configs( &self, paths: &[PathBuf], ) -> MarkdownConfigResult<Vec<ConfigFile>>
Sourcepub async fn load_agent_configs(
&self,
paths: &[PathBuf],
) -> MarkdownConfigResult<(Vec<AgentConfig>, Vec<(PathBuf, String)>)>
pub async fn load_agent_configs( &self, paths: &[PathBuf], ) -> MarkdownConfigResult<(Vec<AgentConfig>, Vec<(PathBuf, String)>)>
Sourcepub fn register_agents(
&self,
agents: Vec<AgentConfig>,
registrar: &mut dyn AgentRegistrar,
) -> MarkdownConfigResult<RegistrationResult>
pub fn register_agents( &self, agents: Vec<AgentConfig>, registrar: &mut dyn AgentRegistrar, ) -> MarkdownConfigResult<RegistrationResult>
Register agent configurations with a registrar
This method registers agent configurations using a generic registrar trait, allowing integration with any agent registry implementation.
§Arguments
agents- Agent configurations to registerregistrar- The agent registrar to register with
§Returns
A tuple of (successful_count, error_count, errors)
Sourcepub async fn load_and_register_agents(
&self,
paths: &[PathBuf],
registrar: &mut dyn AgentRegistrar,
) -> MarkdownConfigResult<(usize, usize, Vec<(String, String)>)>
pub async fn load_and_register_agents( &self, paths: &[PathBuf], registrar: &mut dyn AgentRegistrar, ) -> MarkdownConfigResult<(usize, usize, Vec<(String, String)>)>
Auto Trait Implementations§
impl Freeze for AgentConfigIntegration
impl RefUnwindSafe for AgentConfigIntegration
impl Send for AgentConfigIntegration
impl Sync for AgentConfigIntegration
impl Unpin for AgentConfigIntegration
impl UnwindSafe for AgentConfigIntegration
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