Skip to content

Commit 9c055aa

Browse files
tclemCopilot
andcommitted
Add get_model and send_telemetry to Rust-only API list
Bot review on PR #1164 (comment 3164786116) caught two more accidental omissions in the README's 'Rust-only API' section. Both methods are real and exposed; just missing from this inventory: - Session::get_model — wraps session.model.getCurrent. Folded into the existing 'First-class Session convenience methods' bullet. - Client::send_telemetry / Session::send_telemetry — wrap sendTelemetry / session.sendTelemetry. Added a new dedicated bullet because no other SDK exposes these RPC endpoints in their public API at all (not even via typed namespaces), so it's a higher-divergence item worth its own line. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a1e61d9 commit 9c055aa

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

rust/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -685,10 +685,14 @@ none of them are scheduled for removal.
685685
The underlying `account.getQuota` JSON-RPC endpoint is exposed only by
686686
the Rust SDK in this release.
687687
- **First-class `Session` convenience methods**`set_mode` / `get_mode`,
688-
`set_name` / `get_name`, `read_plan` / `update_plan` / `delete_plan`,
689-
`start_fleet`, `list_workspace_files` / `read_workspace_file` /
690-
`create_workspace_file`. The other SDKs require the consumer to drive
691-
the typed JSON-RPC namespace directly for these.
688+
`set_name` / `get_name`, `get_model`, `read_plan` / `update_plan` /
689+
`delete_plan`, `start_fleet`, `list_workspace_files` /
690+
`read_workspace_file` / `create_workspace_file`. The other SDKs require
691+
the consumer to drive the typed JSON-RPC namespace directly for these.
692+
- **`Client::send_telemetry` / `Session::send_telemetry`** — top-level
693+
and session-scoped telemetry emission via `sendTelemetry` /
694+
`session.sendTelemetry`. Other SDKs do not currently expose these RPC
695+
endpoints in their public APIs (not even via the typed namespace).
692696
- **Typed newtypes**`SessionId` and `RequestId` are `#[serde(transparent)]`
693697
newtypes around `String`, so the type system distinguishes a session
694698
identifier from an arbitrary `String` at compile time. Node/Python/Go

0 commit comments

Comments
 (0)