fix error response spec

This commit is contained in:
aakashb95
2026-01-05 21:58:16 +05:30
parent da58cbd24a
commit 6ea17e700f
@@ -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'
})