Skip to content

Bedrock Agent Runtime  >  Operations  >  put_invocation_step

put_invocation_step

Operation

put_invocation_step async

put_invocation_step(input: PutInvocationStepInput, plugins: list[Plugin] | None = None) -> PutInvocationStepOutput

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:

Parameters:

Name Type Description Default
input PutInvocationStepInput

An instance of PutInvocationStepInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
PutInvocationStepOutput

An instance of PutInvocationStepOutput.

Input

PutInvocationStepInput dataclass

Dataclass for PutInvocationStepInput structure.

Attributes

invocation_identifier class-attribute instance-attribute
invocation_identifier: str | None = None

The unique identifier (in UUID format) of the invocation to add the invocation step to.

invocation_step_id class-attribute instance-attribute
invocation_step_id: str | None = None

The unique identifier of the invocation step in UUID format.

invocation_step_time class-attribute instance-attribute
invocation_step_time: datetime | None = None

The timestamp for when the invocation step occurred.

payload class-attribute instance-attribute
payload: InvocationStepPayload | None = None

The payload for the invocation step, including text and images for the interaction.

session_identifier class-attribute instance-attribute
session_identifier: str | None = None

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

Output

PutInvocationStepOutput dataclass

Dataclass for PutInvocationStepOutput structure.

Attributes

invocation_step_id instance-attribute
invocation_step_id: str

The unique identifier of the invocation step in UUID format.