Skip to content

Commit

Permalink
chore(bedrock): prompt management minor update (#774)
Browse files Browse the repository at this point in the history
* fix(bedrock): add Claude 3.5 v2 and remove old file

* chore(build): fix self mutation

* fix(bedrock): minor restructure on Prompt Management needed for Prompt Flows impl

---------

Co-authored-by: Alain Krok <[email protected]>
  • Loading branch information
aws-rafams and krokoko authored Nov 5, 2024
1 parent 04e0f92 commit 4ee2eeb
Show file tree
Hide file tree
Showing 12 changed files with 755 additions and 82 deletions.
2 changes: 2 additions & 0 deletions apidocs/namespaces/bedrock/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
- [KnowledgeBase](classes/KnowledgeBase.md)
- [ParsingStategy](classes/ParsingStategy.md)
- [Prompt](classes/Prompt.md)
- [PromptBase](classes/PromptBase.md)
- [PromptVariant](classes/PromptVariant.md)
- [PromptVersion](classes/PromptVersion.md)
- [S3ApiSchema](classes/S3ApiSchema.md)
Expand Down Expand Up @@ -96,6 +97,7 @@
- [KnowledgeBaseProps](interfaces/KnowledgeBaseProps.md)
- [LambdaCustomTransformationProps](interfaces/LambdaCustomTransformationProps.md)
- [PIIFilter](interfaces/PIIFilter.md)
- [PromptAttributes](interfaces/PromptAttributes.md)
- [PromptConfiguration](interfaces/PromptConfiguration.md)
- [PromptOverrideConfiguration](interfaces/PromptOverrideConfiguration.md)
- [PromptProps](interfaces/PromptProps.md)
Expand Down
44 changes: 37 additions & 7 deletions apidocs/namespaces/bedrock/classes/Prompt.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,26 @@ https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management.html

## Properties

### encryptionKey?
### \_hash

> `readonly` `optional` **encryptionKey**: `IKey`
> `protected` `readonly` **\_hash**: `string`
**`Internal`**

The computed hash of the prompt properties.

***

### kmsKey?

> `readonly` `optional` **kmsKey**: `IKey`
The KMS key that the prompt is encrypted with.

#### Implementation of

[`IPrompt`](../interfaces/IPrompt.md).[`kmsKey`](../interfaces/IPrompt.md#kmskey)

***

### node
Expand Down Expand Up @@ -114,6 +128,18 @@ The name of the prompt.

***

### promptVersion

> **promptVersion**: `string`
The version of the prompt.

#### Implementation of

[`IPrompt`](../interfaces/IPrompt.md).[`promptVersion`](../interfaces/IPrompt.md#promptversion)

***

### variants

> `readonly` **variants**: [`PromptVariant`](PromptVariant.md)[]
Expand All @@ -140,7 +166,7 @@ Adds a prompt variant.

### createVersion()

> **createVersion**(`description`?): `void`
> **createVersion**(`description`?): `string`
Creates a prompt version, a static snapshot of your prompt that can be
deployed to production.
Expand All @@ -151,7 +177,7 @@ deployed to production.

#### Returns

`void`
`string`

***

Expand All @@ -171,13 +197,17 @@ Returns a string representation of this construct.

***

### fromPromptArn()
### fromPromptAttributes()

> `static` **fromPromptArn**(`promptArn`): [`IPrompt`](../interfaces/IPrompt.md)
> `static` **fromPromptAttributes**(`scope`, `id`, `attrs`): [`IPrompt`](../interfaces/IPrompt.md)
#### Parameters

**promptArn**: `string`
**scope**: `Construct`

**id**: `string`

**attrs**: [`PromptAttributes`](../interfaces/PromptAttributes.md)

#### Returns

Expand Down
Loading

0 comments on commit 4ee2eeb

Please sign in to comment.