aws.internal.ContentBlock
The `ContentBlock` union of a Converse message. Exactly one member is set; build with the static constructors rather than the literal.
Reference version
Signature
class aws.internal.ContentBlockThe ContentBlock union of a Converse message. Exactly one member is set;
build with the static constructors rather than the literal.
Source:<builtin>/aws/ns_internal/bedrock.bamlbytes 6059–7631
Fields
text
string | nullimage
aws.internal.ImageBlock | nullvideo
aws.internal.VideoBlock | nulldocument
aws.internal.DocumentBlock | nullaudio
aws.internal.AudioBlock | nulltoolUse
aws.internal.ToolUseBlock | nulltoolResult
aws.internal.ToolResultBlock | nullcachePoint
baml.json.json | nullStatic methods
function
of_cache_delimiter
(args: baml.json.json) -> aws.internal.ContentBlock throws neverA cachePoint block carrying args exactly as the prompt wrote it.
function
of_document
(document: aws.internal.DocumentBlock) -> aws.internal.ContentBlock throws neverfunction
of_text
(text: string) -> aws.internal.ContentBlock throws neverfunction
of_tool_result
(tool_result: aws.internal.ToolResultBlock
) -> aws.internal.ContentBlock throws never