Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(bedrock): add application inference profile #800

Merged
merged 29 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
694f769
chore(update): update to cdk 2.166.0
krokoko Nov 12, 2024
dfbf49e
feat(bedrock): add application inference profile
krokoko Nov 12, 2024
01a1f74
chore(merge): merge main
krokoko Nov 12, 2024
a7b6e32
chore(build): fix mutation
krokoko Nov 12, 2024
724bf4f
chore(build): fix mutation
krokoko Nov 12, 2024
97bc01d
Merge branch 'main' into inference_profile
krokoko Nov 13, 2024
f89f3e4
chore(refactor): update design and add from methods
krokoko Nov 13, 2024
241e1a7
chore(aip): calculate id and expose name as attr
krokoko Nov 14, 2024
8038ce0
chore(aip): update attributes interface name
krokoko Nov 14, 2024
12851ab
Merge branch 'main' into inference_profile
krokoko Nov 14, 2024
96876ca
chore(deps): upgrade to cdk 2.167
krokoko Nov 15, 2024
212521e
feat(bedrock): add cross-region inference profiles
aws-rafams Nov 15, 2024
5d61aac
Merge branch 'main' into inference_profile
krokoko Nov 15, 2024
3e376b7
feat(bedrock): add IInvokable
aws-rafams Nov 15, 2024
c57cf63
feat(bedrock): add IInvokable pt2
aws-rafams Nov 15, 2024
40609a2
chore(deps): bring back cdk v.2.166 due to changes requiring more tes…
krokoko Nov 15, 2024
7509c3c
fix(bedrock): add test case
aws-rafams Nov 15, 2024
bb673b4
fix(bedrock): add test case
aws-rafams Nov 15, 2024
e6a3c5a
fix(bedrock): add test case 2
aws-rafams Nov 15, 2024
1dd8263
Merge branch 'inference_profile' into inference_profile_new
krokoko Nov 15, 2024
43e780c
chore(doc): add missing auto generated doc
krokoko Nov 18, 2024
f3a6927
chore(cris): add support in prompts and agents for cris
krokoko Nov 19, 2024
6106ed2
chore(merge): merge main
krokoko Nov 19, 2024
674ab79
chore(tests): fix tests
krokoko Nov 20, 2024
3ea8fb8
Merge branch 'main' into inference_profile
krokoko Nov 20, 2024
b9958ea
docs(bedrock): updated docstrings
aws-rafams Nov 20, 2024
2323e3c
fix(bedrock): update grant-invoke
aws-rafams Nov 20, 2024
350f0ce
chore(build): fix build
krokoko Nov 20, 2024
cf6621f
chore(doc): update readme
krokoko Nov 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .npmignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

69 changes: 69 additions & 0 deletions .projen/tasks.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
const GITHUB_USER = 'awslabs';
const PUBLICATION_NAMESPACE = 'cdklabs';
const PROJECT_NAME = 'generative-ai-cdk-constructs';
const CDK_VERSION: string = '2.162.1';
const CDK_VERSION: string = '2.166.0';
krokoko marked this conversation as resolved.
Show resolved Hide resolved

function camelCaseIt(input: string): string {
// Hypens and dashes to spaces and then CamelCase...
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# CDK Generative AI Constructs V0.1.283 (2024-11-20)

Based on CDK library version 2.166.0

# CDK Generative AI Constructs V0.1.273 (2024-10-15)

Based on CDK library version 2.162.1
Expand Down
2 changes: 1 addition & 1 deletion DEVELOPER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Default output format [None]: json
```

- [Node](https://nodejs.org/en) >= v20.9.0
- [AWS CDK](https://github.com/aws/aws-cdk/releases/tag/v2.162.1) >= 2.162.1
- [AWS CDK](https://github.com/aws/aws-cdk/releases/tag/v2.166.0) >= 2.166.0
- [Python](https://www.python.org/downloads/) >=3.9
- [Projen](https://github.com/projen/projen) >= 0.78.8
- [Yarn](https://classic.yarnpkg.com/lang/en/docs/cli/install/) >= 1.22.19
Expand Down
2 changes: 1 addition & 1 deletion apidocs/interfaces/DockerLambdaCustomProps.md
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ stable
> `readonly` `optional` **recursiveLoop**: `RecursiveLoop`

Sets the Recursive Loop Protection for Lambda Function.
It lets Lambda detect and terminate unintended recusrive loops.
It lets Lambda detect and terminate unintended recursive loops.

#### Default

Expand Down
10 changes: 10 additions & 0 deletions apidocs/namespaces/bedrock/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@
- [ContentFilterType](enumerations/ContentFilterType.md)
- [ContextualGroundingFilterType](enumerations/ContextualGroundingFilterType.md)
- [CrawlingScope](enumerations/CrawlingScope.md)
- [CrossRegionInferenceProfileRegion](enumerations/CrossRegionInferenceProfileRegion.md)
- [DataDeletionPolicy](enumerations/DataDeletionPolicy.md)
- [DataSourceType](enumerations/DataSourceType.md)
- [GuardrailAction](enumerations/GuardrailAction.md)
- [InferenceProfileType](enumerations/InferenceProfileType.md)
- [ManagedWordFilterType](enumerations/ManagedWordFilterType.md)
- [ParserMode](enumerations/ParserMode.md)
- [PromptCreationMode](enumerations/PromptCreationMode.md)
Expand All @@ -41,15 +43,18 @@
- [AgentActionGroup](classes/AgentActionGroup.md)
- [AgentAlias](classes/AgentAlias.md)
- [ApiSchema](classes/ApiSchema.md)
- [ApplicationInferenceProfile](classes/ApplicationInferenceProfile.md)
- [BedrockFoundationModel](classes/BedrockFoundationModel.md)
- [ChunkingStrategy](classes/ChunkingStrategy.md)
- [ConfluenceDataSource](classes/ConfluenceDataSource.md)
- [CrossRegionInferenceProfile](classes/CrossRegionInferenceProfile.md)
- [CustomTransformation](classes/CustomTransformation.md)
- [DataSource](classes/DataSource.md)
- [DataSourceBase](classes/DataSourceBase.md)
- [DataSourceNew](classes/DataSourceNew.md)
- [Guardrail](classes/Guardrail.md)
- [GuardrailBase](classes/GuardrailBase.md)
- [InferenceProfileBase](classes/InferenceProfileBase.md)
- [InlineApiSchema](classes/InlineApiSchema.md)
- [KnowledgeBase](classes/KnowledgeBase.md)
- [ParsingStategy](classes/ParsingStategy.md)
Expand All @@ -72,6 +77,8 @@
- [AgentAliasProps](interfaces/AgentAliasProps.md)
- [AgentProps](interfaces/AgentProps.md)
- [ApiSchemaConfig](interfaces/ApiSchemaConfig.md)
- [ApplicationInferenceProfileAttributes](interfaces/ApplicationInferenceProfileAttributes.md)
- [ApplicationInferenceProfileProps](interfaces/ApplicationInferenceProfileProps.md)
- [BedrockFoundationModelProps](interfaces/BedrockFoundationModelProps.md)
- [CommonPromptVariantProps](interfaces/CommonPromptVariantProps.md)
- [ConfluenceCrawlingFilters](interfaces/ConfluenceCrawlingFilters.md)
Expand All @@ -80,6 +87,7 @@
- [ContentFilter](interfaces/ContentFilter.md)
- [ContextualGroundingFilter](interfaces/ContextualGroundingFilter.md)
- [CrawlingFilters](interfaces/CrawlingFilters.md)
- [CrossRegionInferenceProfileProps](interfaces/CrossRegionInferenceProfileProps.md)
- [CustomTopicProps](interfaces/CustomTopicProps.md)
- [DataSourceAssociationProps](interfaces/DataSourceAssociationProps.md)
- [FoundationModelParsingStategyProps](interfaces/FoundationModelParsingStategyProps.md)
Expand All @@ -90,6 +98,8 @@
- [IAgentAlias](interfaces/IAgentAlias.md)
- [IDataSource](interfaces/IDataSource.md)
- [IGuardrail](interfaces/IGuardrail.md)
- [IInferenceProfile](interfaces/IInferenceProfile.md)
- [IInvokable](interfaces/IInvokable.md)
- [IKnowledgeBase](interfaces/IKnowledgeBase.md)
- [InferenceConfiguration](interfaces/InferenceConfiguration.md)
- [IPrompt](interfaces/IPrompt.md)
Expand Down
8 changes: 8 additions & 0 deletions apidocs/namespaces/bedrock/classes/Agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ The name for the agent alias.

***

### foundationModel

> `readonly` **foundationModel**: [`IInvokable`](../interfaces/IInvokable.md)

The model used by the agent.

***

### knowledgeBases

> **knowledgeBases**: `AgentKnowledgeBaseProperty`[] = `[]`
Expand Down
Loading
Loading