An optional exception that tool throws when execution error occurs. When this exception is thrown, the agent will not stop working, but will handle the exception according to the handle_tool_error variable of the tool, and the processing result will be returned to the agent as obser
| 81 | |
| 82 | |
| 83 | class ToolException(Exception): |
| 84 | """An optional exception that tool throws when execution error occurs. |
| 85 | |
| 86 | When this exception is thrown, the agent will not stop working, |
| 87 | but will handle the exception according to the handle_tool_error |
| 88 | variable of the tool, and the processing result will be returned |
| 89 | to the agent as observation, and printed in red on the console. |
| 90 | """ |
| 91 | |
| 92 | pass |
| 93 | |
| 94 | |
| 95 | class Tool(BaseTool): |