BedrockSessionContentBlock
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.
Inheritors
Types
Functions
Casts this BedrockSessionContentBlock as a Image and retrieves its aws.sdk.kotlin.services.bedrockagentruntime.model.ImageBlock value. Throws an exception if the BedrockSessionContentBlock is not a Image.
Casts this BedrockSessionContentBlock as a Image and retrieves its aws.sdk.kotlin.services.bedrockagentruntime.model.ImageBlock value. Returns null if the BedrockSessionContentBlock is not a Image.
Casts this BedrockSessionContentBlock as a Text and retrieves its kotlin.String value. Throws an exception if the BedrockSessionContentBlock is not a Text.
Casts this BedrockSessionContentBlock as a Text and retrieves its kotlin.String value. Returns null if the BedrockSessionContentBlock is not a Text.