Skip to content

Add ReasoningEffort configuration support#1

Merged
kawax merged 2 commits intomainfrom
copilot/update-official-sdk
Jan 31, 2026
Merged

Add ReasoningEffort configuration support#1
kawax merged 2 commits intomainfrom
copilot/update-official-sdk

Conversation

Copy link
Contributor

Copilot AI commented Jan 31, 2026

Adds reasoning effort configuration to align with official SDK v0.0.400. Reasoning effort controls computational intensity for models that support it (low, medium, high, xhigh).

Changes

  • New ReasoningEffort enum - String-backed enum for type safety with flexible string fallback
  • SessionConfig / ResumeSessionConfig - Added reasoningEffort property accepting enum or string, auto-converts to string for server
  • ModelCapabilities - Added supportsReasoningEffort() method
  • ModelInfo - Added supportedReasoningEfforts array and defaultReasoningEffort properties
  • Client - Pass reasoningEffort to server in createSession() and resumeSession()

Usage

use Revolution\Copilot\Enums\ReasoningEffort;

// Type-safe enum
Copilot::run(
    prompt: 'Explain quantum computing',
    config: ['reasoningEffort' => ReasoningEffort::HIGH]
);

// Or string
Copilot::run(
    prompt: 'Explain quantum computing',
    config: ['reasoningEffort' => 'high']
);

// Check model support
$models = Copilot::client()->listModels();
foreach ($models as $model) {
    if ($model->capabilities->supportsReasoningEffort()) {
        echo "Default: {$model->defaultReasoningEffort}\n";
    }
}

Enums convert to strings automatically when sent to server. Fully backward compatible.

Original prompt

github/copilot-sdk#302 公式SDKのアップデートに追従。ReasoningEffortはEnumで定義。SessionConfigではenumでもstringでも受け入れてcreateSessionで使うときにstringにする。

Custom agent used: laravel-sdk-sync
Use this agent when the user wants to update the Laravel Copilot SDK to follow official GitHub Copilot CLI SDK changes.

Trigger phrases include:

  • 'update the SDK to match the official version'
  • 'sync the Laravel SDK with the latest official release'
  • 'what changed in the official SDK and how do we update?'
  • 'implement the breaking changes from the official SDK'
    ... see config here

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…onfig, ModelInfo, and ModelCapabilities

Co-authored-by: kawax <1502086+kawax@users.noreply.github.com>
Copilot AI changed the title [WIP] Update official SDK and define ReasoningEffort as Enum Add ReasoningEffort configuration support (SDK v0.0.400) Jan 31, 2026
Copilot AI requested a review from kawax January 31, 2026 00:36
@kawax kawax marked this pull request as ready for review January 31, 2026 00:42
@kawax kawax changed the title Add ReasoningEffort configuration support (SDK v0.0.400) Add ReasoningEffort configuration support Jan 31, 2026
@kawax kawax merged commit 3b54612 into main Jan 31, 2026
5 checks passed
@kawax kawax deleted the copilot/update-official-sdk branch January 31, 2026 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants