chore: update error

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Shivam Mishra
2025-07-15 14:03:34 +05:30
committed by GitHub
co-authored by Copilot
parent 7748ef2787
commit 7f3d4aaaa7
@@ -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