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
feat: add reasoning_effort support to all SDK clients (github#302)
* feat: add reasoning_effort support to all SDK clients
- Add reasoningEffort to SessionConfig and ResumeSessionConfig
- Extend ModelCapabilities.supports with reasoningEffort flag
- Add supportedReasoningEfforts and defaultReasoningEffort to ModelInfo
- Update session create/resume to pass reasoningEffort to server
* docs: add reasoningEffort documentation to SDK READMEs
Document the new reasoningEffort/reasoning_effort option in SessionConfig
for all SDK clients (Node.js, Python, Go, .NET).
* trigger CI
Copy file name to clipboardExpand all lines: dotnet/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,6 +93,7 @@ Create a new conversation session.
93
93
94
94
-`SessionId` - Custom session ID
95
95
-`Model` - Model to use ("gpt-5", "claude-sonnet-4.5", etc.)
96
+
-`ReasoningEffort` - Reasoning effort level for models that support it ("low", "medium", "high", "xhigh"). Use `ListModelsAsync()` to check which models support this option.
Copy file name to clipboardExpand all lines: go/README.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
@@ -102,6 +102,7 @@ func main() {
102
102
**SessionConfig:**
103
103
104
104
-`Model` (string): Model to use ("gpt-5", "claude-sonnet-4.5", etc.). **Required when using custom provider.**
105
+
-`ReasoningEffort` (string): Reasoning effort level for models that support it ("low", "medium", "high", "xhigh"). Use `ListModels()` to check which models support this option.
105
106
-`SessionID` (string): Custom session ID
106
107
-`Tools` ([]Tool): Custom tools exposed to the CLI
107
108
-`SystemMessage` (\*SystemMessageConfig): System message configuration
@@ -114,6 +115,7 @@ func main() {
114
115
**ResumeSessionConfig:**
115
116
116
117
-`Tools` ([]Tool): Tools to expose when resuming
118
+
-`ReasoningEffort` (string): Reasoning effort level for models that support it
117
119
-`Provider` (\*ProviderConfig): Custom API provider configuration (BYOK). See [Custom Providers](#custom-providers) section.
Copy file name to clipboardExpand all lines: nodejs/README.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,8 +86,9 @@ Create a new conversation session.
86
86
87
87
**Config:**
88
88
89
-
-`sessionId?: string` - Custom session ID
89
+
-`sessionId?: string` - Custom session ID.
90
90
-`model?: string` - Model to use ("gpt-5", "claude-sonnet-4.5", etc.). **Required when using custom provider.**
91
+
-`reasoningEffort?: "low" | "medium" | "high" | "xhigh"` - Reasoning effort level for models that support it. Use `listModels()` to check which models support this option.
91
92
-`tools?: Tool[]` - Custom tools exposed to the CLI
92
93
-`systemMessage?: SystemMessageConfig` - System message customization (see below)
93
94
-`infiniteSessions?: InfiniteSessionConfig` - Configure automatic context compaction (see below)
0 commit comments