fix: conversation not passed

This commit is contained in:
Shivam Mishra
2025-07-15 20:39:52 +05:30
parent 394ba4ff73
commit 88ba4e4562
@@ -27,7 +27,7 @@ class Captain::Conversation::ResponseBuilderJob < ApplicationJob
def generate_and_process_response
@response = if captain_v2_enabled?
Captain::Assistant::AgentRunnerService.new(assistant: @assistant).generate_response(
Captain::Assistant::AgentRunnerService.new(assistant: @assistant, conversation: @conversation).generate_response(
message_history: collect_previous_messages
)
else