WorkflowNode
The `WorkflowNode` entity.
Definition
TypeScript
interface WorkflowNode {
id: string;
workflowId: string;
type:
| "function"
| "workflow"
| "agent"
| "swarm"
| "start"
| "end"
| "condition"
| "delay";
name: string;
config: any;
createdAt: string;
}Fields
| Field | Type | Notes |
|---|---|---|
id | string | readonly required |
workflowId | string | required — Workflow this node belongs to. |
type | "function" | "workflow" | "agent" | "swarm" | "start" | "end" | "condition" | "delay" | required — Node kind (agent, swarm, function, workflow, start, end, condition, delay). |
name | string | required — Display name shown in the workflow editor. |
config | any | required — Type-specific config (e.g. { agentId: 'agt_...' }). |
createdAt | string | readonly required — ISO-8601 timestamp of creation. |