velocia 0.3.1

velocia – production-ready AI agent framework using ADK-Rust, A2A protocol, and AWS DynamoDB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use async_trait::async_trait;

use crate::a2a::types::{Message, Task};
use crate::error::Result;

/// Opaque agent handle.  The concrete implementation lives in `adk::builder`.
pub trait AnyAgent: Send + Sync {}

/// Async executor that processes A2A messages and returns tasks.
#[async_trait]
pub trait AgentExecutor: Send + Sync {
    async fn execute(&self, request: Message) -> Result<Task>;
    async fn cancel(&self, task_id: &str) -> Result<()>;
}