fix: on error send user friendly message
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user