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

Class ToolExecResult

trae_agent/tools/json_edit_tool_cli.py:33–39  ·  view source on GitHub ↗

A class to encapsulate the result of a tool execution.

Source from the content-addressed store, hash-verified

31
32
33class ToolExecResult:
34 """A class to encapsulate the result of a tool execution."""
35
36 def __init__(self, output: str | None = None, error: str | None = None, error_code: int = 0):
37 self.output = output
38 self.error = error
39 self.error_code = error_code
40
41
42class ToolParameter:

Callers 4

_view_jsonMethod · 0.70
_set_json_valueMethod · 0.70
_add_json_valueMethod · 0.70
_remove_json_valueMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected