# README
v3/integrations/nrawsbedrock 
Package nrawsbedrock
instruments https://github.com/aws/aws-sdk-go-v2/service/bedrockruntime requests.
This integration works independently of the nrawssdk-v2
integration, which instruments AWS middleware components generally, while this one instruments Bedrock AI model invocations specifically and in detail.
import "github.com/newrelic/go-agent/v3/integrations/nrawsbedrock"
For more information, see godocs.
# Packages
Example Bedrock client application with New Relic instrumentation
.
# Functions
InvokeModel provides an instrumented interface through which to call the AWS Bedrock InvokeModel function.
InvokeModelWithAttributes is identical to InvokeModel except for the addition of the attrs parameter, which is a map of strings to values of any type.
InvokeModelWithResponseStream invokes a model but unlike the InvokeModel method, the data returned is a stream of multiple events instead of a single response value.
InvokeModelWithResponseStreamAttributes is identical to InvokeModelWithResponseStream except that it adds the attrs parameter, which is a map of strings to values of any type.
ProcessModelWithResponseStream works just like InvokeModelWithResponseStream, except that it handles all the stream processing automatically for you.
ProcessModelWithResponseStreamAttributes is identical to ProcessModelWithResponseStream except that it adds the attrs parameter, which is a map of strings to values of any type.
# Variables
No description provided by the author
# Structs
ResponseStream tracks the model invocation throughout its lifetime until all stream events are processed.
# Interfaces
Modeler is any type that can invoke Bedrock models (e.g., bedrockruntime.Client).