Skip to main content

Module sessions

Module sessions 

Source
Expand description

SessionsTool + companion types over brainwires-session::SessionBroker. Session-control tools exposed to the agent.

The agent uses these to inspect or orchestrate other chat sessions running in the same host process — listing peers, reading their history, pushing a message into one, or spawning a fresh sub-session (e.g. for a research task it wants to delegate and poll later).

Session state lives outside this crate (in the gateway, typically), so this module only defines the tool schemas plus a [SessionBroker] trait that the host implements over its actual registry.

Structs§

SessionsTool
Bundle of four session-control tools, all backed by a single SessionBroker.

Constants§

TOOL_SESSIONS_HISTORY
Tool name for the session-history tool.
TOOL_SESSIONS_LIST
Tool name for the list-sessions tool.
TOOL_SESSIONS_SEND
Tool name for the send-to-session tool.
TOOL_SESSIONS_SPAWN
Tool name for the spawn-session tool.