fix error response spec
This commit is contained in:
@@ -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'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user