Skip to main content

Deployment

Types related to prompt deployments in the Python SDK.

Deployment

A specific instance of a prompt that has been deployed to an environment. Returned by get_deployment() and get_latest_deployment().

Fields

id
str
required
The unique deployment identifier.
created_at
int
required
Unix timestamp of when the deployment was created.
updated_at
int
required
Unix timestamp of when the deployment was last updated.
created_by_user_id
str
required
The ID of the user who created the deployment.
updated_by_user_id
str
required
The ID of the user who last updated the deployment.
project_id
str
required
The associated project ID.
prompt_id
str
required
The associated prompt ID.
deployment_environment_id
str
required
The target deployment environment ID.
prompt
PromptSnapshot
required
The complete deployed prompt snapshot. See PromptSnapshot below.

Example


PromptSnapshot

See the dedicated PromptSnapshot page for full documentation. The complete prompt configuration captured at deployment time, including model config, messages, tools, and variables.

Fields

config
PromptSnapshotConfig
required
Model provider and settings. See Config Types.
messages
list[PromptMessage]
required
The prompt messages. Each message contains role and content fields.
tools
list[ToolFunction]
required
Tool/function definitions available to the model.
variables
list[PromptVariable]
required
Variable definitions used in the prompt template. See PromptVariable below.

PromptVariable

See the dedicated PromptVariable page for full documentation. A variable definition used in prompt templates.

Fields

name
str
required
The variable name (used as {{variable_name}} in prompt templates).
modality
str
required
The variable type. One of: "text", "image", "pdf", "api", "prompt".

Example


Complete Example