|
Entropic 2.14.3
Local-first agentic inference engine
|
RAII publication of one run's session key to its own thread. More...
#include <entropic/types/run_scope.h>
Public Member Functions | |
| RunSessionScope (std::string key) | |
Publish key as this thread's run session key. | |
| ~RunSessionScope () | |
| Restore the previously published key. | |
| RunSessionScope (const RunSessionScope &)=delete | |
| RunSessionScope & | operator= (const RunSessionScope &)=delete |
RAII publication of one run's session key to its own thread.
Restores the previous value on destruction rather than clearing it, so a nested scope cannot orphan an outer turn's key.
key until it goes out of scope. @req REQ-LOOP-009 Definition at line 158 of file run_scope.h.
|
explicit |
Publish key as this thread's run session key.
gh#166 RAII enter — see header.
| key | Session key ("" = the default session). |
| key | Session key to publish. |
Definition at line 104 of file run_scope.cpp.
| entropic::RunSessionScope::~RunSessionScope | ( | ) |
Restore the previously published key.
gh#166 RAII exit — see header.
Definition at line 115 of file run_scope.cpp.