Skip to content

Commit dcd86c1

Browse files
Add changelog for v0.1.30 (#642)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 51baa25 commit dcd86c1

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,53 @@ All notable changes to the Copilot SDK are documented in this file.
44

55
This changelog is automatically generated by an AI agent when stable releases are published.
66
See [GitHub Releases](https://github.com/github/copilot-sdk/releases) for the full list.
7+
8+
## [v0.1.30](https://github.com/github/copilot-sdk/releases/tag/v0.1.30) (2026-03-03)
9+
10+
### Feature: support overriding built-in tools
11+
12+
Applications can now override built-in tools such as `grep`, `edit_file`, or `read_file`. To do this, register a custom tool with the same name and set the override flag. Without the flag, the runtime will return an error if the name clashes with a built-in. ([#636](https://github.com/github/copilot-sdk/pull/636))
13+
14+
```ts
15+
import { defineTool } from "@github/copilot-sdk";
16+
17+
const session = await client.createSession({
18+
tools: [defineTool("grep", {
19+
overridesBuiltInTool: true,
20+
handler: async (params) => `CUSTOM_GREP_RESULT: ${params.query}`,
21+
})],
22+
onPermissionRequest: approveAll,
23+
});
24+
```
25+
26+
```cs
27+
var grep = AIFunctionFactory.Create(
28+
([Description("Search query")] string query) => $"CUSTOM_GREP_RESULT: {query}",
29+
"grep",
30+
"Custom grep implementation",
31+
new AIFunctionFactoryOptions
32+
{
33+
AdditionalProperties = new ReadOnlyDictionary<string, object?>(
34+
new Dictionary<string, object?> { ["is_override"] = true })
35+
});
36+
```
37+
38+
### Feature: simpler API for changing model mid-session
39+
40+
While `session.rpc.model.switchTo()` already worked, there is now a convenience method directly on the session object. ([#621](https://github.com/github/copilot-sdk/pull/621))
41+
42+
- TypeScript: `await session.setModel("gpt-4.1")`
43+
- C#: `await session.SetModelAsync("gpt-4.1")`
44+
- Python: `await session.set_model("gpt-4.1")`
45+
- Go: `err := session.SetModel(ctx, "gpt-4.1")`
46+
47+
### Other changes
48+
49+
- improvement: **[C#]** use event delegate for thread-safe, insertion-ordered event handler dispatch ([#624](https://github.com/github/copilot-sdk/pull/624))
50+
- improvement: **[C#]** deduplicate `OnDisposeCall` and improve implementation ([#626](https://github.com/github/copilot-sdk/pull/626))
51+
- improvement: **[C#]** remove unnecessary `SemaphoreSlim` locks for handler fields ([#625](https://github.com/github/copilot-sdk/pull/625))
52+
- bugfix: **[Python]** correct `PermissionHandler.approve_all` type annotations ([#618](https://github.com/github/copilot-sdk/pull/618))
53+
54+
### New contributors
55+
56+
- @giulio-leone made their first contribution in [#618](https://github.com/github/copilot-sdk/pull/618)

0 commit comments

Comments
 (0)