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

Method check_status

python/e2e/test_tool_results_e2e.py:47–52  ·  view source on GitHub ↗
(invocation: ToolInvocation)

Source from the content-addressed store, hash-verified

45 async def test_should_handle_tool_result_with_failure_resulttype(self, ctx: E2ETestContext):
46 @define_tool("check_status", description="Checks the status of a service")
47 def check_status(invocation: ToolInvocation) -> ToolResult:
48 return ToolResult(
49 text_result_for_llm="Service unavailable",
50 result_type="failure",
51 error="API timeout",
52 )
53
54 session = await ctx.client.create_session(
55 on_permission_request=PermissionHandler.approve_all, tools=[check_status]

Callers

nothing calls this directly

Calls 1

ToolResultClass · 0.90

Tested by

no test coverage detected