From 394d1cd512382ac3409744c9665e2f4ee561f763 Mon Sep 17 00:00:00 2001 From: Sacrificial Pancakes Date: Fri, 21 Mar 2025 21:52:37 +0000 Subject: [PATCH] Update slop_with_models.py --- slop_with_models.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/slop_with_models.py b/slop_with_models.py index 23560ef..bf7bdad 100644 --- a/slop_with_models.py +++ b/slop_with_models.py @@ -114,12 +114,18 @@ def initialize_model_map(): tools = { "calculator": { "id": "calculator", - "description": "Basic math", + "description": "Basic math calculator", + "arguments": [ + { "name": "expression", "type": "str", "description": "the math expression to evaluate."} + ], "execute": lambda params: {"result": eval(params["expression"])}, }, "greet": { "id": "greet", "description": "Says hello", + "arguments": [ + { "name": "name", "type": "str", "description": "name of person to greet"} + ], "execute": lambda params: {"result": f"Hello, {params['name']}!"}, }, }