MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_session_with_memory_store

Function test_session_with_memory_store

core/src/agent_api/tests.rs:2737–2744  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2735
2736#[tokio::test(flavor = "multi_thread")]
2737async fn test_session_with_memory_store() {
2738 use a3s_memory::InMemoryStore;
2739 let store = Arc::new(InMemoryStore::new());
2740 let agent = Agent::from_config(test_config()).await.unwrap();
2741 let opts = SessionOptions::new().with_memory(store);
2742 let session = agent.session("/tmp/test-ws-memory", Some(opts)).unwrap();
2743 assert!(session.memory().is_some());
2744}
2745
2746#[tokio::test(flavor = "multi_thread")]
2747async fn test_session_without_memory_store() {

Callers

nothing calls this directly

Calls 3

with_memoryMethod · 0.80
test_configFunction · 0.70
sessionMethod · 0.45

Tested by

no test coverage detected