VocalDocscontracts 1.65.0

GenerateNode

Renders a prompt template and produces text or an object. Built in process scope from 1.65.0 (processCapabilityIssues): exactly one of prompt, a template pinned at publish, and an inline template; input binds the template's variables by name; output_schema is required; agent_id names the Agent whose active version, pinned at publish, gives the model chain, the Policies its hooks run and the Provider rules the step runs under on the headless Engine.

An object with 12 fields.

Fields

agent_idAgentId
Process scope (1.65.0): the Agent whose active version, pinned at publish in WorkflowPins.agents, gives the model chain and the Policies the step runs under; required there.
compensateWorkflowRef
Process scope: the subflow that undoes this node's effect if the instance is cancelled or fails later.
edgesmap of WorkflowNodeId
From each outlet the node type declares to the id of the next node; every declared outlet is mapped.
idWorkflowNodeIdrequired
inputmap of ZenExpression
Named ZEN expressions evaluated before the node runs, typed against the node's input schema.
output_schemamap of any
The JSON Schema subset the output is validated against (the one Tool parameters use); an invalid output is retried at most twice, then takes on_failure with schema_invalid. A retrieve node needs none from 1.59.0: its output is the platform's RetrieveNodeOutput.
Writes fields of the node's output to declared slots (conversation) or vars (process).
Every node that waits has one, with a default per type.
type"generate"required