Skip to content

Commit 6f2c61f

Browse files
DennisTraubDennis Traub
and
Dennis Traub
authored
Change "Agents for Amazon Bedrock" to "Amazon Bedrock Agents" (#6834)
* Change "Agents for Amazon Bedrock" to "Amazon Bedrock Agents" --------- Co-authored-by: Dennis Traub <[email protected]>
1 parent f6f6654 commit 6f2c61f

File tree

14 files changed

+77
-86
lines changed

14 files changed

+77
-86
lines changed

.doc_gen/cross-content/cross_ServerlessPromptChaining_Python_block.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
The &BRlong; Serverless Prompt Chaining scenario demonstrates how
99
<ulink type="documentation" url="step-functions/latest/dg/welcome.html">&SFNlong;</ulink>,
1010
<ulink type="documentation" url="bedrock/latest/userguide/what-is-bedrock.html">&BRlong;</ulink>,
11-
and <ulink type="documentation" url="bedrock/latest/userguide/agents.html">Agents for &BRlong;</ulink>
11+
and <ulink type="documentation" url="bedrock/latest/userguide/agents.html">&BRAlong;</ulink>
1212
can be used to build and orchestrate complex, serverless, and highly scalable generative AI applications.
1313
It contains the following working examples:
1414
</para>

.doc_gen/cross-content/phrases-code-examples.ent

+4-4
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@
8989
<!ENTITY BRRUNlong '&BRlong; Runtime'>
9090
<!ENTITY BRRUN '&BR; Runtime'>
9191

92-
<!--Bedrock-->
93-
<!ENTITY BRAlong 'Agents for Amazon Bedrock'>
94-
<!ENTITY BRA 'Agents for Amazon Bedrock'>
92+
<!--Bedrock Agents-->
93+
<!ENTITY BRAlong 'Amazon Bedrock Agents'>
94+
<!ENTITY BRA 'Amazon Bedrock Agents'>
9595

96-
<!--Bedrock Runtime-->
96+
<!--Bedrock Agents Runtime-->
9797
<!ENTITY BRARUNlong '&BRAlong; Runtime'>
9898
<!ENTITY BRARUN '&BRA; Runtime'>
9999

.doc_gen/metadata/bedrock-agent_metadata.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# zexi 0.4.0
22
bedrock-agent_Hello:
3-
title: Hello Agents for &BR;
4-
title_abbrev: Hello Agents for &BR;
5-
synopsis: get started using Agents for &BR;.
3+
title: Hello &BRA;
4+
title_abbrev: Hello &BRA;
5+
synopsis: get started using &BRA;.
66
category: Hello
77
languages:
88
JavaScript:
@@ -186,7 +186,7 @@ bedrock-agent_PrepareAgent:
186186
services:
187187
bedrock-agent: {PrepareAgent}
188188
bedrock-agent_GettingStartedWithBedrockAgents:
189-
title: An end-to-end example showing how to create and invoke &BR; agents using an &AWS; SDK
189+
title: An end-to-end example showing how to create and invoke &BRA; using an &AWS; SDK
190190
title_abbrev: Create and invoke an agent
191191
synopsis_list:
192192
- Create an execution role for the agent.

.github/workflows/validate-doc-metadata.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: checkout repo content
1717
uses: actions/checkout@v4
1818
- name: validate metadata
19-
uses: awsdocs/aws-doc-sdk-examples-tools@2024-09-04-A
19+
uses: awsdocs/aws-doc-sdk-examples-tools@2024-09-11-A
2020
with:
2121
doc_gen_only: "False"
2222
strict_titles: "True"

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
.recommenders
1212
.swiftpm
1313
.venv
14+
.vs
1415
.vscode
1516
Package.resolved
1617
build_dir
@@ -33,4 +34,4 @@ rust_dev_preview
3334
kotlin/services/**/build/
3435
kotlin/services/**/gradle/
3536
kotlin/services/**/gradlew
36-
kotlin/services/**/gradlew.bat
37+
kotlin/services/**/gradlew.bat

javascriptv3/example_code/bedrock-agent-runtime/README.md

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# Agents for Amazon Bedrock Runtime code examples for the SDK for JavaScript (v3)
1+
# Amazon Bedrock Agents Runtime code examples for the SDK for JavaScript (v3)
22

33
## Overview
44

5-
Shows how to use the AWS SDK for JavaScript (v3) to work with Agents for Amazon Bedrock Runtime.
5+
Shows how to use the AWS SDK for JavaScript (v3) to work with Amazon Bedrock Agents Runtime.
66

77
<!--custom.overview.start-->
88
<!--custom.overview.end-->
99

10-
_Agents for Amazon Bedrock Runtime offers you the ability to run autonomous agents in your application._
10+
_Amazon Bedrock Agents Runtime offers you the ability to run autonomous agents in your application._
1111

1212
## ⚠ Important
1313

@@ -27,9 +27,6 @@ For prerequisites, see the [README](../../README.md#Prerequisites) in the `javas
2727

2828

2929
<!--custom.prerequisites.start-->
30-
31-
> ⚠ You must create an agent before you can invoke it. For more information, see [Create an agent](https://docs.aws.amazon.com/bedrock/latest/userguide/agents-create.html). Additionally, you must grant access to the model you specify during agent creation. For more information, see [Model access](https://us-east-1.console.aws.amazon.com/bedrock/home?region=us-east-1#/modelaccess).
32-
3330
<!--custom.prerequisites.end-->
3431

3532
### Single actions
@@ -92,9 +89,9 @@ in the `javascriptv3` folder.
9289

9390
## Additional resources
9491

95-
- [Agents for Amazon Bedrock Runtime User Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/agents.html)
96-
- [Agents for Amazon Bedrock Runtime API Reference](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_Operations_Agents_for_Amazon_Bedrock_Runtime.html)
97-
- [SDK for JavaScript (v3) Agents for Amazon Bedrock Runtime reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent-runtime)
92+
- [Amazon Bedrock Agents Runtime User Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/agents.html)
93+
- [Amazon Bedrock Agents Runtime API Reference](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_Operations_Agents_for_Amazon_Bedrock_Runtime.html)
94+
- [SDK for JavaScript (v3) Amazon Bedrock Agents Runtime reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent-runtime)
9895

9996
<!--custom.resources.start-->
10097
<!--custom.resources.end-->

javascriptv3/example_code/bedrock-agent/README.md

+9-12
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# Agents for Amazon Bedrock code examples for the SDK for JavaScript (v3)
1+
# Amazon Bedrock Agents code examples for the SDK for JavaScript (v3)
22

33
## Overview
44

5-
Shows how to use the AWS SDK for JavaScript (v3) to work with Agents for Amazon Bedrock.
5+
Shows how to use the AWS SDK for JavaScript (v3) to work with Amazon Bedrock Agents.
66

77
<!--custom.overview.start-->
88
<!--custom.overview.end-->
99

10-
_Agents for Amazon Bedrock offer you the ability to build and configure autonomous agents in your application._
10+
_Amazon Bedrock Agents offer you the ability to build and configure autonomous agents in your application._
1111

1212
## ⚠ Important
1313

@@ -27,14 +27,11 @@ For prerequisites, see the [README](../../README.md#Prerequisites) in the `javas
2727

2828

2929
<!--custom.prerequisites.start-->
30-
31-
> ⚠ You must request access to a foundation model before you can use it. If you try to use the foundation model before you have requested access to it, you will receive an error message. For more information, see [Model access](https://docs.aws.amazon.com/bedrock/latest/userguide/model-access.html).
32-
3330
<!--custom.prerequisites.end-->
3431

3532
### Get started
3633

37-
- [Hello Agents for Amazon Bedrock](hello.js) (`GetAgent`)
34+
- [Hello Amazon Bedrock Agents](hello.js) (`GetAgent`)
3835

3936

4037
### Single actions
@@ -84,9 +81,9 @@ for that file.
8481
<!--custom.instructions.start-->
8582
<!--custom.instructions.end-->
8683

87-
#### Hello Agents for Amazon Bedrock
84+
#### Hello Amazon Bedrock Agents
8885

89-
This example shows you how to get started using Agents for Amazon Bedrock.
86+
This example shows you how to get started using Amazon Bedrock Agents.
9087

9188
```bash
9289
node ./hello.js
@@ -108,9 +105,9 @@ in the `javascriptv3` folder.
108105

109106
## Additional resources
110107

111-
- [Agents for Amazon Bedrock User Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/agents.html)
112-
- [Agents for Amazon Bedrock API Reference](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_Operations_Agents_for_Amazon_Bedrock.html)
113-
- [SDK for JavaScript (v3) Agents for Amazon Bedrock reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent)
108+
- [Amazon Bedrock Agents User Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/agents.html)
109+
- [Amazon Bedrock Agents API Reference](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_Operations_Agents_for_Amazon_Bedrock.html)
110+
- [SDK for JavaScript (v3) Amazon Bedrock Agents reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent)
114111

115112
<!--custom.resources.start-->
116113
<!--custom.resources.end-->

python/example_code/bedrock-agent-runtime/README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# Agents for Amazon Bedrock Runtime code examples for the SDK for Python
1+
# Amazon Bedrock Agents Runtime code examples for the SDK for Python
22

33
## Overview
44

5-
Shows how to use the AWS SDK for Python (Boto3) to work with Agents for Amazon Bedrock Runtime.
5+
Shows how to use the AWS SDK for Python (Boto3) to work with Amazon Bedrock Agents Runtime.
66

77
<!--custom.overview.start-->
88
<!--custom.overview.end-->
99

10-
_Agents for Amazon Bedrock Runtime offers you the ability to run autonomous agents in your application._
10+
_Amazon Bedrock Agents Runtime offers you the ability to run autonomous agents in your application._
1111

1212
## ⚠ Important
1313

@@ -69,9 +69,9 @@ in the `python` folder.
6969

7070
## Additional resources
7171

72-
- [Agents for Amazon Bedrock Runtime User Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/agents.html)
73-
- [Agents for Amazon Bedrock Runtime API Reference](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_Operations_Agents_for_Amazon_Bedrock_Runtime.html)
74-
- [SDK for Python Agents for Amazon Bedrock Runtime reference](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-agent-runtime.html)
72+
- [Amazon Bedrock Agents Runtime User Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/agents.html)
73+
- [Amazon Bedrock Agents Runtime API Reference](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_Operations_Agents_for_Amazon_Bedrock_Runtime.html)
74+
- [SDK for Python Amazon Bedrock Agents Runtime reference](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-agent-runtime.html)
7575

7676
<!--custom.resources.start-->
7777
<!--custom.resources.end-->

python/example_code/bedrock-agent-runtime/bedrock_agent_runtime_wrapper.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"""
55
Purpose
66
7-
Shows how to use the AWS SDK for Python (Boto3) with the Agents for Amazon
8-
Bedrock Runtime client to send prompts to an agent to process and respond to.
7+
Shows how to use the AWS SDK for Python (Boto3) with the Amazon Bedrock Agents Runtime
8+
client to send prompts to an agent to process and respond to.
99
"""
1010

1111
import logging
@@ -18,12 +18,12 @@
1818
# snippet-start:[python.example_code.bedrock-agent-runtime.BedrockAgentsRuntimeWrapper.class]
1919
# snippet-start:[python.example_code.bedrock-agent-runtime.BedrockAgentRuntimeWrapper.decl]
2020
class BedrockAgentRuntimeWrapper:
21-
"""Encapsulates Agents for Amazon Bedrock Runtime actions."""
21+
"""Encapsulates Amazon Bedrock Agents Runtime actions."""
2222

2323
def __init__(self, runtime_client):
2424
"""
25-
:param runtime_client: A low-level client representing the Agents for Amazon
26-
Bedrock Runtime. Describes the API operations for running
25+
:param runtime_client: A low-level client representing the Amazon Bedrock Agents Runtime.
26+
Describes the API operations for running
2727
inferences using Bedrock Agents.
2828
"""
2929
self.agents_runtime_client = runtime_client
@@ -68,5 +68,4 @@ def invoke_agent(self, agent_id, agent_alias_id, session_id, prompt):
6868

6969
# snippet-end:[python.example_code.bedrock-agent-runtime.InvokeAgent]
7070

71-
7271
# snippet-end:[python.example_code.bedrock-agent-runtime.BedrockAgentsRuntimeWrapper.class]

python/example_code/bedrock-agent/README.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# Agents for Amazon Bedrock code examples for the SDK for Python
1+
# Amazon Bedrock Agents code examples for the SDK for Python
22

33
## Overview
44

5-
Shows how to use the AWS SDK for Python (Boto3) to work with Agents for Amazon Bedrock.
5+
Shows how to use the AWS SDK for Python (Boto3) to work with Amazon Bedrock Agents.
66

77
<!--custom.overview.start-->
88
<!--custom.overview.end-->
99

10-
_Agents for Amazon Bedrock offer you the ability to build and configure autonomous agents in your application._
10+
_Amazon Bedrock Agents offer you the ability to build and configure autonomous agents in your application._
1111

1212
## ⚠ Important
1313

@@ -38,16 +38,16 @@ python -m pip install -r requirements.txt
3838

3939
Code excerpts that show you how to call individual service functions.
4040

41-
- [CreateAgent](bedrock_agent_wrapper.py#L33)
42-
- [CreateAgentActionGroup](bedrock_agent_wrapper.py#L62)
43-
- [CreateAgentAlias](bedrock_agent_wrapper.py#L97)
44-
- [DeleteAgent](bedrock_agent_wrapper.py#L119)
45-
- [DeleteAgentAlias](bedrock_agent_wrapper.py#L140)
46-
- [GetAgent](bedrock_agent_wrapper.py#L162)
47-
- [ListAgentActionGroups](bedrock_agent_wrapper.py#L209)
48-
- [ListAgentKnowledgeBases](bedrock_agent_wrapper.py#L238)
49-
- [ListAgents](bedrock_agent_wrapper.py#L186)
50-
- [PrepareAgent](bedrock_agent_wrapper.py#L267)
41+
- [CreateAgent](bedrock_agent_wrapper.py#L32)
42+
- [CreateAgentActionGroup](bedrock_agent_wrapper.py#L61)
43+
- [CreateAgentAlias](bedrock_agent_wrapper.py#L96)
44+
- [DeleteAgent](bedrock_agent_wrapper.py#L118)
45+
- [DeleteAgentAlias](bedrock_agent_wrapper.py#L139)
46+
- [GetAgent](bedrock_agent_wrapper.py#L161)
47+
- [ListAgentActionGroups](bedrock_agent_wrapper.py#L208)
48+
- [ListAgentKnowledgeBases](bedrock_agent_wrapper.py#L237)
49+
- [ListAgents](bedrock_agent_wrapper.py#L185)
50+
- [PrepareAgent](bedrock_agent_wrapper.py#L266)
5151

5252
### Scenarios
5353

@@ -110,9 +110,9 @@ in the `python` folder.
110110

111111
## Additional resources
112112

113-
- [Agents for Amazon Bedrock User Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/agents.html)
114-
- [Agents for Amazon Bedrock API Reference](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_Operations_Agents_for_Amazon_Bedrock.html)
115-
- [SDK for Python Agents for Amazon Bedrock reference](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-agent.html)
113+
- [Amazon Bedrock Agents User Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/agents.html)
114+
- [Amazon Bedrock Agents API Reference](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_Operations_Agents_for_Amazon_Bedrock.html)
115+
- [SDK for Python Amazon Bedrock Agents reference](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-agent.html)
116116

117117
<!--custom.resources.start-->
118118
<!--custom.resources.end-->

python/example_code/bedrock-agent/bedrock_agent_wrapper.py

+12-14
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"""
1010

1111
import logging
12-
import boto3
1312
from botocore.exceptions import ClientError
1413

1514
logger = logging.getLogger(__name__)
@@ -23,7 +22,7 @@ class BedrockAgentWrapper:
2322
def __init__(self, client):
2423
"""
2524
:param client: A Boto3 Amazon Bedrock Agents client, which is a low-level client that
26-
represents Agents for Amazon Bedrock and describes the API operations
25+
represents Amazon Bedrock Agents and describes the API operations
2726
for creating and managing Bedrock Agent resources.
2827
"""
2928
self.client = client
@@ -42,7 +41,7 @@ def create_agent(self, agent_name, foundation_model, role_arn, instruction):
4241
:param role_arn: The ARN of the IAM role with permissions needed by the agent.
4342
:param instruction: Instructions that tell the agent what it should do and how it should
4443
interact with users.
45-
:return: The response from Agents for Bedrock if successful, otherwise raises an exception.
44+
:return: The response from Amazon Bedrock Agents if successful, otherwise raises an exception.
4645
"""
4746
try:
4847
response = self.client.create_agent(
@@ -61,7 +60,7 @@ def create_agent(self, agent_name, foundation_model, role_arn, instruction):
6160

6261
# snippet-start:[python.example_code.bedrock-agent.CreateAgentActionGroup]
6362
def create_agent_action_group(
64-
self, name, description, agent_id, agent_version, function_arn, api_schema
63+
self, name, description, agent_id, agent_version, function_arn, api_schema
6564
):
6665
"""
6766
Creates an action group for an agent. An action group defines a set of actions that an
@@ -122,7 +121,7 @@ def delete_agent(self, agent_id):
122121
Deletes an Amazon Bedrock agent.
123122
124123
:param agent_id: The unique identifier of the agent to delete.
125-
:return: The response from Agents for Bedrock if successful, otherwise raises an exception.
124+
:return: The response from Amazon Bedrock Agents if successful, otherwise raises an exception.
126125
"""
127126

128127
try:
@@ -144,7 +143,7 @@ def delete_agent_alias(self, agent_id, agent_alias_id):
144143
145144
:param agent_id: The unique identifier of the agent that the alias belongs to.
146145
:param agent_alias_id: The unique identifier of the alias to delete.
147-
:return: The response from Agents for Bedrock if successful, otherwise raises an exception.
146+
:return: The response from Amazon Bedrock Agents if successful, otherwise raises an exception.
148147
"""
149148

150149
try:
@@ -221,9 +220,9 @@ def list_agent_action_groups(self, agent_id, agent_version):
221220

222221
paginator = self.client.get_paginator("list_agent_action_groups")
223222
for page in paginator.paginate(
224-
agentId=agent_id,
225-
agentVersion=agent_version,
226-
PaginationConfig={"PageSize": 10},
223+
agentId=agent_id,
224+
agentVersion=agent_version,
225+
PaginationConfig={"PageSize": 10},
227226
):
228227
action_groups.extend(page["actionGroupSummaries"])
229228

@@ -250,9 +249,9 @@ def list_agent_knowledge_bases(self, agent_id, agent_version):
250249

251250
paginator = self.client.get_paginator("list_agent_knowledge_bases")
252251
for page in paginator.paginate(
253-
agentId=agent_id,
254-
agentVersion=agent_version,
255-
PaginationConfig={"PageSize": 10},
252+
agentId=agent_id,
253+
agentVersion=agent_version,
254+
PaginationConfig={"PageSize": 10},
256255
):
257256
knowledge_bases.extend(page["agentKnowledgeBaseSummaries"])
258257

@@ -270,7 +269,7 @@ def prepare_agent(self, agent_id):
270269
Creates a DRAFT version of the agent that can be used for internal testing.
271270
272271
:param agent_id: The unique identifier of the agent to prepare.
273-
:return: The response from Agents for Bedrock if successful, otherwise raises an exception.
272+
:return: The response from Amazon Bedrock Agents if successful, otherwise raises an exception.
274273
"""
275274
try:
276275
prepared_agent_details = self.client.prepare_agent(agentId=agent_id)
@@ -282,5 +281,4 @@ def prepare_agent(self, agent_id):
282281

283282
# snippet-end:[python.example_code.bedrock-agent.PrepareAgent]
284283

285-
286284
# snippet-end:[python.example_code.bedrock-agent.BedrockAgentWrapper.class]

0 commit comments

Comments
 (0)