Skip to content

Commit c1e8ec4

Browse files
authored
Create bedrock-agents-lambda-cdk.json
1 parent 01cb57a commit c1e8ec4

File tree

1 file changed

+76
-0
lines changed

1 file changed

+76
-0
lines changed
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"title": "Amazon Bedrock Agents with AWS Lambda",
3+
"description": "Create a agent with Amazon Bedrock with a Lambda function action group",
4+
"language": "Python",
5+
"level": "300",
6+
"framework": "CDK",
7+
"introBox": {
8+
"headline": "How it works",
9+
"text": [
10+
"In this pattern, we show you how to use Amazon Bedrock Agents to call an API and get the results from it for a user. Bedrock Agents is helpful in various situations such as fetching real-time information from APIs, interacting with knowledge bases, and performing actions based on user inputs.",
11+
"It processes user input through a foundation model to determine its next steps. It then decides whether to invoke an action or query a knowledge base. For performing an action it has action groups defined, in this example we are using a Lambda function which invokes an API. It then either executes the action or it gathers more information from its knowledge base or the user. The agent generates an observation from these results, which it uses to update its understanding. This cycle continues until the agent can provide a final response or needs more user input, allowing for dynamic and context-aware interactions."
12+
]
13+
},
14+
"gitHub": {
15+
"template": {
16+
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/bedrock-agents-lambda-cdk",
17+
"templateURL": "serverless-patterns/bedrock-agents-lambda-cdk",
18+
"projectFolder": "bedrock-agents-lambda-cdk",
19+
"templateFile": "stacks/bedrock_agents_lambda_cdk_stack.py"
20+
}
21+
},
22+
"resources": {
23+
"bullets": [
24+
{
25+
"text": "Bedrock Agents",
26+
"link": "https://docs.aws.amazon.com/bedrock/latest/userguide/agents.html"
27+
},
28+
{
29+
"text": "Creating Bedrock Agent Action Groups",
30+
"link": "https://docs.aws.amazon.com/bedrock/latest/userguide/agents-action-create.html"
31+
}
32+
]
33+
},
34+
"deploy": {
35+
"text": [
36+
"cdk deploy"
37+
]
38+
},
39+
"testing": {
40+
"text": [
41+
"See the GitHub repo for detailed testing instructions."
42+
]
43+
},
44+
"cleanup": {
45+
"text": [
46+
"Delete the stack: <code>cdk destroy</code>."
47+
]
48+
},
49+
"authors": [
50+
{
51+
"name": "Reethi Joseph",
52+
"image": "https://drive.google.com/file/d/1fthW0WuTMx8dKt3EPoh6NHFdj-jBrtvf/view",
53+
"bio": "Reethi is a Senior Cloud Engineer at AWS.",
54+
"linkedin": "reethi-joseph"
55+
}
56+
],
57+
"patternArch": {
58+
"icon1": {
59+
"x": 20,
60+
"y": 50,
61+
"service": "bedrock",
62+
"label": "Amazon Bedrock Agent"
63+
},
64+
"icon2": {
65+
"x": 80,
66+
"y": 50,
67+
"service": "lambda",
68+
"label": "AWS Lambda"
69+
},
70+
"line1": {
71+
"from": "icon1",
72+
"to": "icon2",
73+
"label": ""
74+
}
75+
}
76+
}

0 commit comments

Comments
 (0)