Skip to content

Commit f1af2f3

Browse files
committed
feat(chat): add hydrateMessages, chat.history, and custom actions
Backend-controlled message history via hydrateMessages hook — loads from DB on every turn, replacing the linear accumulator. Imperative chat.history API (rollbackTo, remove, replace, slice) for modifying history from any hook or run(). Custom actions via actionSchema + onAction — typed actions sent through transport.sendAction() that wake the agent, modify state, then trigger run(). Adds sendAction to both TriggerChatTransport and AgentChat.
1 parent 7584b9f commit f1af2f3

6 files changed

Lines changed: 703 additions & 63 deletions

File tree

0 commit comments

Comments
 (0)