(invocation: ToolInvocation)
| 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, |
nothing calls this directly
no test coverage detected