wllvns
10/31/2025, 9:19 AMAWS Bedrock ✓ Fully multimodal. Accepts video as Base64 bytes in request or S3 URI. JSON must include format (e.g. mp4) and source.
But this does not seem to work:
class S3Location {
uri string
bucketOwner string?
}
class BedrockVideoSource {
s3Location S3Location
}
class BedrockVideo {
format string
source BedrockVideoSource
}
class VideoExtractionResult {
description string
extracted_text string[]
audio_transcript string?
}
function ExtractVideoS3(video: BedrockVideo) -> VideoExtractionResult {
client NovaLite
prompt #"
{{ _.role("user") }}
Generate a description of this video and extract any raw text included in the video.
If the text is not in English, auto-detect the language and translate it to English.
If there is audio, run speech-to-text on the audio and include the text verbatim.
If you don't have access to the video, return an empty string for the description and extracted_text.
{{ video }}
{{ ctx.output_format }}
"#
}
test CreativeVideoTest {
functions [ExtractVideoS3]
args {
video {
format "mp4"
source {
s3Location {
uri "s3://[bucket]/[key]"
bucketOwner "accountnum"
}
}
}
}
}
I could not figure out how to create the correct Baml function and calling syntax here though it seems alluded to that it's supported. Any help would be great!Vaibhav (BAML 🐑)
10/31/2025, 11:38 AMVaibhav (BAML 🐑)
10/31/2025, 4:45 PMwllvns
10/31/2025, 5:03 PMbaml-sam
10/31/2025, 10:54 PMbaml-sam
10/31/2025, 10:54 PMwllvns
11/04/2025, 12:31 AMwllvns
11/04/2025, 12:31 AMbaml-sam
11/04/2025, 1:13 AMwllvns
11/05/2025, 10:40 AM