bedrock agentcore runtime getting started
Amazon Bedrock AgentCore Runtime is the serverless infrastructure layer that hosts custom agent code, pay for what you use while AgentCore Harness is a fully managed orchestration layer running on top of that runtime that builds the agent loop for you through simple configuration. Harness created runs and you will be billed for how long it is running.
To get started with AgentCore runtime, we need to install it
npm install -g @aws/agentcore
agentcore --version
Next, we will run the following in the root directory of the project (it must be in the root directory) :-
agentcore create --project-name MyTsAgent --no-agent
cd MyTsAgent
agentcore add agent --name TsAgent --type create --build CodeZip --language Python --framework Strands --model-provider Bedrock --memory none
And to deploy it
agentcore deploy
And we can see it in the console too
To test it out
agentcore invoke "Tell me a joke"
Or you can invoke it wth code :-
So which model are you using for this? The answer lies in your load.py.
Once you deployed it
And the clean it up
agentcore remove all
And then we have to do another deployment to remove it.
To get the status :-
agentcore status
Comments