1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Persistent storage backends
//!
//! This module provides storage implementations for persisting agent data,
//! such as conversation history, session state, and other artifacts.
//!
//! # Available Backends
//!
//! - **JsonlStorage**: JSON Lines format for append-only logs
//!
//! # Usage
//!
//! ```rust,ignore
//! use bamboo_agent::agent::core::storage::{Storage, JsonlStorage};
//!
//! let storage = JsonlStorage::new("sessions.jsonl")?;
//! storage.append(session_id, &data).await?;
//! let data = storage.read(session_id).await?;
//! ```
pub use ;
pub use ;
pub use ;
/// Attachment reader for `bamboo-attachment://<session_id>/<attachment_id>` references.
///
/// This is used to keep session storage free of base64 while still allowing the
/// agent loop to send data URLs upstream (most providers expect either HTTP(S)
/// URLs or `data:` URLs for images).