pub struct LoopAgentConfig {
pub agent: AgentConfig,
pub max_iterations: u32,
}Expand description
The configuration of a loop agent.
Fields§
§agent: AgentConfigBasic agent setup; run must be None.
max_iterations: u32With 0 the loop runs indefinitely or until a sub-agent escalates. A sub-agent error ends the loop regardless. The context is checked before each pass, and if it is cancelled the loop ends with the context’s error. A loop agent with no sub-agents returns immediately without yielding any event or error.
Trait Implementations§
Source§impl Clone for LoopAgentConfig
impl Clone for LoopAgentConfig
Auto Trait Implementations§
impl !RefUnwindSafe for LoopAgentConfig
impl !UnwindSafe for LoopAgentConfig
impl Forget for LoopAgentConfig
impl Freeze for LoopAgentConfig
impl Move for LoopAgentConfig
impl Send for LoopAgentConfig
impl Sync for LoopAgentConfig
impl Unpin for LoopAgentConfig
impl UnsafeUnpin for LoopAgentConfig
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