MCPcopy Create free account
hub / github.com/github/copilot-sdk / get_secret_number_handler

Method get_secret_number_handler

python/e2e/test_session_e2e.py:446–451  ·  view source on GitHub ↗
(invocation)

Source from the content-addressed store, hash-verified

444 async def test_should_create_session_with_custom_tool(self, ctx: E2ETestContext):
445 # This test uses the low-level Tool() API to show that Pydantic is optional
446 def get_secret_number_handler(invocation):
447 key = invocation.arguments.get("key", "") if invocation.arguments else ""
448 return ToolResult(
449 text_result_for_llm="54321" if key == "ALPHA" else "unknown",
450 result_type="success",
451 )
452
453 session = await ctx.client.create_session(
454 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