pub trait RemoteWorkspaceService:
Send
+ Sync
+ 'static {
type ListFilesStream: Stream<Item = Result<ListFilesResponse, Status>> + Send + 'static;
// Required methods
fn execute_tool<'life0, 'async_trait>(
&'life0 self,
request: Request<ExecuteToolRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ExecuteToolResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn get_agent_info<'life0, 'async_trait>(
&'life0 self,
request: Request<GetAgentInfoRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetAgentInfoResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn health<'life0, 'async_trait>(
&'life0 self,
request: Request<HealthRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<HealthResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn get_tool_schemas<'life0, 'async_trait>(
&'life0 self,
request: Request<GetToolSchemasRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetToolSchemasResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn get_tool_approval_requirements<'life0, 'async_trait>(
&'life0 self,
request: Request<GetToolApprovalRequirementsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetToolApprovalRequirementsResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn get_environment_info<'life0, 'async_trait>(
&'life0 self,
request: Request<GetEnvironmentInfoRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetEnvironmentInfoResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn list_files<'life0, 'async_trait>(
&'life0 self,
request: Request<ListFilesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ListFilesStream>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}Expand description
Generated trait containing gRPC methods that should be implemented for use with RemoteWorkspaceServiceServer.
Required Associated Types§
Sourcetype ListFilesStream: Stream<Item = Result<ListFilesResponse, Status>> + Send + 'static
type ListFilesStream: Stream<Item = Result<ListFilesResponse, Status>> + Send + 'static
Server streaming response type for the ListFiles method.
Required Methods§
Sourcefn execute_tool<'life0, 'async_trait>(
&'life0 self,
request: Request<ExecuteToolRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ExecuteToolResponse>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn execute_tool<'life0, 'async_trait>(
&'life0 self,
request: Request<ExecuteToolRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ExecuteToolResponse>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Execute a tool call on the agent
Sourcefn get_agent_info<'life0, 'async_trait>(
&'life0 self,
request: Request<GetAgentInfoRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetAgentInfoResponse>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn get_agent_info<'life0, 'async_trait>(
&'life0 self,
request: Request<GetAgentInfoRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetAgentInfoResponse>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Get information about the agent and available tools
Sourcefn health<'life0, 'async_trait>(
&'life0 self,
request: Request<HealthRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<HealthResponse>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn health<'life0, 'async_trait>(
&'life0 self,
request: Request<HealthRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<HealthResponse>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Health check
Sourcefn get_tool_schemas<'life0, 'async_trait>(
&'life0 self,
request: Request<GetToolSchemasRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetToolSchemasResponse>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn get_tool_schemas<'life0, 'async_trait>(
&'life0 self,
request: Request<GetToolSchemasRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetToolSchemasResponse>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Get detailed tool schemas including approval requirements
Sourcefn get_tool_approval_requirements<'life0, 'async_trait>(
&'life0 self,
request: Request<GetToolApprovalRequirementsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetToolApprovalRequirementsResponse>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn get_tool_approval_requirements<'life0, 'async_trait>(
&'life0 self,
request: Request<GetToolApprovalRequirementsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetToolApprovalRequirementsResponse>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Get tool approval requirements
Sourcefn get_environment_info<'life0, 'async_trait>(
&'life0 self,
request: Request<GetEnvironmentInfoRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetEnvironmentInfoResponse>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn get_environment_info<'life0, 'async_trait>(
&'life0 self,
request: Request<GetEnvironmentInfoRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetEnvironmentInfoResponse>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Get environment information for the remote workspace
Sourcefn list_files<'life0, 'async_trait>(
&'life0 self,
request: Request<ListFilesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ListFilesStream>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn list_files<'life0, 'async_trait>(
&'life0 self,
request: Request<ListFilesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ListFilesStream>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
List files in the workspace for fuzzy finding