Skip to content

BedrockAgentClient.get_prompt

rboto-bedrock-agent==0.4.0 · Service index · Types

Model summary (excerpt): Retrieves information about the working draft ( DRAFT version) of a prompt or a version of it, depending on whether you include the promptVersion field or not. For more information, see View information about prompts using Prompt management and View information about a version of your prompt in the Amazon Bedrock User Guide.

Install and imports

python -m pip install "rboto[bedrock-agent]==0.4.0"
from rboto import BedrockAgentClient
from rboto_bedrock_agent.types import (
    GetPromptOutput,
    IncludedData,
)

Signature

async def get_prompt(
    *,
    prompt_identifier: str,
    prompt_version: str | None = None,
    included_data: IncludedData | None = None,
) -> GetPromptOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
prompt_identifier Yes The unique identifier of the prompt.
prompt_version No The version of the prompt about which you want to retrieve information. Omit this field to return information about the working draft of the prompt.
included_data No Controls the scope of data returned. Set to METADATA_ONLY to return only resource metadata. Set to ALL_DATA or omit this field to return the full response.

Output

GetPromptOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
name str Always present —
description str | None Always present —
customer_encryption_key_arn str | None Always present —
default_variant str | None Always present —
variants list[PromptVariantOutput] | None Always present PromptVariantOutput
id str Always present —
arn str Always present —
version str Always present —
created_at str Always present —
updated_at str Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

GetPromptOutput, IncludedData

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_bedrock_agent.exceptions:

AccessDeniedError, InternalServerError, ResourceNotFoundError, ThrottlingError, ValidationError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model