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:

  • Agent class and POST /api/agent endpoint;
  • basic chain message.received → Agent.react → message.publish;
  • connection between the action and the source event via stimulusId and its own actionId;
  • JSON/NDJSON and a general cancellation mechanism;
  • Agent.react now calls the real runChat/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.