Skip to content

Commit

Permalink
chore(build): fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
krokoko committed Jan 6, 2025
1 parent 5d3d6ad commit bac7f58
Show file tree
Hide file tree
Showing 29 changed files with 791 additions and 15 deletions.
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.289 (2025-01-08)

Based on CDK library version 2.174.0

# CDK Generative AI Constructs V0.1.283 (2024-11-20)

Based on CDK library version 2.166.0
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.166.0) >= 2.166.0
- [AWS CDK](https://github.com/aws/aws-cdk/releases/tag/v2.174.0) >= 2.174.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 @@ -669,7 +669,7 @@ stable
> `readonly` `optional` **snapStart**: `SnapStartConf`
Enable SnapStart for Lambda Function.
SnapStart is currently supported only for Java 11, 17 runtime
SnapStart is currently supported for Java 11, Java 17, Python 3.12, Python 3.13, and .NET 8 runtime

#### Default

Expand Down
6 changes: 6 additions & 0 deletions apidocs/namespaces/bedrock/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

## Enumerations

- [ChatMessageRole](enumerations/ChatMessageRole.md)
- [ConfluenceDataSourceAuthType](enumerations/ConfluenceDataSourceAuthType.md)
- [ConfluenceObjectType](enumerations/ConfluenceObjectType.md)
- [ContentFilterStrength](enumerations/ContentFilterStrength.md)
Expand Down Expand Up @@ -43,6 +44,7 @@
- [ApiSchema](classes/ApiSchema.md)
- [ApplicationInferenceProfile](classes/ApplicationInferenceProfile.md)
- [BedrockFoundationModel](classes/BedrockFoundationModel.md)
- [ChatMessage](classes/ChatMessage.md)
- [ChunkingStrategy](classes/ChunkingStrategy.md)
- [ConfluenceDataSource](classes/ConfluenceDataSource.md)
- [CrossRegionInferenceProfile](classes/CrossRegionInferenceProfile.md)
Expand All @@ -64,6 +66,7 @@
- [S3DataSource](classes/S3DataSource.md)
- [SalesforceDataSource](classes/SalesforceDataSource.md)
- [SharePointDataSource](classes/SharePointDataSource.md)
- [ToolChoice](classes/ToolChoice.md)
- [Topic](classes/Topic.md)
- [WebCrawlerDataSource](classes/WebCrawlerDataSource.md)

Expand All @@ -73,11 +76,13 @@
- [AddAgentAliasProps](interfaces/AddAgentAliasProps.md)
- [AgentActionGroupProps](interfaces/AgentActionGroupProps.md)
- [AgentAliasProps](interfaces/AgentAliasProps.md)
- [AgentPromptVariantProps](interfaces/AgentPromptVariantProps.md)
- [AgentProps](interfaces/AgentProps.md)
- [ApiSchemaConfig](interfaces/ApiSchemaConfig.md)
- [ApplicationInferenceProfileAttributes](interfaces/ApplicationInferenceProfileAttributes.md)
- [ApplicationInferenceProfileProps](interfaces/ApplicationInferenceProfileProps.md)
- [BedrockFoundationModelProps](interfaces/BedrockFoundationModelProps.md)
- [ChatPromptVariantProps](interfaces/ChatPromptVariantProps.md)
- [CommonPromptVariantProps](interfaces/CommonPromptVariantProps.md)
- [ConfluenceCrawlingFilters](interfaces/ConfluenceCrawlingFilters.md)
- [ConfluenceDataSourceAssociationProps](interfaces/ConfluenceDataSourceAssociationProps.md)
Expand Down Expand Up @@ -121,6 +126,7 @@
- [SharePointDataSourceAssociationProps](interfaces/SharePointDataSourceAssociationProps.md)
- [SharePointDataSourceProps](interfaces/SharePointDataSourceProps.md)
- [TextPromptVariantProps](interfaces/TextPromptVariantProps.md)
- [ToolConfiguration](interfaces/ToolConfiguration.md)
- [WebCrawlerDataSourceAssociationProps](interfaces/WebCrawlerDataSourceAssociationProps.md)
- [WebCrawlerDataSourceProps](interfaces/WebCrawlerDataSourceProps.md)

Expand Down
86 changes: 86 additions & 0 deletions apidocs/namespaces/bedrock/classes/ChatMessage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
[**@cdklabs/generative-ai-cdk-constructs**](../../../README.md)

***

[@cdklabs/generative-ai-cdk-constructs](../../../README.md) / [bedrock](../README.md) / ChatMessage

# Class: ChatMessage

## Constructors

### new ChatMessage()

> **new ChatMessage**(`role`, `text`): [`ChatMessage`](ChatMessage.md)
#### Parameters

##### role

[`ChatMessageRole`](../enumerations/ChatMessageRole.md)

##### text

`string`

#### Returns

[`ChatMessage`](ChatMessage.md)

## Properties

### role

> `readonly` **role**: [`ChatMessageRole`](../enumerations/ChatMessageRole.md)
***

### text

> `readonly` **text**: `string`
## Methods

### \_\_render()

> **\_\_render**(): `MessageProperty`
**`Internal`**

Renders as Cfn Property
This is an internal core function and should not be called directly.

#### Returns

`MessageProperty`

***

### assistantMessage()

> `static` **assistantMessage**(`text`): [`ChatMessage`](ChatMessage.md)
#### Parameters

##### text

`string`

#### Returns

[`ChatMessage`](ChatMessage.md)

***

### userMessage()

> `static` **userMessage**(`text`): [`ChatMessage`](ChatMessage.md)
#### Parameters

##### text

`string`

#### Returns

[`ChatMessage`](ChatMessage.md)
49 changes: 48 additions & 1 deletion apidocs/namespaces/bedrock/classes/PromptVariant.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ You can optimize the prompt for specific use cases and models.

## Properties

### genAiResource?

> `abstract` `optional` **genAiResource**: `PromptGenAiResourceProperty`
The template configuration.

***

### inferenceConfiguration?

> `abstract` `optional` **inferenceConfiguration**: `PromptInferenceConfigurationProperty`
Expand Down Expand Up @@ -56,12 +64,51 @@ The template configuration.

### templateType

> `abstract` **templateType**: [`TEXT`](../enumerations/PromptTemplateType.md#text)
> `abstract` **templateType**: [`PromptTemplateType`](../enumerations/PromptTemplateType.md)
The type of prompt template.

## Methods

### agent()

> `static` **agent**(`props`): [`PromptVariant`](PromptVariant.md)
Static method to create an agent prompt template.

#### Parameters

##### props

[`AgentPromptVariantProps`](../interfaces/AgentPromptVariantProps.md)

#### Returns

[`PromptVariant`](PromptVariant.md)

***

### chat()

> `static` **chat**(`props`): [`PromptVariant`](PromptVariant.md)
Static method to create a chat template. Use this template type when
the model supports the Converse API or the AnthropicClaude Messages API.
This allows you to include a System prompt and previous User messages
and Assistant messages for context.

#### Parameters

##### props

[`ChatPromptVariantProps`](../interfaces/ChatPromptVariantProps.md)

#### Returns

[`PromptVariant`](PromptVariant.md)

***

### text()

> `static` **text**(`props`): [`PromptVariant`](PromptVariant.md)
Expand Down
95 changes: 95 additions & 0 deletions apidocs/namespaces/bedrock/classes/ToolChoice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
[**@cdklabs/generative-ai-cdk-constructs**](../../../README.md)

***

[@cdklabs/generative-ai-cdk-constructs](../../../README.md) / [bedrock](../README.md) / ToolChoice

# Class: ToolChoice

## Constructors

### new ToolChoice()

> **new ToolChoice**(`any`, `auto`, `tool`?): [`ToolChoice`](ToolChoice.md)
#### Parameters

##### any

`any`

##### auto

`any`

##### tool?

`string`

#### Returns

[`ToolChoice`](ToolChoice.md)

## Properties

### any?

> `readonly` `optional` **any**: `any`
***

### auto?

> `readonly` `optional` **auto**: `any`
***

### tool?

> `readonly` `optional` **tool**: `string`
***

### ANY

> `readonly` `static` **ANY**: [`ToolChoice`](ToolChoice.md)
The model must request at least one tool (no text is generated)

***

### AUTO

> `readonly` `static` **AUTO**: [`ToolChoice`](ToolChoice.md)
(Default). The Model automatically decides if a tool should be called or whether to generate text instead.

## Methods

### \_\_render()

> **\_\_render**(): `ToolChoiceProperty`
**`Internal`**

#### Returns

`ToolChoiceProperty`

***

### specificTool()

> `static` **specificTool**(`toolName`): [`ToolChoice`](ToolChoice.md)
The Model must request the specified tool. Only supported by some models like Anthropic Claude 3 models.

#### Parameters

##### toolName

`string`

#### Returns

[`ToolChoice`](ToolChoice.md)
25 changes: 25 additions & 0 deletions apidocs/namespaces/bedrock/enumerations/ChatMessageRole.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[**@cdklabs/generative-ai-cdk-constructs**](../../../README.md)

***

[@cdklabs/generative-ai-cdk-constructs](../../../README.md) / [bedrock](../README.md) / ChatMessageRole

# Enumeration: ChatMessageRole

## Enumeration Members

### ASSISTANT

> **ASSISTANT**: `"assistant"`
This is the role of the model itself, responding to user inputs based on
the context set by the system.

***

### USER

> **USER**: `"user"`
This role represents the human user in the conversation. Inputs from the
user guide the conversation and prompt responses from the assistant.
6 changes: 6 additions & 0 deletions apidocs/namespaces/bedrock/enumerations/PromptTemplateType.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

## Enumeration Members

### CHAT

> **CHAT**: `"CHAT"`
***

### TEXT

> **TEXT**: `"TEXT"`
Loading

0 comments on commit bac7f58

Please sign in to comment.