Go, Machine Learning, AWS, Programming, Cloud.
msg, }, }, }, }, } payloadBytes, err := json.Marshal(payload) InvokeModel is used to call the model. The JSON response is converted to a struct (Claude3Response) and the text response is extracted from it. //.... output, err := brc.InvokeModel(context.Background(), &bedrockruntime.InvokeModelInput{