[Enhancement]: Add Amazon Nova Converse API example for Go SDK v2 (bedrock-runtime)
Author: haidargitCreated Apr 6, 2026Updated May 1, 2026
LabelsNew example request
Background story
Hello, AWS team.
Currently, the Go SDK v2 gov2/bedrock-runtime only includes a converse api example for claude. Adding the Amazon Nova example will bring Go into parity with the other SDKs and make it much easier for devs to start building with Amazon Nova.
What does this example accomplish?
I would like to provide a PR demonstrating amazon.nova-lite-v1:0 via Bedrock's converse API using the Go v2 SDK, and return the model's text response. The update includes the core action method, unit tests, scenario integration, and metadata.
Which AWS service(s)?
AWS bedrock runtime - Converse API.
Which AWS SDKs or tools?
- All languages
- .NET
- C++
- Go (v2)
- Java
- Java (v2)
- JavaScript
- JavaScript (v3)
- Kotlin
- PHP
- Python
- Ruby
- Rust
- Swift
- Not applicable
Are there existing code examples to leverage?
sources and samples:
- ConverseClaude + ConverseWrapper https://docs.aws.amazon.com/code-library/latest/ug/bedrock-runtime_example_bedrock-runtime_Converse_AnthropicClaude_section.html
- ConverseClaude gov2/bedrock-runtime/actions/converse.go
- metadata (will add for Go v2) bedrock-runtime_Converse_AmazonNovaText
Do you have any reference code?
func (wrapper ConverseWrapper) ConverseNova(ctx context.Context, prompt string) (string, error) {
var content = types.ContentBlockMemberText{
Value: prompt,
}
var message = types.Message{
Content: []types.ContentBlock{&content},
Role: "user",
}
modelId := "amazon.nova-lite-v1:0"
var converseInput = bedrockruntime.ConverseInput{
ModelId: aws.String(modelId),
Messages: []types.Message{message},
}
response, err := wrapper.BedrockRuntimeClient.Converse(ctx, &converseInput)
if err != nil {
ProcessError(err, modelId)
}
responseText, _ := response.Output.(*types.ConverseOutputMemberMessage)
responseContentBlock := responseText.Value.Content[0]
text, _ := responseContentBlock.(*types.ContentBlockMemberText)
return text.Value, nil
}Source: awsdocs/aws-doc-sdk-examples