Optimize Prompt
bedrockagentruntime_optimize_prompt | R Documentation |
Optimizes a prompt for the task that you specify¶
Description¶
Optimizes a prompt for the task that you specify. For more information, see Optimize a prompt in the Amazon Bedrock User Guide.
Usage¶
Arguments¶
input
[required] Contains the prompt to optimize.
targetModelId
[required] The unique identifier of the model that you want to optimize the prompt for.
Value¶
A list with the following syntax:
list(
optimizedPrompt = list(
accessDeniedException = list(
message = "string"
),
analyzePromptEvent = list(
message = "string"
),
badGatewayException = list(
message = "string",
resourceName = "string"
),
dependencyFailedException = list(
message = "string",
resourceName = "string"
),
internalServerException = list(
message = "string"
),
optimizedPromptEvent = list(
optimizedPrompt = list(
textPrompt = list(
text = "string"
)
)
),
throttlingException = list(
message = "string"
),
validationException = list(
message = "string"
)
)
)