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

Function wrapped

python/e2e/test_suspend_e2e.py:48–53  ·  view source on GitHub ↗
(invocation: ToolInvocation)

Source from the content-addressed store, hash-verified

46
47def _make_tool(name: str, handler) -> Tool:
48 async def wrapped(invocation: ToolInvocation) -> ToolResult:
49 args = invocation.arguments or {}
50 result = handler(args)
51 if inspect.isawaitable(result):
52 result = await result
53 return ToolResult(text_result_for_llm=str(result))
54
55 return Tool(
56 name=name,

Callers

nothing calls this directly

Calls 2

ToolResultClass · 0.90
handlerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…