pub struct SubAgentWrapper { /* private fields */ }Expand description
SubAgent 包装器
TODO: 完整实现需要与 AgentLoop 集成
Implementations§
Source§impl SubAgentWrapper
impl SubAgentWrapper
Sourcepub fn new(
id: String,
config: SubAgentConfig,
event_tx: Sender<OrchestratorEvent>,
control_rx: Receiver<ControlSignal>,
state: Arc<RwLock<SubAgentState>>,
activity: Arc<RwLock<SubAgentActivity>>,
) -> Self
pub fn new( id: String, config: SubAgentConfig, event_tx: Sender<OrchestratorEvent>, control_rx: Receiver<ControlSignal>, state: Arc<RwLock<SubAgentState>>, activity: Arc<RwLock<SubAgentActivity>>, ) -> Self
创建新的 wrapper
Auto Trait Implementations§
impl Freeze for SubAgentWrapper
impl !RefUnwindSafe for SubAgentWrapper
impl Send for SubAgentWrapper
impl Sync for SubAgentWrapper
impl Unpin for SubAgentWrapper
impl UnsafeUnpin for SubAgentWrapper
impl !UnwindSafe for SubAgentWrapper
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