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

Function compact

packages/node-sdk/src/rpc.ts:401–408  ·  view source on GitHub ↗
(input: SessionIdRpcInput & CompactOptions)

Source from the content-addressed store, hash-verified

399 }
400
401 async compact(input: SessionIdRpcInput & CompactOptions): Promise<void> {
402 const rpc = await this.getRpc();
403 return rpc.beginCompaction({
404 sessionId: input.sessionId,
405 agentId: this.interactiveAgentId,
406 ...(input.instruction !== undefined ? { instruction: input.instruction } : {}),
407 });
408 }
409
410 async cancelCompaction(input: SessionIdRpcInput): Promise<void> {
411 const rpc = await this.getRpc();

Callers

nothing calls this directly

Calls 2

getRpcMethod · 0.45
beginCompactionMethod · 0.45

Tested by

no test coverage detected