DanishShahzad commited on
Commit
80aa0d3
·
verified ·
1 Parent(s): f987046

Create tools.py

Browse files
Files changed (1) hide show
  1. tools.py +18 -0
tools.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # tools.py (optional if you want to enable tool calling)
2
+
3
+ tools = [
4
+ {
5
+ "type": "function",
6
+ "function": {
7
+ "name": "get_weather",
8
+ "description": "Get the weather for a specific city.",
9
+ "parameters": {
10
+ "type": "object",
11
+ "properties": {
12
+ "city": {"type": "string", "description": "The city to get weather for"}
13
+ },
14
+ "required": ["city"]
15
+ }
16
+ }
17
+ }
18
+ ]