stasis-rs 0.1.0

Durable AI orchestration framework with runtime jobs, lineage, and memory integration
Documentation
1
2
3
4
5
6
7
8
9
10
use async_trait::async_trait;

use crate::application::dto::{InvokeAgentRequest, InvokeAgentResponse, RegisterAgentRequest};
use crate::domain::errors::Result;

#[async_trait]
pub trait AgentCommands {
    async fn register_agent(&self, request: RegisterAgentRequest) -> Result<()>;
    async fn invoke_agent(&self, request: InvokeAgentRequest) -> Result<InvokeAgentResponse>;
}