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

Method get

packages/agent-core/src/services/task/task.ts:157–157  ·  view source on GitHub ↗

* Return a single background task. Throws `TaskNotFoundError` (→ 40406) * when the task id is not found. * * Pass `withOutput: true` to include the task's captured output in the * response (`output_preview` / `output_bytes`). `outputBytes` caps the * returned preview to the last N byt

(sessionId: string, taskId: string, options?: GetTaskOptions)

Source from the content-addressed store, hash-verified

155 * cap is used.
156 */
157 get(sessionId: string, taskId: string, options?: GetTaskOptions): Promise<BackgroundTask>;
158
159 /**
160 * Cancel a running task. Throws:

Callers 15

walkSkillDirFunction · 0.65
getSkillMethod · 0.65
getPluginSkillMethod · 0.65
ensureAgentResumedMethod · 0.65
getReadyAgentMethod · 0.65
resumeAgentMethod · 0.65
resumePersistedAgentMethod · 0.65
findSessionEntryMethod · 0.65
constructorMethod · 0.65
matchingHooksMethod · 0.65
listMethod · 0.65

Implementers 1

TaskServicepackages/agent-core/src/services/task/

Calls

no outgoing calls

Tested by

no test coverage detected