Skip to content

BedrockAgentRuntimeClient.put_invocation_step

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

Model summary (excerpt): Add an invocation step to an invocation in a session. An invocation step stores fine-grained state checkpoints, including text and images, for each interaction. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions . Related APIs: GetInvocationStep ListInvocationSteps ListInvocations ListSessions

Install and imports

python -m pip install "rboto[bedrock-agent-runtime]==0.4.0"
from rboto import BedrockAgentRuntimeClient
from rboto_bedrock_agent_runtime.types import (
    InvocationStepPayload,
    PutInvocationStepOutput,
)

Signature

async def put_invocation_step(
    *,
    session_identifier: str,
    invocation_identifier: str,
    invocation_step_time: str,
    payload: InvocationStepPayload,
    invocation_step_id: str | None = None,
) -> PutInvocationStepOutput: ...

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)
session_identifier Yes The unique identifier for the session to add the invocation step to. You can specify either the session's sessionId or its Amazon Resource Name (ARN).
invocation_identifier Yes The unique identifier (in UUID format) of the invocation to add the invocation step to.
invocation_step_time Yes The timestamp for when the invocation step occurred.
payload Yes The payload for the invocation step, including text and images for the interaction.
invocation_step_id No The unique identifier of the invocation step in UUID format.

Output

PutInvocationStepOutput.

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
invocation_step_id 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.

InvocationStepPayload, PutInvocationStepOutput

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_runtime.exceptions:

AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ServiceQuotaExceededError, ThrottlingError, ValidationError.

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

Service guide · Pinned model