I am a newbie to using JavaScript SDK to connect to AWS Bedrock service, below is my code:
const { BedrockAgentRuntimeClient, RetrieveCommand } = require("@aws-sdk/client-bedrock-agent-runtime");
const client = new BedrockAgentRuntimeClient({
// fake credentials
credentials: {
accessKeyId: 'accesskey',
secretAccessKey: 'secret',
},
region: "us-east-1"
});
const params = {
/** input parameters */
};
const command = new RetrieveCommand(params);
async function send() {
const data = await client.send(command);
}
send();
In this code, what do I need to pass in params section? And, am I missing something from the code?
I searched the documentation a lot but found nothing.
Any help will be appreciated.
RetrieveCommand... So, that should answer your general question, whatparamsexpects.