Files
deepseek-harness/website/zh-CN/api/harness/workflows.md
2026-07-19 14:14:02 +08:00

1.3 KiB

ctx.workflows

WorkflowService (abstract seam) — provided by @deepseek-ai/dsh-workflow.

Workflow execution seam. Invalid requests throw before publication; a live run is holder-owned, its result never rejects, cancellation and disposal are bounded, and disposal waits for child cleanup within that bound. Lifecycle listener failures are contained, and workflow/end fires exactly once as the result settles.

Source

ctx.workflows.start(request)

/**
 * Parse and execute a workflow script.
 * @param request - the script, its `args`, the parent agent, and an
 *   optional cancel signal.
 * @returns the live run; its `result` resolves when the script settles.
 */
abstract start(request: WorkflowStartRequest): WorkflowRun

Parse and execute a workflow script.

  • request — the script, its args, the parent agent, and an optional cancel signal.

Returns the live run; its result resolves when the script settles.

Source