adk-session 2.0.0

Session management and state persistence for Rust Agent Development Kit (ADK-Rust) agents
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![cfg(feature = "sqlite")]

mod common;

use adk_session::SqliteSessionService;

#[tokio::test]
async fn test_sqlite_service_contract() {
    let service = SqliteSessionService::new(":memory:").await.expect("SQLite service starts");
    service.migrate().await.expect("SQLite schema migrates");

    common::session_contract::assert_session_contract(&service, "contract_app", "contract_app_2")
        .await;
}