-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Step functions vs Bedrock flows techniques clear, add tests for …
…Bedrock flows stacks
- Loading branch information
1 parent
270d88c
commit 0969d63
Showing
53 changed files
with
253 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
jsonschema==4.23.0 | ||
jsonschema==4.17.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
techniques-bedrock-flows/functions/parse_json_response/requirements.txt
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
techniques_bedrock_flows/functions/parse_json_response/requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
jsonschema==4.17.3 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
81 changes: 81 additions & 0 deletions
81
techniques_bedrock_flows/test_bedrock_flows_techniques_stacks.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
import aws_cdk as cdk | ||
from aws_cdk.assertions import Template | ||
|
||
from stacks.model_invocation import FlowsModelInvocation | ||
from stacks.prompt_templating import FlowsPromptTemplating | ||
from stacks.sequential_chain import FlowsSequentialChain | ||
from stacks.parallel_chain import FlowsParallelChain | ||
from stacks.conditional_chain import FlowsConditionalChain | ||
from stacks.map_chain import FlowsMapChain | ||
|
||
|
||
def test_techniques_bedrock_flows_model_invocation_stack_synthesizes_properly(): | ||
app = cdk.App() | ||
|
||
test_stack = FlowsModelInvocation( | ||
app, | ||
"TestStack", | ||
) | ||
|
||
# Ensure the template synthesizes successfully | ||
Template.from_stack(test_stack) | ||
|
||
|
||
def test_techniques_bedrock_flows_prompt_templating_stack_synthesizes_properly(): | ||
app = cdk.App() | ||
|
||
test_stack = FlowsPromptTemplating( | ||
app, | ||
"TestStack", | ||
) | ||
|
||
# Ensure the template synthesizes successfully | ||
Template.from_stack(test_stack) | ||
|
||
|
||
def test_techniques_bedrock_flows_sequential_chain_stack_synthesizes_properly(): | ||
app = cdk.App() | ||
|
||
test_stack = FlowsSequentialChain( | ||
app, | ||
"TestStack", | ||
) | ||
|
||
# Ensure the template synthesizes successfully | ||
Template.from_stack(test_stack) | ||
|
||
|
||
def test_techniques_bedrock_flows_parallel_chain_stack_synthesizes_properly(): | ||
app = cdk.App() | ||
|
||
test_stack = FlowsParallelChain( | ||
app, | ||
"TestStack", | ||
) | ||
|
||
# Ensure the template synthesizes successfully | ||
Template.from_stack(test_stack) | ||
|
||
|
||
def test_techniques_bedrock_flows_conditional_chain_stack_synthesizes_properly(): | ||
app = cdk.App() | ||
|
||
test_stack = FlowsConditionalChain( | ||
app, | ||
"TestStack", | ||
) | ||
|
||
# Ensure the template synthesizes successfully | ||
Template.from_stack(test_stack) | ||
|
||
|
||
def test_techniques_bedrock_flows_map_chain_stack_synthesizes_properly(): | ||
app = cdk.App() | ||
|
||
test_stack = FlowsMapChain( | ||
app, | ||
"TestStack", | ||
) | ||
|
||
# Ensure the template synthesizes successfully | ||
Template.from_stack(test_stack) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
techniques_step_functions/functions/parse_json_response/requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
jsonschema==4.17.3 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.