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

Method prompt

packages/node-sdk/src/session.ts:104–110  ·  view source on GitHub ↗
(input: string | PromptInput)

Source from the content-addressed store, hash-verified

102 }
103
104 async prompt(input: string | PromptInput): Promise<void> {
105 this.ensureOpen();
106 await this.rpc.prompt({
107 sessionId: this.id,
108 input: normalizePromptInput(input),
109 });
110 }
111
112 /** Execute a user-initiated `!` shell command (silent — does not prompt the
113 * model). Resolves with the command's stdout/stderr for immediate display.

Callers

nothing calls this directly

Calls 3

ensureOpenMethod · 0.95
normalizePromptInputFunction · 0.85
promptMethod · 0.65

Tested by

no test coverage detected