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

Method setThinking

packages/node-sdk/src/session.ts:198–206  ·  view source on GitHub ↗
(effort: ThinkingEffort)

Source from the content-addressed store, hash-verified

196 }
197
198 async setThinking(effort: ThinkingEffort): Promise<void> {
199 this.ensureOpen();
200 const normalized = normalizeRequiredString(
201 effort,
202 'Session thinking effort cannot be empty',
203 ErrorCodes.SESSION_THINKING_EMPTY,
204 );
205 await this.rpc.setThinking({ sessionId: this.id, effort: normalized });
206 }
207
208 async setPermission(mode: PermissionMode): Promise<void> {
209 this.ensureOpen();

Callers 5

setThinkingFunction · 0.45
mainFunction · 0.45
performModelSwitchFunction · 0.45

Calls 2

ensureOpenMethod · 0.95
normalizeRequiredStringFunction · 0.85

Tested by

no test coverage detected