Spaces:
Running
Running
Update utils.py
Browse files
utils.py
CHANGED
@@ -1,5 +1,8 @@
|
|
1 |
-
import inspect
|
2 |
|
|
|
|
|
|
|
3 |
def function_to_schema(func) -> dict:
|
4 |
type_map = {
|
5 |
str: "string",
|
|
|
1 |
+
import inspect, json
|
2 |
|
3 |
+
def show_json(str, obj):
|
4 |
+
print(f"=> {str}\n{json.loads(obj.model_dump_json())}")
|
5 |
+
|
6 |
def function_to_schema(func) -> dict:
|
7 |
type_map = {
|
8 |
str: "string",
|