MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / setThinking

Method setThinking

packages/acp-adapter/src/session.ts:381–388  ·  view source on GitHub ↗

* Forward an ACP thinking-toggle change to the underlying SDK. * * Phase 15 introduces this as the new canonical channel for the * thinking axis. Boolean → thinking-effort mapping: * - `true` → `Session.setThinking(effort)` where `effort` is the * current model's default effort (

(enabled: boolean)

Source from the content-addressed store, hash-verified

379 * carries a fresh snapshot.
380 */
381 async setThinking(enabled: boolean): Promise<void> {
382 if (typeof this.session.setThinking === 'function') {
383 const effort = enabled ? await this.thinkingOnEffort() : THINKING_OFF_EFFORT;
384 await this.session.setThinking(effort);
385 }
386 this.currentThinkingEnabledInternal = enabled;
387 await this.emitConfigOptionUpdate();
388 }
389
390 /**
391 * The effort to send when the ACP thinking toggle flips on: the current

Callers 2

setModelMethod · 0.45

Calls 2

thinkingOnEffortMethod · 0.95

Tested by

no test coverage detected