Skip to content

fontlab_aidus_agentus.plugin.client

client

ACP client: manages the JSON-RPC session between the Plugin and the Core.

The Plugin (running inside FontLab's PythonQt) uses this client to talk to the Core process over a QProcess stdio pipe. The wire format is newline- delimited JSON (JSON-RPC 2.0).

State machine (7 states): DISCONNECTED → INITIALIZING → INITIALIZED → SESSION_PENDING → READY ↕ WAITING ↕ ERROR → DISCONNECTED

Signals emitted (connect these in the UI layer): chatUpdate(role, content) — streamed LLM tokens and tool results stateChanged(new_state) — so the UI can show connection status errorOccurred(code, msg) — surfaced to the user as actionable hints

All calls into FontLab's sandbox go through the Executor, not through this client. This client only handles the ACP wire protocol.

Classes