pub struct ToolExecutionContext {
pub thread_id: String,
pub turn_id: String,
pub effective_mode: PolicyMode,
pub command_shell: Option<String>,
pub deadline_remaining_seconds: Option<u64>,
pub handles: ToolExecutionHandles,
}Fields§
§thread_id: String§turn_id: String§effective_mode: PolicyMode§command_shell: Option<String>§deadline_remaining_seconds: Option<u64>§handles: ToolExecutionHandlesImplementations§
Source§impl ToolExecutionContext
impl ToolExecutionContext
pub fn new( thread_id: impl Into<String>, turn_id: impl Into<String>, effective_mode: PolicyMode, ) -> ToolExecutionContext
pub fn with_command_shell( self, shell: impl Into<String>, ) -> ToolExecutionContext
pub fn with_deadline_remaining_seconds( self, seconds: u64, ) -> ToolExecutionContext
pub fn with_workspace_handle( self, handle: Arc<dyn ScopedWorkspaceHandle>, ) -> ToolExecutionContext
pub fn with_remote_workspace( self, remote: Arc<RemoteWorkspace>, ) -> ToolExecutionContext
pub fn with_process_runner( self, runner: Arc<dyn ScopedProcessRunner>, ) -> ToolExecutionContext
pub fn with_subagent_trace_sink( self, sink: Arc<dyn SubagentTraceSink>, ) -> ToolExecutionContext
pub fn with_context_artifacts( self, store: Arc<dyn ContextArtifactAccess>, ) -> ToolExecutionContext
pub fn with_goal_controller( self, controller: Arc<dyn ThreadGoalController>, ) -> ToolExecutionContext
pub fn require_workspace(&self) -> Result<Arc<dyn ScopedWorkspaceHandle>, Error>
pub fn require_process_runner( &self, ) -> Result<Arc<dyn ScopedProcessRunner>, Error>
pub fn require_context_artifacts( &self, ) -> Result<Arc<dyn ContextArtifactAccess>, Error>
pub fn require_goal_controller( &self, ) -> Result<Arc<dyn ThreadGoalController>, Error>
Trait Implementations§
Source§impl Clone for ToolExecutionContext
impl Clone for ToolExecutionContext
Source§fn clone(&self) -> ToolExecutionContext
fn clone(&self) -> ToolExecutionContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ToolExecutionContext
impl !UnwindSafe for ToolExecutionContext
impl Freeze for ToolExecutionContext
impl Send for ToolExecutionContext
impl Sync for ToolExecutionContext
impl Unpin for ToolExecutionContext
impl UnsafeUnpin for ToolExecutionContext
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