Entropic 2.11.1
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. @dg_internal
Version
2.0.8

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. @dg_internal (P1-8, 2.0.6-rc16)
Version
2.0.6-rc16

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)

@dg_internal

Definition at line 341 of file external_bridge.cpp.

Member Data Documentation

◆ phase

std::string entropic::AsyncFinalState::phase

done | failed | cancelled

Definition at line 343 of file external_bridge.cpp.

◆ status

std::string entropic::AsyncFinalState::status

done | error | cancelled

Definition at line 342 of file external_bridge.cpp.

◆ text

std::string entropic::AsyncFinalState::text

result or error message

Definition at line 344 of file external_bridge.cpp.


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