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
//! Persistence helpers for spawned agents.
//!
//! This module saves newly created sessions and registers them in the
//! in-memory agent store. It keeps storage side effects separate from
//! spawn validation and request parsing.
//!
//! # Examples
//!
//! ```ignore
//! persist_spawned_agent(name, instructions, session).await;
//! ```
use ;
use crateSession;
/// Saves a spawned agent session and registers it in the in-memory store.
///
/// # Examples
///
/// ```ignore
/// persist_spawned_agent("reviewer", "Audit code", session).await;
/// ```
pub async
async