From 9dc6b945372fe0f2da8718c914bc2aecc5e6423c Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Mon, 14 Jul 2025 16:17:11 +0530 Subject: [PATCH] refactor: update error message Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- enterprise/lib/captain/tools/add_private_note_tool.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enterprise/lib/captain/tools/add_private_note_tool.rb b/enterprise/lib/captain/tools/add_private_note_tool.rb index 69905d5a2..28606c231 100644 --- a/enterprise/lib/captain/tools/add_private_note_tool.rb +++ b/enterprise/lib/captain/tools/add_private_note_tool.rb @@ -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