MCPcopy Create free account
hub / github.com/bytedance/trae-agent / ToolExecResult

Class ToolExecResult

trae_agent/tools/edit_tool_cli.py:29–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28# A class used to encapsulate the results of tool execution
29class ToolExecResult:
30 def __init__(self, output: str | None = None, error: str | None = None, error_code: int = 0):
31 self.output = output
32 self.error = error
33 self.error_code = error_code
34
35
36# Class used to describe tool parameters (although not directly used in CLI, TextEditTool's methods require it)

Callers 8

executeMethod · 0.70
_viewMethod · 0.70
str_replaceMethod · 0.70
_insertMethod · 0.70
_view_handlerMethod · 0.70
_create_handlerMethod · 0.70
_str_replace_handlerMethod · 0.70
_insert_handlerMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected