Spaces:
Running
on
Zero
Running
on
Zero
Create functions.json
Browse files- functions.json +32 -0
functions.json
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[
|
2 |
+
{
|
3 |
+
"name": "get_product_name_by_PID",
|
4 |
+
"description": "Finds the name of a product by its Product ID.",
|
5 |
+
"module_path": "my_functions",
|
6 |
+
"func_name_in_module": "get_product_name_by_PID",
|
7 |
+
"parameters": {
|
8 |
+
"type": "object",
|
9 |
+
"properties": {
|
10 |
+
"PID": {
|
11 |
+
"type": "string"
|
12 |
+
}
|
13 |
+
},
|
14 |
+
"required": ["PID"]
|
15 |
+
}
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"name": "get_stock_price",
|
19 |
+
"description": "Retrieves the latest stock price for a given ticker symbol using yfinance.",
|
20 |
+
"module_path": "my_functions",
|
21 |
+
"func_name_in_module": "get_stock_price",
|
22 |
+
"parameters": {
|
23 |
+
"type": "object",
|
24 |
+
"properties": {
|
25 |
+
"ticker": {
|
26 |
+
"type": "string"
|
27 |
+
}
|
28 |
+
},
|
29 |
+
"required": ["ticker"]
|
30 |
+
}
|
31 |
+
}
|
32 |
+
]
|