Skip to main content

PromptSnapshot

The complete prompt configuration captured at deployment time. Contains model config, messages, tools, and variable definitions.

Overview

PromptSnapshot is the prompt payload inside a Deployment. When you call get_deployment() or get_latest_deployment(), the returned Deployment.prompt field is a PromptSnapshot.

Fields

config
PromptSnapshotConfig
required
Model provider and settings. See PromptSnapshotConfig.
messages
list[PromptMessage]
required
Array of prompt messages (role and content). See PromptMessage.
tools
list[ToolFunction]
required
Array of tool/function definitions available to the model. See ToolFunction.
variables
list[PromptVariable]
required
Array of variable definitions used in the prompt template. See PromptVariable.

Examples

Accessing from a Deployment

Inspecting Messages and Tools

Using with a Provider SDK


Serialization


JSON Example