#include <session/session.hpp>
|
| | Session (SessionOptions opt) |
| | Reads the board and its rules. Throws on an unreadable board.
|
| nlohmann::json | call (const std::string &tool, const nlohmann::json &args) |
| | One tool call (doc 19 §4). Deterministic: the result depends on the board, the state, the arguments and the seed only.
|
| Replay | replay (const std::string &log_path) |
| int | state () const |
| std::string | state_digest () const |
| | FNV-1a 64 of the current state's session copper in canonical order (a digest, not a cryptographic hash).
|
| const model::Board & | base () const |
| long | work_used () const |
|
| static nlohmann::json | tools () |
| | The tools as MCP descriptors {name, description, inputSchema}, and the text the server sends as instructions.
|
| static const char * | instructions () |
Definition at line 38 of file session.hpp.
◆ Session()
Reads the board and its rules. Throws on an unreadable board.
◆ base()
◆ call()
| nlohmann::json tmk::session::Session::call |
( |
const std::string & | tool, |
|
|
const nlohmann::json & | args ) |
One tool call (doc 19 §4). Deterministic: the result depends on the board, the state, the arguments and the seed only.
◆ instructions()
| const char * tmk::session::Session::instructions |
( |
| ) |
|
|
static |
◆ replay()
| Replay tmk::session::Session::replay |
( |
const std::string & | log_path | ) |
|
◆ state()
| int tmk::session::Session::state |
( |
| ) |
const |
|
inline |
◆ state_digest()
| std::string tmk::session::Session::state_digest |
( |
| ) |
const |
FNV-1a 64 of the current state's session copper in canonical order (a digest, not a cryptographic hash).
◆ tools()
| nlohmann::json tmk::session::Session::tools |
( |
| ) |
|
|
static |
The tools as MCP descriptors {name, description, inputSchema}, and the text the server sends as instructions.
◆ work_used()
| long tmk::session::Session::work_used |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: