bstraehle commited on
Commit
1c4d378
1 Parent(s): 2267bab

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +3 -1
utils.py CHANGED
@@ -1,7 +1,9 @@
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 = {
 
1
  import inspect, json
2
 
3
  def show_json(str, obj):
4
+ str = f"=> {str}\n{json.loads(obj.model_dump_json())}"
5
+ print(str)
6
+ return str
7
 
8
  def function_to_schema(func) -> dict:
9
  type_map = {