Skip to main content

amazon_bedrock.post_prompt

The final set of instructions and configuration settings to send to the agent.

amazon_bedrock.post_prompt
object

An object that accepts the post_prompt parameters.

post_prompt Parameters

post_prompt.text
stringrequired

The main identity prompt for the AI. This prompt will be used to outline the agent's personality, role, and other characteristics.

post_prompt.temperature
number

Controls the randomness of responses. Higher values (e.g., 0.8) make output more random and creative, while lower values (e.g., 0.2) make it more focused and deterministic. Range: 0.0 to 1.0.

post_prompt.top_p
number

Controls diversity via nucleus sampling. Only tokens with cumulative probability up to top_p are considered. Lower values make output more focused. Range: 0.0 to 1.0.

post_prompt.confidence
number

Minimum confidence threshold for AI responses. Responses below this threshold may be filtered or flagged. Range: 0.0 to 1.0.

post_prompt.presence_penalty
number

Penalizes tokens based on whether they appear in the text so far. Positive values encourage the model to talk about new topics.

post_prompt.frequency_penalty
number

Penalizes tokens based on their frequency in the text so far. Positive values decrease the likelihood of repeating the same line verbatim.