Worklog for task "Implement a custom AI dialog engine with dynamic scenarios"
1 окт. 2026 г., 16:17:36
Minimum Agent Event Model and LLM
A basic agent reaction layer has been implemented, suitable as a building block for the future runtime:
Agentclass andPOST /api/agentendpoint;- basic chain
message.received → Agent.react → message.publish; - connection between the action and the source event via
stimulusIdand its ownactionId; - JSON/NDJSON and a general cancellation mechanism;
Agent.reactnow calls the realrunChat/LLM instead of a mock;- successfully re-passed 2/2 agent tests for fragments/action identity, cancellation, and provider error.
The current implementation handles a single incoming event type and the chat channel; the model receives only the current message. There is currently no conversation memory, accumulation of multiple events, deduplication, general decision-making system, or scenario transition machine.
01.10.2026
Build a multi-user dialog runtime from scratch without n8n or similar workflow solutions, featuring externally defined complex scenarios and independent state for each dialog.