pub struct CycleRunRequest<'a> {
pub task: &'a AgentTask,
pub messages: Vec<Message>,
pub cycle_index: u32,
pub memory_manager: &'a mut MemoryManager,
pub previous_prompt_tokens: Option<u64>,
pub recent_tool_call_ids: Option<&'a BTreeSet<String>>,
pub shared_state: Option<&'a BTreeMap<String, Value>>,
pub execution_context: Option<&'a ExecutionContext>,
}Fields§
§task: &'a AgentTask§messages: Vec<Message>§cycle_index: u32§memory_manager: &'a mut MemoryManager§previous_prompt_tokens: Option<u64>§recent_tool_call_ids: Option<&'a BTreeSet<String>>§execution_context: Option<&'a ExecutionContext>Implementations§
Source§impl<'a> CycleRunRequest<'a>
impl<'a> CycleRunRequest<'a>
pub fn new( task: &'a AgentTask, messages: Vec<Message>, cycle_index: u32, memory_manager: &'a mut MemoryManager, ) -> Self
pub fn with_previous_prompt_tokens( self, previous_prompt_tokens: Option<u64>, ) -> Self
pub fn with_recent_tool_call_ids( self, recent_tool_call_ids: &'a BTreeSet<String>, ) -> Self
pub fn with_execution_context( self, execution_context: &'a ExecutionContext, ) -> Self
Auto Trait Implementations§
impl<'a> Freeze for CycleRunRequest<'a>
impl<'a> !RefUnwindSafe for CycleRunRequest<'a>
impl<'a> Send for CycleRunRequest<'a>
impl<'a> Sync for CycleRunRequest<'a>
impl<'a> Unpin for CycleRunRequest<'a>
impl<'a> UnsafeUnpin for CycleRunRequest<'a>
impl<'a> !UnwindSafe for CycleRunRequest<'a>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.