a3s-code-core 3.2.1

A3S Code Core - Embeddable AI agent library with tool execution
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Host-facing session save control.
//!
//! Persistence snapshots are owned by `session_persistence`; this module keeps
//! the public `save()` entrypoint thin without exposing snapshot construction to
//! the facade.

use super::{session_persistence::SessionPersistenceContext, AgentSession};
use crate::error::Result;

pub(super) async fn save(session: &AgentSession) -> Result<()> {
    SessionPersistenceContext::from_session(session)
        .save()
        .await
}