WorkflowPins
What a Workflow version pinned at publish (1.59.0; section 3, pins): written by the api, never by the author. Later releases add the Rulesets, prompt templates, statecharts and subflows a version references, each an optional field.
An object with 3 fields.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
agent | WorkflowPinnedAgent or null | yes | The default Agent's active version at publish; null for a process-scope Workflow and when the Agent had none. A Call that runs the Workflow through an Agent version runs that Agent version. |
agents | array of WorkflowPinnedNodeAgent | no | A process-scope Workflow version (1.62.0): the Agent version pinned for each start_call node and, from 1.65.0, each generate node, at publish; a publish whose node names an Agent with no active version is workflow_agent_unknown. Absent on a conversation-scope version and from an api before 1.62.0. |
prompts | array of WorkflowPinnedNodePrompt | no | A process-scope Workflow version (1.65.0): the prompt template version pinned for each generate node that names a template, at publish. Absent when none does and from an api before 1.65.0. |