Skip to content

Prompt

Source code in docs_src/capo_lex_model_building_service/types/prompt.py
class Prompt(TypedDict, closed=True):
    messages: "capo_lex_model_building_service.types.message_list.MessageList"
    """<p>An array of objects, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML).</p>"""
    max_attempts: (
        "capo_lex_model_building_service.types.prompt_max_attempts.PromptMaxAttempts"
    )
    """<p>The number of times to prompt the user for information.</p>"""
    response_card: NotRequired[
        "capo_lex_model_building_service.types.response_card.ResponseCard"
    ]
    """<p>A response card. Amazon Lex uses this prompt at runtime, in the <code>PostText</code> API response. It substitutes session attributes and slot values for placeholders in the response card. For more information, see <a>ex-resp-card</a>. </p>"""

max_attempts instance-attribute

max_attempts: PromptMaxAttempts

The number of times to prompt the user for information.

messages instance-attribute

messages: MessageList

An array of objects, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML).

response_card instance-attribute

response_card: NotRequired[ResponseCard]

A response card. Amazon Lex uses this prompt at runtime, in the PostText API response. It substitutes session attributes and slot values for placeholders in the response card. For more information, see ex-resp-card.