Skip to main content

TaskAgentBackend

Trait TaskAgentBackend 

Source
pub trait TaskAgentBackend {
    // Required methods
    fn refresh_agents(&mut self) -> DevelopmentResult<()>;
    fn create_agent(&mut self, spec: AgentSpec) -> DevelopmentResult<AgentId>;
    fn agent_snapshots(&mut self) -> DevelopmentResult<Vec<AgentSnapshot>>;
    fn agent_events(&mut self, since: u64) -> DevelopmentResult<Vec<AgentEvent>>;
    fn prompt_agent(
        &mut self,
        id: &AgentId,
        prompt: String,
    ) -> DevelopmentResult<()>;
    fn cancel_agent(&mut self, id: &AgentId) -> DevelopmentResult<()>;
    fn complete_agent(&mut self, id: &AgentId) -> DevelopmentResult<()>;
}

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§