diff --git a/libs/superagent/app/agents/llm.py b/libs/superagent/app/agents/llm.py index 8fb4f167f..8de03bb12 100644 --- a/libs/superagent/app/agents/llm.py +++ b/libs/superagent/app/agents/llm.py @@ -55,7 +55,7 @@ async def call_tool( content="", additional_kwargs={ "function_call": { - "arguments": args, + "arguments": json.dumps(args), "name": name, } },