MCPcopy Create free account
hub / github.com/SqueezeAILab/LLMCompiler / ToolException

Class ToolException

src/tools/base.py:83–92  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

81
82
83class 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
95class Tool(BaseTool):

Callers 1

_to_args_and_kwargsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected