pub struct BoundedWorkspace { /* private fields */ }Expand description
Workspace bounded workspace request or result value. Creating the value does not touch the filesystem; workspace executors document read, write, edit, or search effects.
Implementations§
Source§impl BoundedWorkspace
impl BoundedWorkspace
Sourcepub fn new(policy: WorkspacePolicy) -> Self
pub fn new(policy: WorkspacePolicy) -> Self
Creates a new workspace::bounds value with explicit caller-provided inputs. This constructor is data-only and performs no I/O or external side effects.
Sourcepub fn policy(&self) -> &WorkspacePolicy
pub fn policy(&self) -> &WorkspacePolicy
Returns policy for the current value. This is a read-only or data-construction helper unless the method body explicitly calls a port or store.
Source§impl BoundedWorkspace
impl BoundedWorkspace
Sourcepub fn search(
&self,
request: &WorkspaceSearchRequest,
) -> Result<WorkspaceSearchOutput, AgentError>
pub fn search( &self, request: &WorkspaceSearchRequest, ) -> Result<WorkspaceSearchOutput, AgentError>
Searches bounded workspace files under the configured policy. This reads directory metadata and matching file contents, returns bounded previews, and never mutates workspace files.
Source§impl BoundedWorkspace
impl BoundedWorkspace
Sourcepub fn read(
&self,
request: &WorkspaceReadRequest,
) -> Result<WorkspaceReadOutput, AgentError>
pub fn read( &self, request: &WorkspaceReadRequest, ) -> Result<WorkspaceReadOutput, AgentError>
Reads one bounded workspace path or supported URI. The method may inspect
file bytes under BoundedWorkspace policy and returns structured
metadata/content, but it never mutates files.
Trait Implementations§
Source§impl Clone for BoundedWorkspace
impl Clone for BoundedWorkspace
Source§fn clone(&self) -> BoundedWorkspace
fn clone(&self) -> BoundedWorkspace
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more