Prompt Deployment Node

vellum.workflows.nodes.PromptDeploymentNode

Used to execute a Prompt Deployment and surface a string output for convenience.

Attributes

deployment
Union[UUID, str]Required

Either the Prompt Deployment’s UUID or its name

prompt_inputs
EntityInputsInterfaceRequired

The inputs for the Prompt

release_tag
strDefaults to LATEST

The release tag to use for the Prompt Execution

external_id
Optional[str]

Optionally include a unique identifier for tracking purposes. Must be unique within a given Prompt Deployment.

expand_meta
Optional[PromptDeploymentExpandMetaRequest]

Expandable execution fields to include in the response. See more here.

raw_overrides
Optional[RawPromptExecutionOverridesRequest]

The raw overrides to use for the Prompt Execution

expand_raw
Optional[Sequence[str]]

Expandable raw fields to include in the response

metadata
Optional[Dict[str, Optional[Any]]]

The metadata to use for the Prompt Execution

request_options
Optional[RequestOptions]

The request options to use for the Prompt Execution

Outputs

text
str

The generated text output from the prompt execution

results
List[PromptOutput]

The array of results from the prompt execution. PromptOutput is a union of the following types:

  • StringVellumValue
  • FunctionCallVellumValue