v1.0.2
Feature: opt-in memory for sessions
Sessions can now be configured with persistent memory, allowing the agent to recall information across turns. Set memory: { enabled: true } when creating or resuming a session; when omitted the runtime default applies. (#1617)
const session = await client.createSession({
memory: { enabled: true },
});var session = await client.CreateSessionAsync(new SessionConfig
{
Memory = new MemoryConfiguration { Enabled = true }
});Feature: defer parameter for tool definitions
Tools now support a defer option controlling whether they are pre-loaded eagerly or surfaced lazily through tool search. Use "auto" (the default) to allow lazy loading, or "never" to force pre-loading. (#1632)
defineTool("lookup_issue", {
description: "Fetch issue details",
parameters: z.object({ id: z.string() }),
defer: "auto",
handler: async ({ id }) => { /* ... */ },
});var tool = CopilotTool.DefineTool(
async ([Description("Issue ID")] string id) => { /* ... */ },
toolOptions: new CopilotToolOptions { Defer = CopilotToolDefer.Auto });Other changes
- feature: [All SDKs] add
otlpProtocoltelemetry option ("http/json"or"http/protobuf") for configuring OTLP export transport (#1648) - feature: [All SDKs] surface
ModelBilling.tokenPriceson public SDK types, exposing per-tier input/output/cache pricing and context window limits (#1633) - improvement: [All SDKs] call
runtime.shutdownduring normal client stop for deterministic OTEL telemetry flush before process cleanup (#1667) - improvement: [Go] thread
context.Contextthrough the JSON-RPC request path for proper cancellation support (#1643) - improvement: [Java] add
getOpenCanvases()toCopilotSessionto track currently open canvas instances, matching the other SDKs (#1606) - improvement: [Java] rename
SystemPromptSectionstoSystemMessageSectionsfor cross-SDK consistency; old class deprecated withforRemoval=true(#1683) - bugfix: [Python] round sub-millisecond durations in
to_timedelta_intto avoid serialization errors (#1668) - bugfix: [Rust] skip CLI binary download in
build.rswhenDOCS_RSenv var is set (#1660)
New contributors
@andyfellermade their first contribution in #1631@almaleksiamade their first contribution in #1632@idryzhovmade their first contribution in #1668@scottaddiemade their first contribution in #1636
Generated by Release Changelog Generator · sonnet46 1.8M