-
Notifications
You must be signed in to change notification settings - Fork 634
Closed
Labels
bugThis issue is a bug.This issue is a bug.p2This is a standard priority issueThis is a standard priority issue
Description
Checkboxes for prior research
- I've gone through Developer Guide and API reference
- I've checked AWS Forums and StackOverflow.
- I've searched for previous similar issues and didn't find any solution.
Describe the bug
The npm package documentation shows RetrieveAndGenerateStream is available but it throws Error: TypeError: RetrieveAndGenerateStreamCommand is not a constructor with latest version.
Regression Issue
- Select this option if this issue appears to be a regression.
SDK version number
@aws-sdk/client-bedrock-agent-runtime": "3.706.0"
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
v20.18.1
Reproduction Steps
To reproduce, try importing RetrieveAndGenerateStreamCommand and it's not available
Observed Behavior
Throws error
Error: TypeError: RetrieveAndGenerateStreamCommand is not a constructor
at rag (/Users/Documents/Scripts/Node/bedrock-kb-dual.js:43:19)
at Object.<anonymous> (/Users/Documents/Scripts/Node/bedrock-kb-dual.js:50:1)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
at Module.load (node:internal/modules/cjs/loader:1288:32)
at Module._load (node:internal/modules/cjs/loader:1104:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12)
at node:internal/main/run_main_module:28:49
Expected Behavior
The command should be made available since it is documented in the package.
Possible Solution
No response
Additional Information/Context
No response
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.p2This is a standard priority issueThis is a standard priority issue