[package]
edition = "2024"
rust-version = "1.85.0"
name = "adk-session"
version = "0.4.0"
authors = ["James Karanja Maina <james.karanja@zavora.ai>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Session management and state persistence for Rust Agent Development Kit (ADK-Rust) agents"
documentation = "https://docs.rs/adk-session"
readme = "README.md"
keywords = [
"ai",
"agent",
"adk",
"session",
"state",
]
categories = [
"api-bindings",
"asynchronous",
]
license = "Apache-2.0"
repository = "https://github.com/zavora-ai/adk-rust"
resolver = "2"
[features]
database = ["sqlite"]
default = []
firestore = ["dep:firestore"]
mongodb = ["dep:mongodb"]
neo4j = ["dep:neo4rs"]
postgres = ["sqlx/postgres"]
redis = ["fred"]
sqlite = ["sqlx/sqlite"]
vertex-session = [
"google-cloud-auth",
"reqwest",
]
[lib]
name = "adk_session"
path = "src/lib.rs"
[[example]]
name = "database_example"
path = "examples/database_example.rs"
[[example]]
name = "verify_database"
path = "examples/verify_database.rs"
[[test]]
name = "error_variant_property_tests"
path = "tests/error_variant_property_tests.rs"
[[test]]
name = "event_ordering_property_tests"
path = "tests/event_ordering_property_tests.rs"
[[test]]
name = "identity_isolation_tests"
path = "tests/identity_isolation_tests.rs"
[[test]]
name = "inmemory_tests"
path = "tests/inmemory_tests.rs"
[[test]]
name = "migration_practical_test"
path = "tests/migration_practical_test.rs"
[[test]]
name = "redis_keys_property_tests"
path = "tests/redis_keys_property_tests.rs"
[[test]]
name = "session_contract_inmemory"
path = "tests/session_contract_inmemory.rs"
[[test]]
name = "session_contract_vertex"
path = "tests/session_contract_vertex.rs"
[[test]]
name = "session_contract_vertex_live"
path = "tests/session_contract_vertex_live.rs"
[[test]]
name = "sqlite_tests"
path = "tests/sqlite_tests.rs"
[[test]]
name = "state_utils_property_tests"
path = "tests/state_utils_property_tests.rs"
[dependencies.adk-core]
version = "0.4.0"
[dependencies.async-trait]
version = "0.1"
[dependencies.chrono]
version = "0.4.44"
features = ["serde"]
[dependencies.firestore]
version = "0.44"
optional = true
[dependencies.fred]
version = "10"
optional = true
[dependencies.google-cloud-auth]
version = "1.4"
features = ["default-rustls-provider"]
optional = true
default-features = false
[dependencies.mongodb]
version = "3"
optional = true
[dependencies.neo4rs]
version = "0.8"
optional = true
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"stream",
"rustls-tls",
"multipart",
]
optional = true
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.sqlx]
version = "0.8"
features = [
"runtime-tokio",
"chrono",
"json",
]
optional = true
[dependencies.tracing]
version = "0.1"
[dependencies.uuid]
version = "1.10"
features = [
"v4",
"serde",
]
[dev-dependencies.axum]
version = "0.8"
[dev-dependencies.proptest]
version = "1.5"
[dev-dependencies.tokio]
version = "1.40"
features = [
"rt",
"macros",
]
default-features = false