aws-doc-sdk-examples icon indicating copy to clipboard operation
aws-doc-sdk-examples copied to clipboard

JavascriptV3: Invoke Agent Bedrock #6015

Open Dinuda opened this issue 1 year ago • 1 comments

This pull request contains an example with @aws-sdk/client-bedrock-agent-runtime used to invoke an Agent. I have included a test case for the service function.

Dinuda avatar Feb 17 '24 03:02 Dinuda

I couldn't reopen pr #6015 . Submitting with changes @cpyle0819

Dinuda avatar Feb 17 '24 03:02 Dinuda

Hey, @Dinuda, have you looked at our existing "javascriptv3/bedrock-runtime? It has all of this and more. Please double-check and make sure that this PR is needed.

cpyle0819 avatar Feb 19 '24 13:02 cpyle0819

I spoke too soon. I see the difference. Nevermind.

cpyle0819 avatar Feb 19 '24 13:02 cpyle0819

It looks like this PR changes the quotes in all the model invocation examples in ../bedrock-runtime, which isn't related to bedrock-agent-runtime. I'm trying to keep them consistent across examples.

Question to @cpyle0819: Does it matter from your PoV if some examples use single quotes and some use double quotes for strings?

DennisTraub avatar Feb 20 '24 12:02 DennisTraub

@DennisTraub Yes, we should be using double quotes. Please see instructions in the .git-hooks folder for setting up commit hooks to run code formatting on commit.

cpyle0819 avatar Feb 20 '24 20:02 cpyle0819