Trait RemoteWorkspaceService

Source
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§

Source

type ListFilesStream: Stream<Item = Result<ListFilesResponse, Status>> + Send + 'static

Server streaming response type for the ListFiles method.

Required Methods§

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Implementors§