Spawn a runtime child process and communicate over its stdin/stdout. This is the default when no :attr:`CopilotClientOptions.connection` is supplied. Args: path: Path to the runtime executable. When ``None``, uses the bundled binary.
(
*,
path: str | None = None,
args: Sequence[str] = (),
)
| 290 | |
| 291 | @staticmethod |
| 292 | def for_stdio( |
| 293 | *, |
| 294 | path: str | None = None, |
| 295 | args: Sequence[str] = (), |
| 296 | ) -> StdioRuntimeConnection: |
| 297 | """Spawn a runtime child process and communicate over its stdin/stdout. |
| 298 | |
| 299 | This is the default when no :attr:`CopilotClientOptions.connection` |
| 300 | is supplied. |
| 301 | |
| 302 | Args: |
| 303 | path: Path to the runtime executable. When ``None``, uses the |
| 304 | bundled binary. |
| 305 | args: Extra command-line arguments passed to the runtime process. |
| 306 | """ |
| 307 | return StdioRuntimeConnection(path=path, args=tuple(args)) |
| 308 | |
| 309 | @staticmethod |
| 310 | def for_tcp( |