bstraehle commited on
Commit
462f1f8
1 Parent(s): 9d3e5aa

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +4 -1
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",