feat(tool): modify execute method to return result in gallery code execution

This commit is contained in:
jinli.yl 2026-02-15 20:40:10 +08:00
parent 6d9fb88db3
commit 3520587533

View file

@ -35,7 +35,7 @@ class ExecuteCode(BaseTool):
)
async def execute(self):
await async_exec_code(self.context.code)
return await async_exec_code(self.context.code)
def execute_sync(self):
return exec_code(self.context.code)