Skip to content

PromptCreationConfigurations

Source code in docs_src/capo_bedrock_agent_runtime/types/prompt_creation_configurations.py
class PromptCreationConfigurations(TypedDict, closed=True):
    previous_conversation_turns_to_include: NotRequired["int"]
    """<p>The number of previous conversations from the ongoing agent session to include in the conversation history of the agent prompt, during the current invocation. This gives you more granular control over the context that the model is made aware of, and helps the model remove older context which is no longer useful during the ongoing agent session.</p>"""
    exclude_previous_thinking_steps: "bool"
    """<p>If <code>true</code>, the service removes any content between <code>&lt;thinking&gt;</code> tags from previous conversations in an agent session. The service will only remove content from already processed turns. This helps you remove content which might not be useful for current and subsequent invocations. This can reduce the input token count and potentially save costs. The default value is <code>false</code>.</p>"""

exclude_previous_thinking_steps instance-attribute

exclude_previous_thinking_steps: bool

If true, the service removes any content between <thinking> tags from previous conversations in an agent session. The service will only remove content from already processed turns. This helps you remove content which might not be useful for current and subsequent invocations. This can reduce the input token count and potentially save costs. The default value is false.

previous_conversation_turns_to_include instance-attribute

previous_conversation_turns_to_include: NotRequired[int]

The number of previous conversations from the ongoing agent session to include in the conversation history of the agent prompt, during the current invocation. This gives you more granular control over the context that the model is made aware of, and helps the model remove older context which is no longer useful during the ongoing agent session.