Create Prompt Version
| bedrockagent_create_prompt_version | R Documentation |
Creates a static snapshot of your prompt that can be deployed to production¶
Description¶
Creates a static snapshot of your prompt that can be deployed to production. For more information, see Deploy prompts using Prompt management by creating versions in the Amazon Bedrock User Guide.
Usage¶
bedrockagent_create_prompt_version(promptIdentifier, description,
clientToken, tags)
Arguments¶
promptIdentifier |
[required] The unique identifier of the prompt that you want to create a version of. |
description |
A description for the version of the prompt. |
clientToken |
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency. |
tags |
Any tags that you want to attach to the version of the prompt. For more information, see Tagging resources in Amazon Bedrock. |
Value¶
A list with the following syntax:
list(
name = "string",
description = "string",
customerEncryptionKeyArn = "string",
defaultVariant = "string",
variants = list(
list(
name = "string",
templateType = "TEXT"|"CHAT",
templateConfiguration = list(
text = list(
text = "string",
cachePoint = list(
type = "default"
),
inputVariables = list(
list(
name = "string"
)
)
),
chat = list(
messages = list(
list(
role = "user"|"assistant",
content = list(
list(
text = "string",
cachePoint = list(
type = "default"
)
)
)
)
),
system = list(
list(
text = "string",
cachePoint = list(
type = "default"
)
)
),
inputVariables = list(
list(
name = "string"
)
),
toolConfiguration = list(
tools = list(
list(
toolSpec = list(
name = "string",
description = "string",
inputSchema = list(
json = list()
),
strict = TRUE|FALSE
),
cachePoint = list(
type = "default"
)
)
),
toolChoice = list(
auto = list(),
any = list(),
tool = list(
name = "string"
)
)
)
)
),
modelId = "string",
inferenceConfiguration = list(
text = list(
temperature = 123.0,
topP = 123.0,
maxTokens = 123,
stopSequences = list(
"string"
)
)
),
metadata = list(
list(
key = "string",
value = "string"
)
),
additionalModelRequestFields = list(),
genAiResource = list(
agent = list(
agentIdentifier = "string"
)
)
)
),
id = "string",
arn = "string",
version = "string",
createdAt = as.POSIXct(
"2015-01-01"
),
updatedAt = as.POSIXct(
"2015-01-01"
)
)
Request syntax¶
svc$create_prompt_version(
promptIdentifier = "string",
description = "string",
clientToken = "string",
tags = list(
"string"
)
)