periplon 0.2.0

Rust SDK for building multi-agent AI workflows and automation
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::domain::SessionId;
use crate::error::Result;
use crate::options::AgentOptions;
use async_trait::async_trait;

#[async_trait]
pub trait SessionManager: Send + Sync {
    async fn create_session(&self, options: AgentOptions) -> Result<SessionId>;
    async fn resume_session(&self, session_id: SessionId) -> Result<()>;
    async fn close_session(&self, session_id: SessionId) -> Result<()>;
}