Update slop_with_models.py
This commit is contained in:
parent
6eaa3f6951
commit
394d1cd512
1 changed files with 7 additions and 1 deletions
|
|
@ -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']}!"},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue