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