Skip to main content

AgentSkillHandler

Trait AgentSkillHandler 

Source
pub trait AgentSkillHandler<Cx = RequestContext>:
    Send
    + Sync
    + 'static {
    // Required methods
    fn list_agent_skills<'life0, 'async_trait>(
        &'life0 self,
        request: ListAgentSkillsRequest,
        context: Cx,
    ) -> Pin<Box<dyn Future<Output = Result<ListAgentSkillsResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn create_agent_skill<'life0, 'async_trait>(
        &'life0 self,
        request: CreateAgentSkillRequest,
        context: Cx,
    ) -> Pin<Box<dyn Future<Output = Result<AgentSkill>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_agent_skill<'life0, 'async_trait>(
        &'life0 self,
        request: GetAgentSkillRequest,
        context: Cx,
    ) -> Pin<Box<dyn Future<Output = Result<AgentSkill>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_agent_skill<'life0, 'async_trait>(
        &'life0 self,
        request: UpdateAgentSkillRequest,
        context: Cx,
    ) -> Pin<Box<dyn Future<Output = Result<AgentSkill>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete_agent_skill<'life0, 'async_trait>(
        &'life0 self,
        request: DeleteAgentSkillRequest,
        context: Cx,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn list_agent_skills<'life0, 'async_trait>( &'life0 self, request: ListAgentSkillsRequest, context: Cx, ) -> Pin<Box<dyn Future<Output = Result<ListAgentSkillsResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Lists agent skills.

Source

fn create_agent_skill<'life0, 'async_trait>( &'life0 self, request: CreateAgentSkillRequest, context: Cx, ) -> Pin<Box<dyn Future<Output = Result<AgentSkill>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_agent_skill<'life0, 'async_trait>( &'life0 self, request: GetAgentSkillRequest, context: Cx, ) -> Pin<Box<dyn Future<Output = Result<AgentSkill>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn update_agent_skill<'life0, 'async_trait>( &'life0 self, request: UpdateAgentSkillRequest, context: Cx, ) -> Pin<Box<dyn Future<Output = Result<AgentSkill>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn delete_agent_skill<'life0, 'async_trait>( &'life0 self, request: DeleteAgentSkillRequest, context: Cx, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§