fix(app_generator): improve error handling for closed file I/O operat… (#12073)
Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
parent
1885d3df99
commit
39ace9bdee
4 changed files with 4 additions and 4 deletions
|
|
@ -113,7 +113,7 @@ class ToolEngine:
|
|||
error_response = f"tool invoke error: {e}"
|
||||
agent_tool_callback.on_tool_error(e)
|
||||
except ToolEngineInvokeError as e:
|
||||
meta = e.args[0]
|
||||
meta = e.meta
|
||||
error_response = f"tool invoke error: {meta.error}"
|
||||
agent_tool_callback.on_tool_error(e)
|
||||
return error_response, [], meta
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue