imageBytes, err := os.ReadFile("chart.png")
if err != nil {
log.Fatal(err)
}
resp, err := client.Converse(ctx, &audacityruntime.ConverseInput{
ModelId: audacity.String("gpt-5.5"),
Messages: []types.Message{{
Role: types.ConversationRoleUser,
Content: []types.ContentBlock{
&types.ContentBlockMemberText{Value: "What does this chart show?"},
&types.ContentBlockMemberImage{Value: types.ImageBlock{
Format: types.ImageFormatPng,
Source: &types.ImageSourceMemberBytes{Value: imageBytes},
}},
},
}},
})
// Or reference a hosted image directly (not available in Bedrock):
// Source: &types.ImageSourceMemberUrl{Value: "https://example.com/photo.jpg"}