From edf0a9063e6379179d15e7808c0a5ca53ee7e16d Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Mon, 6 Apr 2026 19:17:43 -0400 Subject: [PATCH] fix: prevent model from inferring project names on create_task/create_note The model was hallucinating project names from task/note content (e.g. inferring "Vehicle Maintenance" from "purchase wheel bearings"). Added explicit guidance to both project field descriptions: only set if the user explicitly named a project, never infer from content. Co-Authored-By: Claude Sonnet 4.6 --- src/fabledassistant/services/tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fabledassistant/services/tools.py b/src/fabledassistant/services/tools.py index 6b48abb..443d63e 100644 --- a/src/fabledassistant/services/tools.py +++ b/src/fabledassistant/services/tools.py @@ -101,7 +101,7 @@ _CORE_TOOLS = [ }, "project": { "type": "string", - "description": "Optional project name to assign this task to", + "description": "Optional project name to assign this task to. Only set this if the user explicitly named a project. Do NOT infer a project from the task content or context.", }, "parent_task": { "type": "string", @@ -147,7 +147,7 @@ _CORE_TOOLS = [ }, "project": { "type": "string", - "description": "Optional project name to assign this note to", + "description": "Optional project name to assign this note to. Only set this if the user explicitly named a project. Do NOT infer a project from the note content or context.", }, "confirmed": { "type": "boolean",