pub struct AgenticLoop;Expand description
The agentic loop driver
Implementations§
Source§impl AgenticLoop
impl AgenticLoop
Sourcepub async fn run<S: CheckpointStore>(
runner: &mut Runner<S>,
callable: DynCallable,
input: String,
policy: LongRunningExecutionPolicy,
) -> Result<String>
pub async fn run<S: CheckpointStore>( runner: &mut Runner<S>, callable: DynCallable, input: String, policy: LongRunningExecutionPolicy, ) -> Result<String>
Run the agentic loop for a callable
This drives the discovery-execute-repeat cycle for long-running executions. The loop continues until:
- The callable signals completion (no more discovered steps)
- Policy limits are exceeded
- An error occurs
Sourcepub async fn run_with_details<S: CheckpointStore>(
runner: &mut Runner<S>,
callable: DynCallable,
input: String,
policy: LongRunningExecutionPolicy,
) -> Result<AgenticLoopResult>
pub async fn run_with_details<S: CheckpointStore>( runner: &mut Runner<S>, callable: DynCallable, input: String, policy: LongRunningExecutionPolicy, ) -> Result<AgenticLoopResult>
Run the agentic loop with detailed result
Sourcepub async fn run_with_invoker<S: CheckpointStore>(
runner: &mut Runner<S>,
invoker: &CallableInvoker,
initial_callable_name: &str,
input: String,
policy: LongRunningExecutionPolicy,
) -> Result<AgenticLoopResult>
pub async fn run_with_invoker<S: CheckpointStore>( runner: &mut Runner<S>, invoker: &CallableInvoker, initial_callable_name: &str, input: String, policy: LongRunningExecutionPolicy, ) -> Result<AgenticLoopResult>
Run with a callable invoker for dynamic callable lookup
This variant allows discovered steps to specify different callables by name.
Auto Trait Implementations§
impl Freeze for AgenticLoop
impl RefUnwindSafe for AgenticLoop
impl Send for AgenticLoop
impl Sync for AgenticLoop
impl Unpin for AgenticLoop
impl UnsafeUnpin for AgenticLoop
impl UnwindSafe for AgenticLoop
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