Skip to main content

Module session

Module session 

Source
Expand description

Per-session investigation state.

The Model Context Protocol treats each tool call as independent, so any notion of a continuing investigation must be held by the server. This module provides a small, thread-safe store keyed by a caller-supplied session id: follow-up calls that pass the same id see the prior questions and answers, letting the agent build on earlier evidence instead of restarting cold.

The store has no dependency on rig or the corpus engine, so it can be used and tested independently of the MCP layer.

Structs§

InvestigationState
The accumulated state of one investigation session.
InvestigationTurn
A single question/answer exchange within an investigation.
SessionConfig
Bounds that keep a long-lived SessionStore from growing without limit.
SessionStore
A thread-safe store of investigation sessions.

Constants§

DEFAULT_SESSION_ID
The default session id used when a caller does not supply one.