MCPcopy Index your code
hub / github.com/github/copilot-sdk / ToolResult

Class ToolResult

python/copilot/tools.py:32–41  ·  view source on GitHub ↗

Result of a tool invocation.

Source from the content-addressed store, hash-verified

30
31@dataclass
32class ToolResult:
33 """Result of a tool invocation."""
34
35 text_result_for_llm: str = ""
36 result_type: ToolResultType = "success"
37 error: str | None = None
38 binary_results_for_llm: list[ToolBinaryResult] | None = None
39 session_log: str | None = None
40 tool_telemetry: dict[str, Any] | None = None
41 _from_exception: bool = field(default=False, repr=False)
42
43
44@dataclass

Callers 15

get_weatherMethod · 0.90
check_statusMethod · 0.90
analyze_codeMethod · 0.90
deploy_serviceMethod · 0.90
access_secretMethod · 0.90
lookup_cityMethod · 0.90
lookup_countryMethod · 0.90
allowed_handlerMethod · 0.90
excluded_handlerMethod · 0.90
wrappedFunction · 0.90

Calls

no outgoing calls

Tested by 15

get_weatherMethod · 0.72
check_statusMethod · 0.72
analyze_codeMethod · 0.72
deploy_serviceMethod · 0.72
access_secretMethod · 0.72
lookup_cityMethod · 0.72
lookup_countryMethod · 0.72
allowed_handlerMethod · 0.72
excluded_handlerMethod · 0.72
wrappedFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…