pub struct TurnCells {
pub bridge: Arc<Bridge>,
pub tool: Arc<dyn AgentTool>,
pub progress: Arc<Mutex<Option<CellProgress>>>,
pub stack: Arc<Stack>,
pub children: Arc<DurableChildren>,
}Expand description
Runs cells through the lane’s rlm tool: the root’s, or a subagent’s own lane.
Fields§
§bridge: Arc<Bridge>§tool: Arc<dyn AgentTool>§progress: Arc<Mutex<Option<CellProgress>>>Where the cell’s host operations report what they print (its durable partial output), while it runs.
stack: Arc<Stack>§children: Arc<DurableChildren>Trait Implementations§
Source§impl CellExecutor for TurnCells
impl CellExecutor for TurnCells
Source§fn prepare(&self, arguments: &Value) -> Result<Value, String>
fn prepare(&self, arguments: &Value) -> Result<Value, String>
Check and normalize a call’s arguments, or say why they are invalid. Default: a
code string and an optional
lane string.Source§fn execute(
&self,
call: &CellCall,
progress: &CellProgress,
signal: &Cancel,
) -> Result<CellResult, String>
fn execute( &self, call: &CellCall, progress: &CellProgress, signal: &Cancel, ) -> Result<CellResult, String>
Run one cell.
progress publishes running output; signal is cancelled by an abort mark or close, and an
Err after it is the cancellation.Auto Trait Implementations§
impl !RefUnwindSafe for TurnCells
impl !UnwindSafe for TurnCells
impl Forget for TurnCells
impl Freeze for TurnCells
impl Move for TurnCells
impl Send for TurnCells
impl Sync for TurnCells
impl Unpin for TurnCells
impl UnsafeUnpin for TurnCells
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