Commit 9604024
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 17e18f4 commit 9604024
6 files changed
Lines changed: 703 additions & 63 deletions
File tree
- packages/trigger-sdk/src/v3
- references/ai-chat/src
- app
- components
- trigger
0 commit comments