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§
Sourcefn 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 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.
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,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".