pub struct LoopControlConfig {
pub max_iterations: u32,
pub max_total_rounds: u32,
/* private fields */
}Expand description
Explicit host ceilings for a model-managed loop in one existing activation. Opting in does not start a loop. Clones share only the host’s sticky stop; consuming a real lease creates fresh per-execution activation slots.
Fields§
§max_iterations: u32§max_total_rounds: u32Implementations§
Source§impl LoopControlConfig
impl LoopControlConfig
pub fn new(max_iterations: u32, max_total_rounds: u32) -> Self
Sourcepub fn supervisor_control(
self,
grant: SupervisorLoopControlGrant,
) -> Result<Self, AgentError>
pub fn supervisor_control( self, grant: SupervisorLoopControlGrant, ) -> Result<Self, AgentError>
Separately opt this one activation into remote Supervisor management. Attachment and the self-control opt-in alone never install this grant.
pub fn supervisor_grant_id(&self) -> Option<Uuid>
Trait Implementations§
Source§impl Clone for LoopControlConfig
impl Clone for LoopControlConfig
Auto Trait Implementations§
impl !RefUnwindSafe for LoopControlConfig
impl !UnwindSafe for LoopControlConfig
impl Freeze for LoopControlConfig
impl Send for LoopControlConfig
impl Sync for LoopControlConfig
impl Unpin for LoopControlConfig
impl UnsafeUnpin for LoopControlConfig
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