From 6ea17e700f85a54e769e439c9acbae67eb1e8fb9 Mon Sep 17 00:00:00 2001 From: aakashb95 Date: Mon, 5 Jan 2026 21:58:16 +0530 Subject: [PATCH] fix error response spec --- .../services/captain/assistant/agent_runner_service_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/enterprise/services/captain/assistant/agent_runner_service_spec.rb b/spec/enterprise/services/captain/assistant/agent_runner_service_spec.rb index 931ebb74a..68a1e8e43 100644 --- a/spec/enterprise/services/captain/assistant/agent_runner_service_spec.rb +++ b/spec/enterprise/services/captain/assistant/agent_runner_service_spec.rb @@ -148,7 +148,7 @@ RSpec.describe Captain::Assistant::AgentRunnerService do result = service.generate_response(message_history: message_history) expect(result).to eq({ - 'response' => 'conversation_handoff', + 'response' => 'Transferring to another agent for further assistance.', 'reasoning' => 'Error occurred: Test error', 'action' => 'handoff' }) @@ -170,7 +170,7 @@ RSpec.describe Captain::Assistant::AgentRunnerService do result = service.generate_response(message_history: message_history) expect(result).to eq({ - 'response' => 'conversation_handoff', + 'response' => 'Transferring to another agent for further assistance.', 'action' => 'handoff', 'reasoning' => 'Error occurred: Test error' })