TOOL_CALLING FIX

agentops
Nicolas Nahas 5 months ago
parent 0bd33ac13d
commit 0b89904410

@ -30,7 +30,7 @@ def parse_and_execute_json(
function_dict = {func.__name__: func for func in functions} function_dict = {func.__name__: func for func in functions}
data = json.loads(json_string) data = json.loads(json_string)
function_list = data.get("functions", []) function_list = data.get("functions", []) if data.get("functions") else [data.get("function", [])]
results = {} results = {}
for function_data in function_list: for function_data in function_list:

Loading…
Cancel
Save