Skip to content

WorkflowOutput

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  1941729584["output_types.WorkflowOutput"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 1941729584
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

Output of the Workflow tool.

Source code in src/clawd_code_sdk/models/output_types.py
class WorkflowOutput(TypedDict):
    """Output of the Workflow tool."""

    status: Literal["async_launched", "remote_launched"]
    taskId: str
    taskType: NotRequired[Literal["local_workflow", "remote_agent"]]
    """TaskType of the registered background task — 'local_workflow' for in-process runs,
    'remote_agent' when remote:true dispatches to CCR.

    Set on all new writes; absent only on transcripts written before this field existed.
    """
    workflowName: NotRequired[str]
    """meta.name from the workflow script — same value as task_started.workflow_name.

    Set on all new writes; absent only on transcripts written before this field existed.
    """
    runId: NotRequired[str]
    """Local workflow run identifier for resumeFromRunId.

    Absent for remote_launched (the CCR session URL is the resume handle there) and on transcripts
    written before this field existed.
    """
    summary: NotRequired[str]
    transcriptDir: NotRequired[str]
    """Directory where subagent transcripts are written during execution"""
    scriptPath: NotRequired[str]
    """Path to the persisted workflow script for this invocation.

    Editable via Write/Edit; pass back as `scriptPath` to re-run without resending the script.
    """
    sessionUrl: NotRequired[str]
    """CCR session URL when status is remote_launched"""
    warning: NotRequired[str]
    """Non-blocking heads-up (e.g.

    local git state diverges from the pushed branch the cloud session will clone)
    """
    error: NotRequired[str]
    """Set if syntax check failed"""

error instance-attribute

error: NotRequired[str]

Set if syntax check failed

runId instance-attribute

runId: NotRequired[str]

Local workflow run identifier for resumeFromRunId.

Absent for remote_launched (the CCR session URL is the resume handle there) and on transcripts written before this field existed.

scriptPath instance-attribute

scriptPath: NotRequired[str]

Path to the persisted workflow script for this invocation.

Editable via Write/Edit; pass back as scriptPath to re-run without resending the script.

sessionUrl instance-attribute

sessionUrl: NotRequired[str]

CCR session URL when status is remote_launched

taskType instance-attribute

taskType: NotRequired[Literal['local_workflow', 'remote_agent']]

TaskType of the registered background task — 'local_workflow' for in-process runs, 'remote_agent' when remote:true dispatches to CCR.

Set on all new writes; absent only on transcripts written before this field existed.

transcriptDir instance-attribute

transcriptDir: NotRequired[str]

Directory where subagent transcripts are written during execution

warning instance-attribute

warning: NotRequired[str]

Non-blocking heads-up (e.g.

local git state diverges from the pushed branch the cloud session will clone)

workflowName instance-attribute

workflowName: NotRequired[str]

meta.name from the workflow script — same value as task_started.workflow_name.

Set on all new writes; absent only on transcripts written before this field existed.

:fa-brands-github: Show source on GitHub