pub struct ExecutorContext {
pub working_set: Arc<RwLock<WorkingSet>>,
pub task_id: TaskId,
pub progress_reporter: Option<Arc<dyn ExecutionProgressReporter>>,
pub runtime_info: Option<PlannerRuntimeInfo>,
pub skill_instructions: Vec<SkillInstruction>,
pub lifecycle_hooks: Option<Arc<LifecycleHookRegistry>>,
pub thread_id: Option<String>,
}Expand description
Executor context
Fields§
§working_set: Arc<RwLock<WorkingSet>>Working set for inter-step communication
task_id: TaskIdTask ID
progress_reporter: Option<Arc<dyn ExecutionProgressReporter>>Optional execution progress reporter.
runtime_info: Option<PlannerRuntimeInfo>Runtime host information (OS, arch, shell, python) for platform-aware execution.
skill_instructions: Vec<SkillInstruction>Activated skill instructions for this execution turn.
lifecycle_hooks: Option<Arc<LifecycleHookRegistry>>Lifecycle hooks for SDK pipeline observation/interception.
thread_id: Option<String>Thread ID for lifecycle hook context.
Implementations§
Source§impl ExecutorContext
impl ExecutorContext
Sourcepub fn new(
task_id: impl Into<TaskId>,
working_set: Arc<RwLock<WorkingSet>>,
) -> ExecutorContext
pub fn new( task_id: impl Into<TaskId>, working_set: Arc<RwLock<WorkingSet>>, ) -> ExecutorContext
Create a new executor context
Sourcepub fn with_progress_reporter(
self,
reporter: Arc<dyn ExecutionProgressReporter>,
) -> ExecutorContext
pub fn with_progress_reporter( self, reporter: Arc<dyn ExecutionProgressReporter>, ) -> ExecutorContext
Attach a realtime execution progress reporter.
Sourcepub fn with_runtime_info(self, info: PlannerRuntimeInfo) -> ExecutorContext
pub fn with_runtime_info(self, info: PlannerRuntimeInfo) -> ExecutorContext
Attach runtime host information for platform-aware execution.
Sourcepub fn with_skill_instructions(
self,
skills: Vec<SkillInstruction>,
) -> ExecutorContext
pub fn with_skill_instructions( self, skills: Vec<SkillInstruction>, ) -> ExecutorContext
Attach activated skill instructions for this execution turn.
Auto Trait Implementations§
impl Freeze for ExecutorContext
impl !RefUnwindSafe for ExecutorContext
impl Send for ExecutorContext
impl Sync for ExecutorContext
impl Unpin for ExecutorContext
impl UnsafeUnpin for ExecutorContext
impl !UnwindSafe for ExecutorContext
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 more