The agents can see the previous conversations with the copilot if needed with this change. We would have to cleanup the data after a while. For now, that is not considered. This PR adds: - A new model for copilot_threads (intentionally named thread instead of conversation to avoid confusion), copilot_messages - Add the controller to fetch previous threads and messages.
10 lines
256 B
Ruby
10 lines
256 B
Ruby
FactoryBot.define do
|
|
factory :captain_copilot_message, class: 'CopilotMessage' do
|
|
account
|
|
user
|
|
copilot_thread { association :captain_copilot_thread }
|
|
message { { content: 'This is a test message' } }
|
|
message_type { 'user' }
|
|
end
|
|
end
|