pub struct MultiAgentContext {
pub session_id: String,
pub agents: Vec<AgentInfo>,
pub shared_context: Vec<ContextItem>,
pub agent_contexts: AHashMap<String, Vec<ContextItem>>,
pub agent_communications: Vec<AgentCommunication>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
Multi-agent context for coordinating between different AI agents
Fields§
§session_id: StringUnique identifier for the multi-agent session
agents: Vec<AgentInfo>Agents participating in this context
Shared context items available to all agents
agent_contexts: AHashMap<String, Vec<ContextItem>>Agent-specific context
agent_communications: Vec<AgentCommunication>Communication log between agents
created_at: DateTime<Utc>When this session was created
updated_at: DateTime<Utc>When this session was last updated
Implementations§
Source§impl MultiAgentContext
impl MultiAgentContext
pub fn new() -> Self
Sourcepub fn add_agent_context(&mut self, agent_id: &str, context: ContextItem)
pub fn add_agent_context(&mut self, agent_id: &str, context: ContextItem)
Add context for a specific agent
Trait Implementations§
Source§impl Clone for MultiAgentContext
impl Clone for MultiAgentContext
Source§fn clone(&self) -> MultiAgentContext
fn clone(&self) -> MultiAgentContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MultiAgentContext
impl Debug for MultiAgentContext
Source§impl Default for MultiAgentContext
impl Default for MultiAgentContext
Source§impl<'de> Deserialize<'de> for MultiAgentContext
impl<'de> Deserialize<'de> for MultiAgentContext
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MultiAgentContext
impl RefUnwindSafe for MultiAgentContext
impl Send for MultiAgentContext
impl Sync for MultiAgentContext
impl Unpin for MultiAgentContext
impl UnwindSafe for MultiAgentContext
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