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

Method getTask

apps/kimi-web/src/api/daemon/client.ts:656–670  ·  view source on GitHub ↗
(
    sessionId: string,
    taskId: string,
    input?: { withOutput?: boolean; outputBytes?: number },
  )

Source from the content-addressed store, hash-verified

654 }
655
656 async getTask(
657 sessionId: string,
658 taskId: string,
659 input?: { withOutput?: boolean; outputBytes?: number },
660 ): Promise<AppTask> {
661 const query: Record<string, string | number | boolean | undefined> = {
662 with_output: input?.withOutput,
663 output_bytes: input?.outputBytes,
664 };
665 const data = await this.http.get<WireBackgroundTask>(
666 `/sessions/${encodeURIComponent(sessionId)}/tasks/${encodeURIComponent(taskId)}`,
667 query,
668 );
669 return toAppTask(data);
670 }
671
672 async cancelTask(sessionId: string, taskId: string): Promise<{ cancelled: true }> {
673 const data = await this.http.post<WireCancelResult>(

Callers

nothing calls this directly

Calls 1

toAppTaskFunction · 0.90

Tested by

no test coverage detected