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 byget_deployment() and get_latest_deployment().
Fields
The unique deployment identifier.
Unix timestamp of when the deployment was created.
Unix timestamp of when the deployment was last updated.
The ID of the user who created the deployment.
The ID of the user who last updated the deployment.
The associated project ID.
The associated prompt ID.
The target deployment environment ID.
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
Model provider and settings. See Config Types.
The prompt messages. Each message contains role and content fields.
Tool/function definitions available to the model.
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
The variable name (used as
{{variable_name}} in prompt templates).The variable type. One of:
"text", "image", "pdf", "api", "prompt".