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']}!"}, }, }