Skip to content

Commit 0957343

Browse files
committed
added doc metadata
1 parent 17fbc8f commit 0957343

File tree

3 files changed

+48
-2
lines changed

3 files changed

+48
-2
lines changed

.doc_gen/metadata/bedrock-agent-runtime_metadata.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,24 @@ bedrock-agent-runtime_InvokeFlow:
3232
- javascriptv3/example_code/bedrock-agent-runtime/actions/invoke-flow.js
3333
services:
3434
bedrock-agent-runtime: {InvokeFlow}
35+
36+
bedrock-agent-runtime_Scenario_ConverseWithFlow:
37+
title: Converse with an &BRlong; flow
38+
synopsis: Uses InvokeFlow to converse with an &BRlong; flow that includes an agent node.
39+
category: Scenarios
40+
guide_topic:
41+
title: Converse with an &BRlong; flow
42+
url: bedrock/latest/userguide/flows-multi-turn-invocation.html
43+
languages:
44+
Python:
45+
versions:
46+
- sdk_version: 3
47+
github: python/example_code/bedrock-agent-runtime
48+
sdkguide:
49+
excerpts:
50+
- description:
51+
snippet_tags:
52+
- python.example_code.bedrock-agent-runtime.flow_conversation.complete
53+
54+
services:
55+
bedrock-agent-runtime: {InvokeFlow}

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ Code excerpts that show you how to call individual service functions.
4040

4141
- [InvokeAgent](bedrock_agent_runtime_wrapper.py#L33)
4242

43+
### Scenarios
44+
45+
Code examples that show you how to accomplish a specific task by calling multiple
46+
functions within the same service.
47+
48+
- [](flows/flow-conversation.py)
49+
4350

4451
<!--custom.examples.start-->
4552
<!--custom.examples.end-->
@@ -54,6 +61,24 @@ Code excerpts that show you how to call individual service functions.
5461

5562

5663

64+
####
65+
66+
This example shows you how to Uses InvokeFlow to converse with an Amazon Bedrock flow that includes an agent node.
67+
68+
69+
<!--custom.scenario_prereqs.bedrock-agent-runtime_Scenario_ConverseWithFlow.start-->
70+
<!--custom.scenario_prereqs.bedrock-agent-runtime_Scenario_ConverseWithFlow.end-->
71+
72+
Start the example by running the following at a command prompt:
73+
74+
```
75+
python flows/flow-conversation.py
76+
```
77+
78+
79+
<!--custom.scenarios.bedrock-agent-runtime_Scenario_ConverseWithFlow.start-->
80+
<!--custom.scenarios.bedrock-agent-runtime_Scenario_ConverseWithFlow.end-->
81+
5782
### Tests
5883

5984
⚠ Running tests might result in charges to your AWS account.

python/example_code/bedrock-agent-runtime/flows/flow-conversation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
# snippet-start:[bedrock-agent-runtime.example_code.flow_conversation.complete]
4+
# snippet-start:[python.example_code.bedrock-agent-runtime.flow_conversation.complete]
55

66

77
"""
@@ -179,4 +179,4 @@ def main():
179179
if __name__ == "__main__":
180180
main()
181181

182-
# snippet-end:[bedrock-agent-runtime.example_code.flow_conversation.complete]
182+
# snippet-end:[python.example_code.bedrock-agent-runtime.flow_conversation.complete]

0 commit comments

Comments
 (0)