pub struct RemoteWorkspace { /* private fields */ }Expand description
Remote workspace that executes tools and collects environment info via gRPC
Implementations§
Trait Implementations§
Source§impl Debug for RemoteWorkspace
impl Debug for RemoteWorkspace
Source§impl Workspace for RemoteWorkspace
impl Workspace for RemoteWorkspace
Source§fn environment<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<EnvironmentInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn environment<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<EnvironmentInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get environment information for this workspace
Source§fn metadata(&self) -> WorkspaceMetadata
fn metadata(&self) -> WorkspaceMetadata
Get workspace metadata
Source§fn invalidate_environment_cache<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn invalidate_environment_cache<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Invalidate cached environment information (force refresh on next call)
Source§fn list_files<'life0, 'life1, 'async_trait>(
&'life0 self,
query: Option<&'life1 str>,
max_results: Option<usize>,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_files<'life0, 'life1, 'async_trait>(
&'life0 self,
query: Option<&'life1 str>,
max_results: Option<usize>,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
List files in the workspace for fuzzy finding
Returns workspace-relative paths, filtered by optional query
Source§fn working_directory(&self) -> &Path
fn working_directory(&self) -> &Path
Get the working directory for this workspace
Source§fn execute_tool<'life0, 'life1, 'async_trait>(
&'life0 self,
tool_call: &'life1 ToolCall,
context: ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<ToolResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute_tool<'life0, 'life1, 'async_trait>(
&'life0 self,
tool_call: &'life1 ToolCall,
context: ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<ToolResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Execute a tool in this workspace
Source§fn available_tools<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Vec<ToolSchema>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn available_tools<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Vec<ToolSchema>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get available tools in this workspace
Auto Trait Implementations§
impl !Freeze for RemoteWorkspace
impl !RefUnwindSafe for RemoteWorkspace
impl Send for RemoteWorkspace
impl Sync for RemoteWorkspace
impl Unpin for RemoteWorkspace
impl !UnwindSafe for RemoteWorkspace
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request