From cf333873fd8a210789385767a4f12a63a6c96d9f Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 5 May 2025 00:08:56 +0100 Subject: [PATCH] fix: json body --- application/agents/tools/api_tool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/agents/tools/api_tool.py b/application/agents/tools/api_tool.py index 092c3569..063313c4 100644 --- a/application/agents/tools/api_tool.py +++ b/application/agents/tools/api_tool.py @@ -25,8 +25,8 @@ class APITool(Tool): def _make_api_call(self, url, method, headers, query_params, body): if query_params: url = f"{url}?{requests.compat.urlencode(query_params)}" - if isinstance(body, dict): - body = json.dumps(body) + # if isinstance(body, dict): + # body = json.dumps(body) try: print(f"Making API call: {method} {url} with body: {body}") if body == "{}":