brainwires_tool_runtime/sessions/mod.rs
1//! Session-control tools exposed to the agent.
2//!
3//! The agent uses these to inspect or orchestrate *other* chat sessions
4//! running in the same host process — listing peers, reading their history,
5//! pushing a message into one, or spawning a fresh sub-session (e.g. for a
6//! research task it wants to delegate and poll later).
7//!
8//! Session state lives outside this crate (in the gateway, typically), so
9//! this module only defines the tool schemas plus a [`SessionBroker`] trait
10//! that the host implements over its actual registry.
11
12// SessionBroker / SessionId / SessionMessage / SessionSummary / SpawnRequest /
13// SpawnedSession live in `brainwires-session::broker`. Depend on that crate
14// directly — there is no re-export shim here.
15
16mod sessions_tool;
17
18pub use sessions_tool::{
19 SessionsTool, TOOL_SESSIONS_HISTORY, TOOL_SESSIONS_LIST, TOOL_SESSIONS_SEND,
20 TOOL_SESSIONS_SPAWN,
21};