pub struct Subagent<M: Model> {
pub spec: SubagentSpec,
pub loop_: AgentLoop<M>,
}Expand description
Bind a Model to a SubagentSpec and run it.
Fields§
§spec: SubagentSpec§loop_: AgentLoop<M>Implementations§
Source§impl<M: Model> Subagent<M>
impl<M: Model> Subagent<M>
pub fn new(model: M, spec: SubagentSpec) -> Self
pub async fn run( self, world: &mut World, ) -> Result<SubagentReport, HarnessError>
Auto Trait Implementations§
impl<M> !RefUnwindSafe for Subagent<M>
impl<M> !UnwindSafe for Subagent<M>
impl<M> Freeze for Subagent<M>where
M: Freeze,
impl<M> Send for Subagent<M>
impl<M> Sync for Subagent<M>
impl<M> Unpin for Subagent<M>where
M: Unpin,
impl<M> UnsafeUnpin for Subagent<M>where
M: UnsafeUnpin,
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