Class: Aws::BedrockAgentRuntime::Types::BedrockSessionContentBlock
- Inherits:
-
Struct
- Object
- Struct
- Aws::BedrockAgentRuntime::Types::BedrockSessionContentBlock
- Defined in:
- gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb
Overview
BedrockSessionContentBlock is a union - when making an API calls you must set exactly one of the members.
BedrockSessionContentBlock is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of BedrockSessionContentBlock corresponding to the set member.
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.
Defined Under Namespace
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#image ⇒ Types::ImageBlock
The image in the invocation step.
-
#text ⇒ String
The text in the invocation step.
-
#unknown ⇒ Object
Returns the value of attribute unknown.
Instance Attribute Details
#image ⇒ Types::ImageBlock
The image in the invocation step.
736 737 738 739 740 741 742 743 744 745 746 747 |
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 736 class BedrockSessionContentBlock < Struct.new( :image, :text, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class Image < BedrockSessionContentBlock; end class Text < BedrockSessionContentBlock; end class Unknown < BedrockSessionContentBlock; end end |
#text ⇒ String
The text in the invocation step.
736 737 738 739 740 741 742 743 744 745 746 747 |
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 736 class BedrockSessionContentBlock < Struct.new( :image, :text, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class Image < BedrockSessionContentBlock; end class Text < BedrockSessionContentBlock; end class Unknown < BedrockSessionContentBlock; end end |
#unknown ⇒ Object
Returns the value of attribute unknown
736 737 738 |
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 736 def unknown @unknown end |