Expand description
Session state tracking for MCP clients.
Tracks whether the current session has been properly initialized via subcog_init.
Provides lightweight hints to uninitiated sessions for the first few tool calls.
Constantsยง
- MAX_
HINTS ๐ - Maximum number of hints to show for uninitialized sessions.
Staticsยง
- HINT_
COUNT ๐ - INITIALIZED ๐
- Global session state tracker.
Functionsยง
- get_
hint_ message - Returns the initialization hint message.
- is_
initialized - Checks if the session has been initialized.
- mark_
initialized - Marks the session as initialized.
- should_
show_ hint - Checks if a hint should be shown and increments the counter.