v1.0.5-preview.0
Pre-releaseFeature: BYOK bearer-token provider gets sessionId and is renamed to bearerTokenProvider
The BYOK bearer-token provider callback now receives a sessionId parameter, enabling per-session token scoping or caching. The configuration field has been renamed from getBearerToken to bearerTokenProvider across all six SDKs (and the callback type to BearerTokenProvider), aligning with the existing *Provider naming convention. (#1796)
const client = new CopilotClient({
bearerTokenProvider: async ({ sessionId }) => getTokenForSession(sessionId),
});var client = new CopilotClient(new CopilotClientOptions {
BearerTokenProvider = async (args) => await GetTokenForSessionAsync(args.SessionId),
});Feature: @CopilotTool annotation for ergonomic Java tool registration
Java applications can now declare tools using the @CopilotTool and @Param annotations. The SDK's annotation processor generates the necessary metadata at compile time; use ToolDefinition.fromObject(...) to register an entire object's annotated methods without manual JSON schema construction. (#1792)
Note: This API is currently
@CopilotExperimental.
`@CopilotTool`("Get the current weather for a city")
public String getWeather(
`@Param`(value = "City name", required = true) String city,
`@Param`(value = "Unit: celsius or fahrenheit", required = false, defaultValue = "celsius") String unit) {
// implementation
}
// Registration:
List<ToolDefinition> tools = ToolDefinition.fromObject(new WeatherTools());Feature: GitHub-anchored attachment variants added to Rust SDK
The Rust Attachment enum now includes all 9 GitHub-anchored reference types that the CLI can deliver — GitHubCommit, GitHubRelease, GitHubActionsJob, GitHubRepository, GitHubFileDiff, GitHubTreeComparison, GitHubUrl, GitHubFile, and GitHubSnippet. Previously these variants were silently dropped at the SDK boundary when received. (#1823)
New contributors
@pallaviraiturkar0made their first contribution in #1823
Generated by Release Changelog Generator · sonnet46 1.1M