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§
- Investigation
State - The accumulated state of one investigation session.
- Investigation
Turn - A single question/answer exchange within an investigation.
- Session
Config - Bounds that keep a long-lived
SessionStorefrom growing without limit. - Session
Store - A thread-safe store of investigation sessions.
Constants§
- DEFAULT_
SESSION_ ID - The default session id used when a caller does not supply one.