refactor: update error message

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Shivam Mishra
2025-07-14 16:17:11 +05:30
committed by GitHub
co-authored by Copilot
parent e9816f8d3d
commit 9dc6b94537
@@ -6,7 +6,7 @@ class Captain::Tools::AddPrivateNoteTool < Captain::Tools::BaseAgentTool
def perform(_tool_context, conversation_id:, note:)
log_tool_usage('add_private_note', { conversation_id: conversation_id, note_length: note.length })
return 'Missing required parameters: conversation_id and note are required' if conversation_id.blank? || note.blank?
return 'Missing required parameters: conversation_id, note' if conversation_id.blank? || note.blank?
conversation = find_conversation(conversation_id)
return 'Conversation not found' unless conversation