You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 374b773
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/auth/byok.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -204,8 +204,9 @@ client.stop().get();
204
204
|`type`|`"openai"`\|`"azure"`\|`"anthropic"`| Provider type (default: `"openai"`) |
205
205
|`baseUrl` / `base_url`| string |**Required.** API endpoint URL |
206
206
|`apiKey` / `api_key`| string | API key (optional for local providers like Ollama) |
207
+
|`apiKeyCommand` / `api_key_command`| string | Command run by the runtime before each provider request to obtain a fresh API key. Also exposed as `ApiKeyCommand` in .NET and `APIKeyCommand` in Go. Credential-command failures fail the turn before sending a model request. |
|`bearerTokenProvider` / `bearer_token_provider`| callback | Returns a bearer token on demand (takes precedence over `apiKey`and `bearerToken`) |
209
+
|`bearerTokenProvider` / `bearer_token_provider`| callback | Returns a bearer token on demand (takes precedence over `apiKey`, `apiKeyCommand`, and `bearerToken`; the command does not run) |
209
210
|`wireApi` / `wire_api`|`"completions"`\|`"responses"`| Select `"completions"` for broad model compatibility (the Chat Completions API); select `"responses"` for multi-turn state management, tool namespacing, and reasoning support (the Responses API). Anthropic models always use the Messages API regardless of this setting. |
210
211
|`azure.apiVersion` / `azure.api_version`| string | Azure API version. When set, the runtime uses the versioned deployment route; when omitted, it uses the GA versionless `v1` route. |
Copy file name to clipboardExpand all lines: docs/features/hooks.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,8 @@ flowchart LR
33
33
34
34
All hooks are **optional**—register only the ones you need. Returning `null` (or the language equivalent) from any hook tells the SDK to continue with default behavior.
35
35
36
+
File-based repository hooks and repository hook settings are loaded only after the workspace is trusted. User hooks remain available before workspace trust is granted.
37
+
36
38
## Repository hooks from additional directories
37
39
38
40
Repository filesystem hooks are separate from the SDK callbacks described in
The `onSessionEnd` hook is called when a session ends.
256
256
257
+
A standalone SDK session remains active between prompts. Completing a prompt does not end the session; disconnect or dispose the session to run its end hook.
Copy file name to clipboardExpand all lines: dotnet/README.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -241,7 +241,6 @@ Create a new conversation session.
241
241
-`InfiniteSessions` - Configure automatic context compaction (see below)
242
242
-`WorkingDirectory` - Working directory for the session. When not set, the runtime uses its own process working directory.
243
243
-`EnableSessionStore` - Enables the cross-session store for search and retrieval across sessions. When unset in `CopilotClientMode.CopilotCli`, the runtime default applies (enabled). In `CopilotClientMode.Empty`, defaults to disabled.
244
-
-`EnableGitHubCacheStore` - Requests the read-only GitHub cache store (`github-cache-store` capability) on create or resume. The runtime registers the `github_sql` tool only when its `GITHUB_CACHE_STORE` feature flag is also on. Defaults to disabled in every mode.
245
244
-`GitHubTokenProvider` - Acquires session-scoped GitHub tokens on demand. Return `GitHubTokenProviderResult.FromToken` with a positive `ExpiresIn` value (production GitHub tokens typically use `8 * 60 * 60` seconds), or `GitHubTokenProviderResult.Cancel()`. Cannot be combined with `GitHubToken`.
246
245
-`SkillProvider` - Experimental session-scoped skill provider. See [Skill providers (experimental)](#skill-providers-experimental).
247
246
-`OnPermissionRequest` - Optional handler called before each tool execution to approve or deny it. When omitted, permission requests are emitted as events and left pending for manual resolution. `PermissionHandler.ApproveAll` approves requests when managed settings are disabled and throws when `EnableManagedSettings` is true. Custom handlers can inspect `ManagedApprovalRequired` for human-facing confirmation logic. See [Permission Handling](#permission-handling) section.
if(toolOptionsis not null&&(toolOptions.OverridesBuiltInTool||toolOptions.SkipPermission||toolOptions.IsTerminal||toolOptions.Deferis not null||toolOptions.Metadatais not null))
101
+
if(toolOptionsis not null&&(toolOptions.OverridesBuiltInTool||toolOptions.SkipPermission||toolOptions.IsTerminal||toolOptions.Deferis not null||toolOptions.Metadatais not null||toolOptions.Namespaceis not null))
0 commit comments