Stream HelpersAWSBedrockCohereStream
AWSBedrockCohereStream
Import
The AWS Bedrock stream functions are utilties that transform the outputs from the AWS Bedrock API into a ReadableStream. It uses AIStream under the hood and handles parsing Bedrock's response.
React
import { AWSBedrockCohereStream } from "ai"
Parameters
response:
The response object returned by a call made by the Provider SDK.
callback?:
An object containing callback functions to handle the start, each token, and completion of the AI response. In the absence of this parameter, default behavior is implemented.
Returns
A ReadableStream.