#87 — Provide LlmChatItem ID’s in WS to enable liking

Repo: Twill-AI/facade State: closed | Status: done Assignee: Unassigned

Created: 2024-08-28 · Updated: 2025-09-15

Description

When pieces of ChatResponse* elements are generated into WebSocket they don’t have ID’s. ID’s appears only after Facade stores them in db. Facade stores them in db at the end of response. And right now (2024-08-28) it is a background action, i.e. ChatResponseStatus=done is being sent without waiting LlmChatItem’s persisted.

Idea is first store LlmChatItem-s and then return the whole response in ChatResponseStatus=done packet. Updated https://twillpayments.atlassian.net/wiki/spaces/TD/pages/7929859/Facade+API#Supported-WebSocket-%E2%80%9Ctype%E2%80%9D-s with it.

AC:

  • Facade sends all persisted LlmChatItem-s in ChatResponseStatus=done packet in persisted_items field.
  • for_llmchat in ChatResponseStatus is implemented.

Notes

Add implementation notes, blockers, and context here

Add wikilinks to related people, meetings, or other tickets