ASCI Logo
ASCI.Academy
LearnPracticeCompeteCareer
Sign InGet Started

Search ASCI Academy

Universal search across Courses, Lessons, Skills, Projects, Challenges, Competitions, Jobs, Internships, and Users

aws skillbuilder-generative-ai

Curriculum Index

Current LevelInitiate
0/ 500 XP
Gravit Certificate:
100% Required
  • 1.1 Formulating Amazon Bedrock Converse Payloads
•
1
2
3
4
5
6
7
8
9
10
Module 1: Amazon Bedrock Converse API & Payloads•Lesson 1

1.1 Formulating Amazon Bedrock Converse Payloads

### Bedrock Converse API Format
Amazon Bedrock provides a unified message schema across Anthropic, Meta, and Amazon Titan models:

example.pyPython 3.11
message = {
"role": "user",
"content": [{"text": "Summarize AWS CloudWatch architecture."}]
}
Python 3.11
•
Interactive Challenge
+50 XP
Challenge Objective

Format the Bedrock Converse message and print 'ROLE: user TEXT: Hello AWS Bedrock'.

solution.py
UTF-84 SpacesAuto-saved
cpython3.11:~/workspace
CPython 3.11.8 (WASM)
$python3 -u solution.py
Click "Compile & Run" (or press Ctrl + Enter) to compile AST, verify bytecode, and execute the solution.