125 std::atomic<bool>* previous_;
181 std::string previous_;
RAII publication of one run's cancel token to its own thread.
RAII publication of one run's session key to its own thread.
RAII: publish a streaming run's sink to its own thread (gh#208).
Symbol visibility macro for all exported symbols.
Activate model on GPU (WARM → ACTIVE).
ENTROPIC_EXPORT const std::atomic< bool > * current_run_cancel()
The cancel token of the run executing on this thread, if any.
@ optional
optional: every escape asks the host's path approver
ENTROPIC_EXPORT bool emit_to_current_run_stream(const char *chunk, size_t len)
Deliver a chunk to the stream sink published on THIS thread.
ENTROPIC_EXPORT bool current_run_cancelled()
Whether THIS thread's run has been cancelled.
ENTROPIC_EXPORT std::string current_run_session()
The session key of the run executing on this thread (gh#166).
ENTROPIC_EXPORT bool cancel_current_run()
Cancel the run executing on this thread (gh#158).
void(*)(const char *chunk, size_t len, void *user_data) RunStreamFn
Signature of a run's stream-chunk sink (gh#208, v2.14.2).