pub struct AgentRegistry { /* private fields */ }Expand description
Atomically validated authored agent documents, independent of model execution.
Implementations§
Source§impl AgentRegistry
impl AgentRegistry
pub fn validate( agents: BTreeMap<AgentId, AgentDocument>, ) -> Result<Self, ConfigError>
pub fn get(&self, id: &AgentId) -> Option<&AgentDocument>
pub fn agents( &self, ) -> impl ExactSizeIterator<Item = (&AgentId, &AgentDocument)>
pub fn documents(&self) -> &BTreeMap<AgentId, AgentDocument>
pub fn into_documents(self) -> BTreeMap<AgentId, AgentDocument>
pub fn materialization_inputs( &self, ) -> impl ExactSizeIterator<Item = AgentMaterializationInput<'_>>
Trait Implementations§
Source§impl Clone for AgentRegistry
impl Clone for AgentRegistry
Source§fn clone(&self) -> AgentRegistry
fn clone(&self) -> AgentRegistry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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