(self, tools, provider, mode="bypassPermissions")
| 75 | self.tmp.cleanup() |
| 76 | |
| 77 | def _params(self, tools, provider, mode="bypassPermissions"): |
| 78 | registry = ToolRegistry(tools) |
| 79 | ctx = ToolContext(workspace_root=self.workspace) |
| 80 | ctx.permission_context.mode = mode |
| 81 | return QueryParams( |
| 82 | messages=[UserMessage(content="Hi")], |
| 83 | system_prompt="You are helpful.", |
| 84 | tools=tools, |
| 85 | tool_registry=registry, |
| 86 | tool_use_context=ctx, |
| 87 | provider=provider, |
| 88 | abort_controller=AbortController(), |
| 89 | max_turns=4, |
| 90 | ) |
| 91 | |
| 92 | |
| 93 | class TestUnifiedLane(_Base): |
no test coverage detected