From 7f3d4aaaa778032ae7c849b262861da25670b300 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Tue, 15 Jul 2025 14:03:34 +0530 Subject: [PATCH] chore: update error Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- enterprise/lib/captain/tools/add_contact_note_tool.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enterprise/lib/captain/tools/add_contact_note_tool.rb b/enterprise/lib/captain/tools/add_contact_note_tool.rb index 02f38b2ca..ea3841ef7 100644 --- a/enterprise/lib/captain/tools/add_contact_note_tool.rb +++ b/enterprise/lib/captain/tools/add_contact_note_tool.rb @@ -6,7 +6,7 @@ class Captain::Tools::AddContactNoteTool < Captain::Tools::BaseAgentTool def perform(_tool_context, note:, contact_id:) log_tool_usage('add_contact_note', { contact_id: contact_id, note_length: note.length }) - return 'Missing required parameters: contact_id and note are required' if note.blank? || contact_id.blank? + return 'Missing required parameters: contact_id, note' if note.blank? || contact_id.blank? contact = find_contact(contact_id) return 'Contact not found' unless contact