Skip to content

Bedrock Agent Runtime  >  Unions  >  BedrockSessionContentBlock

BedrockSessionContentBlock

Union Type

BedrockSessionContentBlock module-attribute

A block of content that you pass to, or receive from, a Amazon Bedrock session in an invocation step. You pass the content to a session in the payLoad of the PutInvocationStep API operation. You retrieve the content with the GetInvocationStep API operation.

For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.

Union Member Types

BedrockSessionContentBlockText dataclass

The text in the invocation step.

Attributes

value instance-attribute
value: str

BedrockSessionContentBlockImage dataclass

The image in the invocation step.

Attributes

value instance-attribute
value: ImageBlock

BedrockSessionContentBlockUnknown dataclass

Represents an unknown variant.

If you receive this value, you will need to update your library to receive the parsed value.

This value may not be deliberately sent.

Attributes

tag instance-attribute
tag: str