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

Method excluded_handler

python/e2e/test_tools_e2e.py:359–363  ·  view source on GitHub ↗
(invocation: ToolInvocation)

Source from the content-addressed store, hash-verified

357 return ToolResult(text_result_for_llm=f"ALLOWED_{input_val.upper()}")
358
359 def excluded_handler(invocation: ToolInvocation) -> ToolResult:
360 nonlocal excluded_tool_called
361 excluded_tool_called = True
362 input_val = (invocation.arguments or {}).get("input", "")
363 return ToolResult(text_result_for_llm=f"EXCLUDED_{input_val.upper()}")
364
365 session = await ctx.client.create_session(
366 on_permission_request=PermissionHandler.approve_all,

Callers

nothing calls this directly

Calls 2

ToolResultClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected