pub struct WorkspaceWriteExecutor { /* private fields */ }Expand description
Workspace workspace write executor request or result value. Creating the value does not touch the filesystem; workspace executors document read, write, edit, or search effects.
Implementations§
Source§impl WorkspaceWriteExecutor
impl WorkspaceWriteExecutor
Sourcepub fn new(
workspace: Arc<BoundedWorkspace>,
arguments: InMemoryJsonArgumentStore,
content: InMemoryToolkitContentStore,
) -> Self
pub fn new( workspace: Arc<BoundedWorkspace>, arguments: InMemoryJsonArgumentStore, content: InMemoryToolkitContentStore, ) -> Self
Creates a new workspace::write value with explicit caller-provided inputs. This constructor is data-only and performs no I/O or external side effects.
Sourcepub fn pack_bundle(
source: SourceRef,
policy_ref: PolicyRef,
workspace: &WorkspacePolicy,
) -> Result<ToolkitPackBundle, AgentError>
pub fn pack_bundle( source: SourceRef, policy_ref: PolicyRef, workspace: &WorkspacePolicy, ) -> Result<ToolkitPackBundle, AgentError>
Pack bundle. This returns the toolkit pack bundle that registers the operation route; it does not execute the operation.
Trait Implementations§
Source§impl Clone for WorkspaceWriteExecutor
impl Clone for WorkspaceWriteExecutor
Source§fn clone(&self) -> WorkspaceWriteExecutor
fn clone(&self) -> WorkspaceWriteExecutor
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 moreSource§impl ToolExecutor for WorkspaceWriteExecutor
impl ToolExecutor for WorkspaceWriteExecutor
Source§fn executor_ref(&self) -> &ExecutorRef
fn executor_ref(&self) -> &ExecutorRef
Returns executor ref for the current value.
This is a read-only or data-construction helper unless the method body explicitly calls
a port or store.
Source§fn execute(
&self,
request: &ToolExecutionRequest,
) -> Result<ToolExecutionOutput, AgentError>
fn execute( &self, request: &ToolExecutionRequest, ) -> Result<ToolExecutionOutput, AgentError>
Executes one policy-approved tool request through this executor.
Implementations may run host code or external adapters, but the runtime
owns intent/result journaling and approval checks around this call.
Auto Trait Implementations§
impl Freeze for WorkspaceWriteExecutor
impl RefUnwindSafe for WorkspaceWriteExecutor
impl Send for WorkspaceWriteExecutor
impl Sync for WorkspaceWriteExecutor
impl Unpin for WorkspaceWriteExecutor
impl UnsafeUnpin for WorkspaceWriteExecutor
impl UnwindSafe for WorkspaceWriteExecutor
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