mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-11 21:30:59 +00:00
fix(localagent): allow empty func arg (#1921)
This commit is contained in:
@@ -212,7 +212,10 @@ class LocalAgentRunner(runner.RequestRunner):
|
|||||||
try:
|
try:
|
||||||
func = tool_call.function
|
func = tool_call.function
|
||||||
|
|
||||||
parameters = json.loads(func.arguments)
|
if func.arguments:
|
||||||
|
parameters = json.loads(func.arguments)
|
||||||
|
else:
|
||||||
|
parameters = {}
|
||||||
|
|
||||||
func_ret = await self.ap.tool_mgr.execute_func_call(func.name, parameters, query=query)
|
func_ret = await self.ap.tool_mgr.execute_func_call(func.name, parameters, query=query)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user