You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Phase I: update README + docs for new Python SDK API
Mirrors PR #1357 Phase K (TypeScript SDK API review): every Python
code snippet under \docs/\ and the \python/README.md\ now uses the
post-Phase-B/F/G/H public API:
* `CopilotClient()` / `CopilotClient(CopilotClientOptions(connection=RuntimeConnection.uri/stdio/tcp(...), ...))`
in place of `SubprocessConfig` / `ExternalServerConfig`
* `PermissionDecisionApproveOnce()`, `PermissionDecisionReject(feedback=...)`,
`PermissionDecisionUserNotAvailable()`, `PermissionNoResult()` in place of
`PermissionRequestResult(kind=...)`
* `base_directory` (was `copilot_home`)
* `enable_remote_sessions` (was `remote`)
* `on_exit_plan_mode_request` / `on_auto_mode_switch_request`
* `session.get_events()` (was `get_messages`)
* `client.on_lifecycle(...)` (was `client.on`)
* `max_prompt_tokens` (was `max_input_tokens`)
* snake_case dataclass attribute accesses (\session_id\, \start_time\,
\modified_time\, \is_remote\, \git_root\, \protocol_version\)
TypeScript / Go / C# / Rust / Java snippets in the same files are
untouched.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@@ -131,7 +131,7 @@ const client = new CopilotClient({
131
131
```
132
132
133
133
> [!NOTE]
134
-
> Python SDK logging configuration is limited. For advanced logging, run the CLI manually with `--log-dir` and connect via `cli_url`.
134
+
> Python SDK logging configuration is limited. For advanced logging, run the CLI manually with `--log-dir` and connect via `RuntimeConnection.uri(...)`.
0 commit comments