Skip to content

Commit 48daf18

Browse files
krokokoaws-rafams
andauthored
feat(bedrock): add application and system defined inference profiles (#800)
* feat(bedrock): add application and system defined inference profiles --------- Co-authored-by: Rafael Mosca <[email protected]>
1 parent 51c3bf1 commit 48daf18

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+3646
-188
lines changed

.gitignore

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.npmignore

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projen/deps.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projen/tasks.json

+69
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import {
3030
const GITHUB_USER = 'awslabs';
3131
const PUBLICATION_NAMESPACE = 'cdklabs';
3232
const PROJECT_NAME = 'generative-ai-cdk-constructs';
33-
const CDK_VERSION: string = '2.162.1';
33+
const CDK_VERSION: string = '2.166.0';
3434

3535
function camelCaseIt(input: string): string {
3636
// Hypens and dashes to spaces and then CamelCase...

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# CDK Generative AI Constructs V0.1.283 (2024-11-20)
2+
3+
Based on CDK library version 2.166.0
4+
15
# CDK Generative AI Constructs V0.1.273 (2024-10-15)
26

37
Based on CDK library version 2.162.1

DEVELOPER_GUIDE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Default output format [None]: json
1616
```
1717

1818
- [Node](https://nodejs.org/en) >= v20.9.0
19-
- [AWS CDK](https://github.com/aws/aws-cdk/releases/tag/v2.162.1) >= 2.162.1
19+
- [AWS CDK](https://github.com/aws/aws-cdk/releases/tag/v2.166.0) >= 2.166.0
2020
- [Python](https://www.python.org/downloads/) >=3.9
2121
- [Projen](https://github.com/projen/projen) >= 0.78.8
2222
- [Yarn](https://classic.yarnpkg.com/lang/en/docs/cli/install/) >= 1.22.19

apidocs/interfaces/DockerLambdaCustomProps.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ stable
594594
> `readonly` `optional` **recursiveLoop**: `RecursiveLoop`
595595
596596
Sets the Recursive Loop Protection for Lambda Function.
597-
It lets Lambda detect and terminate unintended recusrive loops.
597+
It lets Lambda detect and terminate unintended recursive loops.
598598

599599
#### Default
600600

apidocs/namespaces/bedrock/README.md

+10
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@
2020
- [ContentFilterType](enumerations/ContentFilterType.md)
2121
- [ContextualGroundingFilterType](enumerations/ContextualGroundingFilterType.md)
2222
- [CrawlingScope](enumerations/CrawlingScope.md)
23+
- [CrossRegionInferenceProfileRegion](enumerations/CrossRegionInferenceProfileRegion.md)
2324
- [DataDeletionPolicy](enumerations/DataDeletionPolicy.md)
2425
- [DataSourceType](enumerations/DataSourceType.md)
2526
- [GuardrailAction](enumerations/GuardrailAction.md)
27+
- [InferenceProfileType](enumerations/InferenceProfileType.md)
2628
- [ManagedWordFilterType](enumerations/ManagedWordFilterType.md)
2729
- [ParserMode](enumerations/ParserMode.md)
2830
- [PromptCreationMode](enumerations/PromptCreationMode.md)
@@ -41,15 +43,18 @@
4143
- [AgentActionGroup](classes/AgentActionGroup.md)
4244
- [AgentAlias](classes/AgentAlias.md)
4345
- [ApiSchema](classes/ApiSchema.md)
46+
- [ApplicationInferenceProfile](classes/ApplicationInferenceProfile.md)
4447
- [BedrockFoundationModel](classes/BedrockFoundationModel.md)
4548
- [ChunkingStrategy](classes/ChunkingStrategy.md)
4649
- [ConfluenceDataSource](classes/ConfluenceDataSource.md)
50+
- [CrossRegionInferenceProfile](classes/CrossRegionInferenceProfile.md)
4751
- [CustomTransformation](classes/CustomTransformation.md)
4852
- [DataSource](classes/DataSource.md)
4953
- [DataSourceBase](classes/DataSourceBase.md)
5054
- [DataSourceNew](classes/DataSourceNew.md)
5155
- [Guardrail](classes/Guardrail.md)
5256
- [GuardrailBase](classes/GuardrailBase.md)
57+
- [InferenceProfileBase](classes/InferenceProfileBase.md)
5358
- [InlineApiSchema](classes/InlineApiSchema.md)
5459
- [KnowledgeBase](classes/KnowledgeBase.md)
5560
- [ParsingStategy](classes/ParsingStategy.md)
@@ -72,6 +77,8 @@
7277
- [AgentAliasProps](interfaces/AgentAliasProps.md)
7378
- [AgentProps](interfaces/AgentProps.md)
7479
- [ApiSchemaConfig](interfaces/ApiSchemaConfig.md)
80+
- [ApplicationInferenceProfileAttributes](interfaces/ApplicationInferenceProfileAttributes.md)
81+
- [ApplicationInferenceProfileProps](interfaces/ApplicationInferenceProfileProps.md)
7582
- [BedrockFoundationModelProps](interfaces/BedrockFoundationModelProps.md)
7683
- [CommonPromptVariantProps](interfaces/CommonPromptVariantProps.md)
7784
- [ConfluenceCrawlingFilters](interfaces/ConfluenceCrawlingFilters.md)
@@ -80,6 +87,7 @@
8087
- [ContentFilter](interfaces/ContentFilter.md)
8188
- [ContextualGroundingFilter](interfaces/ContextualGroundingFilter.md)
8289
- [CrawlingFilters](interfaces/CrawlingFilters.md)
90+
- [CrossRegionInferenceProfileProps](interfaces/CrossRegionInferenceProfileProps.md)
8391
- [CustomTopicProps](interfaces/CustomTopicProps.md)
8492
- [DataSourceAssociationProps](interfaces/DataSourceAssociationProps.md)
8593
- [FoundationModelParsingStategyProps](interfaces/FoundationModelParsingStategyProps.md)
@@ -90,6 +98,8 @@
9098
- [IAgentAlias](interfaces/IAgentAlias.md)
9199
- [IDataSource](interfaces/IDataSource.md)
92100
- [IGuardrail](interfaces/IGuardrail.md)
101+
- [IInferenceProfile](interfaces/IInferenceProfile.md)
102+
- [IInvokable](interfaces/IInvokable.md)
93103
- [IKnowledgeBase](interfaces/IKnowledgeBase.md)
94104
- [InferenceConfiguration](interfaces/InferenceConfiguration.md)
95105
- [IPrompt](interfaces/IPrompt.md)

apidocs/namespaces/bedrock/classes/Agent.md

+8
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@ The name for the agent alias.
9292

9393
***
9494

95+
### foundationModel
96+
97+
> `readonly` **foundationModel**: [`IInvokable`](../interfaces/IInvokable.md)
98+
99+
The model used by the agent.
100+
101+
***
102+
95103
### knowledgeBases
96104

97105
> **knowledgeBases**: `AgentKnowledgeBaseProperty`[] = `[]`

0 commit comments

Comments
 (0)