Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
entropic::AsyncFinalState Struct Reference

Handle entropic.context_clear. More...

Public Attributes

std::string status
 done | error | cancelled
 
std::string phase
 done | failed | cancelled
 
std::string text
 result or error message
 

Detailed Description

Handle entropic.context_clear.

Parameters
handleEngine handle.
Returns
MCP tool result JSON.

Cancel any async tasks currently running on the bridge.

Marks tasks "cancelling", raises engine interrupt so the generation loop unwinds, and polls up to ~1s for their worker threads to move into a terminal state. The wait is best-effort — detached workers may still be in flight when this returns, but the new context clear will race them cleanly because each run owns its own result_json.

Parameters
handleEngine handle (for interrupt).
bridgeBridge whose tasks_ registry is being canceled.

Final-state projection for an async entropic_run.

Groups the three status/phase/text outputs so run_async_ask stays under the 50-SLOC quality gate. (2.0.6-rc16)

Definition at line 307 of file external_bridge.cpp.

Member Data Documentation

◆ phase

std::string entropic::AsyncFinalState::phase

done | failed | cancelled

Definition at line 309 of file external_bridge.cpp.

◆ status

std::string entropic::AsyncFinalState::status

done | error | cancelled

Definition at line 308 of file external_bridge.cpp.

◆ text

std::string entropic::AsyncFinalState::text

result or error message

Definition at line 310 of file external_bridge.cpp.


The documentation for this struct was generated from the following file: