Add support for persistent copilot messages and threads

This commit is contained in:
Pranav
2025-05-12 17:47:20 -07:00
parent 543dd1476d
commit 9e8ea5d2f8
16 changed files with 276 additions and 2 deletions
@@ -0,0 +1,8 @@
json.payload do
json.array! @copilot_messages do |message|
json.id message.id
json.message message.message
json.message_type message.message_type
json.created_at message.created_at.to_i
end
end
@@ -0,0 +1,12 @@
json.payload do
json.array! @copilot_threads do |thread|
json.id thread.id
json.title thread.title
json.uuid thread.uuid
json.created_at thread.created_at.to_i
json.user do
json.id thread.user.id
json.name thread.user.name
end
end
end