From 7192f4bc18f451ec656fb4b46facdd5e482952a5 Mon Sep 17 00:00:00 2001 From: Showdown76py Date: Mon, 19 May 2025 20:42:18 +0200 Subject: [PATCH] fix: update tool call content formatting and enhance mouse click description --- ai/processor.py | 2 +- objects/aic.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ai/processor.py b/ai/processor.py index a125bb6..6616a34 100644 --- a/ai/processor.py +++ b/ai/processor.py @@ -117,7 +117,7 @@ class AIProcessor: self.session.messages.append( aic.Message( role="assistant", - content=str(tool_calls), + content=str(((tc.function.name, tc.function.arguments) for tc in tool_calls)), ) ) diff --git a/objects/aic.py b/objects/aic.py index b4e7767..24ac3cd 100644 --- a/objects/aic.py +++ b/objects/aic.py @@ -31,7 +31,7 @@ FUNCTIONS = [ "click_type": { "type": "string", "enum": ["left", "double_left", "middle", "right"], - "description": "The type of mouse click to perform. `double_left` is a double click." + "description": "The type of mouse click to perform. `double_left` is a double click, used to open apps or files." } }, "required": ["click_type", "x", "y"],