fix: on error send user friendly message

This commit is contained in:
aakashb95
2026-01-05 21:04:59 +05:30
parent a31f95cf45
commit da58cbd24a
@@ -94,7 +94,7 @@ class Captain::Assistant::AgentRunnerService
def error_response(error_message)
{
'response' => 'conversation_handoff',
'response' => 'Transferring to another agent for further assistance.',
'reasoning' => "Error occurred: #{error_message}",
'action' => 'handoff'
}