Add Rust (and C#) to SDK language lists across docs (#1349) · github/copilot-sdk@0f4d7ce · GitHub
Skip to content

Commit 0f4d7ce

Browse files
stephentoubCopilot
andauthored
Add Rust (and C#) to SDK language lists across docs (#1349)
* Add Rust (and C# where missing) to SDK language lists in docs Update documentation, READMEs, copilot instructions, and test scenario files to include Rust in all language listings where it was missing. Also add C# to test scenario docs where implementations already exist but were not listed. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Address review feedback: fix Python version, soften features wording, add Rust OTel example - Fix Python version from 3.10+ to 3.11+ in scenario prerequisite docs (matches pyproject.toml requires-python >= 3.11) - Soften docs/features/index.md wording to 'where available' since not all guides have Rust examples yet - Add Rust TelemetryConfig snippet to opentelemetry.md Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 43d6aef commit 0f4d7ce

10 files changed

Lines changed: 35 additions & 20 deletions

File tree

‎.github/copilot-instructions.md‎

Lines changed: 1 addition & 1 deletion

‎CONTRIBUTING.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Thanks for your interest in contributing!
44

5-
This repository contains the Copilot SDK, a set of multi-language SDKs (Node/TypeScript, Python, Go, .NET) for building applications with the GitHub Copilot agent, maintained by the GitHub Copilot team.
5+
This repository contains the Copilot SDK, a set of multi-language SDKs (Node/TypeScript, Python, Go, .NET, Rust) for building applications with the GitHub Copilot agent, maintained by the GitHub Copilot team.
66

77
Contributions to this project are [released](https://help.github.com/articles/github-terms-of-service/#6-contributions-under-repository-license) to the public under the [project's open source license](LICENSE).
88

‎docs/features/index.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Features
22

3-
These guides cover the capabilities you can add to your Copilot SDK application. Each guide includes examples in all supported languages (TypeScript, Python, Go, .NET, and Java).
3+
These guides cover the capabilities you can add to your Copilot SDK application. Each guide includes examples in supported languages (TypeScript, Python, Go, .NET, Java, and Rust) where available.
44

55
> **New to the SDK?** Start with the [Getting Started tutorial](../getting-started.md) first, then come back here to add more capabilities.
66

‎docs/integrations/microsoft-agent-framework.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The Microsoft Agent Framework is the unified successor to Semantic Kernel and Au
1414
| **A2A protocol** | Agent-to-Agent communication standard supported by the framework |
1515

1616
> [!NOTE]
17-
> MAF integration packages are available for **.NET** and **Python**. For TypeScript, Go, and Java, use the Copilot SDK directly—the standard SDK APIs already provide tool calling, streaming, and custom agents.
17+
> MAF integration packages are available for **.NET** and **Python**. For TypeScript, Go, Java, and Rust, use the Copilot SDK directly—the standard SDK APIs already provide tool calling, streaming, and custom agents.
1818
1919
## Prerequisites
2020

‎docs/observability/opentelemetry.md‎

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,30 @@ var client = new CopilotClient(new CopilotClientOptions()
8484

8585
</details>
8686

87+
<details>
88+
<summary><strong>Rust</strong></summary>
89+
90+
<!-- docs-validate: skip -->
91+
```rust
92+
use github_copilot_sdk::{Client, ClientOptions, TelemetryConfig};
93+
94+
let client = Client::start(ClientOptions::new()
95+
.with_telemetry(TelemetryConfig::new()
96+
.with_otlp_endpoint("http://localhost:4318"))
97+
).await?;
98+
```
99+
100+
</details>
101+
87102
### TelemetryConfig options
88103

89-
| Option | Node.js | Python | Go | .NET | Java | Description |
90-
|---|---|---|---|---|---|---|
91-
| OTLP endpoint | `otlpEndpoint` | `otlp_endpoint` | `OTLPEndpoint` | `OtlpEndpoint` | `otlpEndpoint` | OTLP HTTP endpoint URL |
92-
| File path | `filePath` | `file_path` | `FilePath` | `FilePath` | `filePath` | File path for JSON-lines trace output |
93-
| Exporter type | `exporterType` | `exporter_type` | `ExporterType` | `ExporterType` | `exporterType` | `"otlp-http"` or `"file"` |
94-
| Source name | `sourceName` | `source_name` | `SourceName` | `SourceName` | `sourceName` | Instrumentation scope name |
95-
| Capture content | `captureContent` | `capture_content` | `CaptureContent` | `CaptureContent` | `captureContent` | Whether to capture message content |
104+
| Option | Node.js | Python | Go | .NET | Java | Rust | Description |
105+
|---|---|---|---|---|---|---|---|
106+
| OTLP endpoint | `otlpEndpoint` | `otlp_endpoint` | `OTLPEndpoint` | `OtlpEndpoint` | `otlpEndpoint` | `otlp_endpoint` | OTLP HTTP endpoint URL |
107+
| File path | `filePath` | `file_path` | `FilePath` | `FilePath` | `filePath` | `file_path` | File path for JSON-lines trace output |
108+
| Exporter type | `exporterType` | `exporter_type` | `ExporterType` | `ExporterType` | `exporterType` | `exporter_type` | `"otlp-http"` or `"file"` |
109+
| Source name | `sourceName` | `source_name` | `SourceName` | `SourceName` | `sourceName` | `source_name` | Instrumentation scope name |
110+
| Capture content | `captureContent` | `capture_content` | `CaptureContent` | `CaptureContent` | `captureContent` | `capture_content` | Whether to capture message content |
96111

97112
### Trace context propagation
98113

‎docs/troubleshooting/mcp-debugging.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ When opening an issue or asking for help, collect:
446446

447447
* [ ] SDK language and version
448448
* [ ] CLI version (`copilot --version`)
449-
* [ ] MCP server type (Node.js, Python, .NET, Go, etc.)
449+
* [ ] MCP server type (Node.js, Python, .NET, Go, Rust, etc.)
450450
* [ ] Full MCP server configuration (redact secrets)
451451
* [ ] Result of manual `initialize` test
452452
* [ ] Result of manual `tools/list` test

‎test/scenarios/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SDK E2E Scenario Tests
22

3-
End-to-end scenario tests for the Copilot SDK. Each scenario demonstrates a specific SDK capability with implementations in TypeScript, Python, and Go.
3+
End-to-end scenario tests for the Copilot SDK. Each scenario demonstrates a specific SDK capability with implementations in TypeScript, Python, Go, C#, and Rust.
44

55
## Structure
66

@@ -35,4 +35,4 @@ COPILOT_CLI_PATH=/path/to/copilot GITHUB_TOKEN=$(gh auth token) bash <category>/
3535

3636
- **Copilot CLI** — set `COPILOT_CLI_PATH`
3737
- **GitHub token** — set `GITHUB_TOKEN` or use `gh auth login`
38-
- **Node.js 20+**, **Python 3.10+**, **Go 1.24+** (per language)
38+
- **Node.js 20+**, **Python 3.11+**, **Go 1.24+**, **.NET 8+**, **Rust 1.94+** (per language)

‎test/scenarios/prompts/attachments/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Demonstrates sending **file attachments** alongside a prompt using the Copilot S
77
1. Creates a session with a custom system prompt in `replace` mode
88
2. Resolves the path to `sample-data.txt` (a small text file in the scenario root)
99
3. Sends: _"What languages are listed in the attached file?"_ with the file as an attachment
10-
4. Prints the response — which should list TypeScript, Python, and Go
10+
4. Prints the response — which should list TypeScript, Python, Go, C#, and Rust
1111

1212
## Attachment Format
1313

@@ -51,7 +51,7 @@ The `sample-data.txt` file contains basic project metadata used as the attachmen
5151
Project: Copilot SDK Samples
5252
Version: 1.0.0
5353
Description: Minimal buildable samples demonstrating the Copilot SDK
54-
Languages: TypeScript, Python, Go
54+
Languages: TypeScript, Python, Go, C#, Rust
5555
```
5656

5757
## Run
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Project: Copilot SDK Samples
22
Version: 1.0.0
33
Description: Minimal buildable samples demonstrating the Copilot SDK
4-
Languages: TypeScript, Python, Go
4+
Languages: TypeScript, Python, Go, C#, Rust

‎test/scenarios/transport/README.md‎

Lines changed: 3 additions & 3 deletions

0 commit comments

Comments
 (0)