Tool Workflow Types (src/types.ts)

deepseek-harness · packages/workflow/tool-workflow/src/types.ts · typescript · MIT
ai, automation, dev-tools, lang:typescript

Defines browser-safe durable workflow event and state interfaces for model-facing workflow tools. Reuse when building or integrating structured agent workflows.

// Source: https://github.com/diegosouzapw/deepseek-harness | License: MIT | Copyright 2026 DeepSeek
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Browser-safe durable workflow-record events written by the model-facing
 * workflow tool into its calling parent Session.
 *
 * @module @deepseek-ai/dsh-tool-workflow/types
 */

import type { SessionId } from '@deepseek-ai/dsh-session/types'
import type {
  WorkflowAgentOutcome, WorkflowRunId, WorkflowStopReason,
} from '@deepseek-ai/dsh-workflow/types'

/** Opens one durable top-level workflow run record. */
export interface ToolWorkflowRunStartData {
  readonly runId: WorkflowRunId
  readonly name: string
}

/** Records one workflow member after its child Session is published. */
export interface ToolWorkflowAgentStar

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key