-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(agent): add support for collab, orch and FM in prompt
- Loading branch information
Showing
22 changed files
with
834 additions
and
7 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
52 changes: 52 additions & 0 deletions
52
apidocs/namespaces/bedrock/classes/OrchestrationExecutor.md
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,52 @@ | ||
[**@cdklabs/generative-ai-cdk-constructs**](../../../README.md) | ||
|
||
*** | ||
|
||
[@cdklabs/generative-ai-cdk-constructs](../../../README.md) / [bedrock](../README.md) / OrchestrationExecutor | ||
|
||
# Class: OrchestrationExecutor | ||
|
||
Contains details about the Lambda function containing the orchestration logic carried | ||
out upon invoking the custom orchestration. | ||
|
||
## Properties | ||
|
||
### lambdaFunction | ||
|
||
> `readonly` **lambdaFunction**: `IFunction` | ||
## Methods | ||
|
||
### \_render() | ||
|
||
> **\_render**(): `OrchestrationExecutorProperty` | ||
**`Internal`** | ||
|
||
Format as CFN properties | ||
|
||
This is an internal core function and should not be called directly. | ||
|
||
#### Returns | ||
|
||
`OrchestrationExecutorProperty` | ||
|
||
*** | ||
|
||
### fromlambdaFunction() | ||
|
||
> `static` **fromlambdaFunction**(`lambdaFunction`): [`OrchestrationExecutor`](OrchestrationExecutor.md) | ||
Defines an orchestration executor with a Lambda function containing the business logic. | ||
|
||
#### Parameters | ||
|
||
##### lambdaFunction | ||
|
||
`IFunction` | ||
|
||
Lambda function to be called by the orchestration. | ||
|
||
#### Returns | ||
|
||
[`OrchestrationExecutor`](OrchestrationExecutor.md) |
33 changes: 33 additions & 0 deletions
33
apidocs/namespaces/bedrock/enumerations/AgentCollaboratorType.md
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,33 @@ | ||
[**@cdklabs/generative-ai-cdk-constructs**](../../../README.md) | ||
|
||
*** | ||
|
||
[@cdklabs/generative-ai-cdk-constructs](../../../README.md) / [bedrock](../README.md) / AgentCollaboratorType | ||
|
||
# Enumeration: AgentCollaboratorType | ||
|
||
Enum for collaborator's relay conversation history types. | ||
|
||
## Enumeration Members | ||
|
||
### DISABLED | ||
|
||
> **DISABLED**: `"DISABLED"` | ||
Disabling collaboration. | ||
|
||
*** | ||
|
||
### SUPERVISOR | ||
|
||
> **SUPERVISOR**: `"SUPERVISOR"` | ||
Supervisor agent. | ||
|
||
*** | ||
|
||
### SUPERVISOR\_ROUTER | ||
|
||
> **SUPERVISOR\_ROUTER**: `"SUPERVISOR_ROUTER"` | ||
supervisor router. |
25 changes: 25 additions & 0 deletions
25
apidocs/namespaces/bedrock/enumerations/OrchestrationType.md
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,25 @@ | ||
[**@cdklabs/generative-ai-cdk-constructs**](../../../README.md) | ||
|
||
*** | ||
|
||
[@cdklabs/generative-ai-cdk-constructs](../../../README.md) / [bedrock](../README.md) / OrchestrationType | ||
|
||
# Enumeration: OrchestrationType | ||
|
||
Enum for orchestration types available for agents. | ||
|
||
## Enumeration Members | ||
|
||
### CUSTOM | ||
|
||
> **CUSTOM**: `"CUSTOM"` | ||
Custom orchestration using Lambda. | ||
|
||
*** | ||
|
||
### STANDARD | ||
|
||
> **STANDARD**: `"STANDARD"` | ||
Default orchestration by the agent. |
25 changes: 25 additions & 0 deletions
25
apidocs/namespaces/bedrock/enumerations/RelayConversationHistoryType.md
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,25 @@ | ||
[**@cdklabs/generative-ai-cdk-constructs**](../../../README.md) | ||
|
||
*** | ||
|
||
[@cdklabs/generative-ai-cdk-constructs](../../../README.md) / [bedrock](../README.md) / RelayConversationHistoryType | ||
|
||
# Enumeration: RelayConversationHistoryType | ||
|
||
Enum for collaborator's relay conversation history types. | ||
|
||
## Enumeration Members | ||
|
||
### DISABLED | ||
|
||
> **DISABLED**: `"DISABLED"` | ||
Disabling relay of conversation history to the collaborator. | ||
|
||
*** | ||
|
||
### TO\_COLLABORATOR | ||
|
||
> **TO\_COLLABORATOR**: `"TO_COLLABORATOR"` | ||
Sending to the collaborator. |
47 changes: 47 additions & 0 deletions
47
apidocs/namespaces/bedrock/interfaces/AgentCollaborator.md
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,47 @@ | ||
[**@cdklabs/generative-ai-cdk-constructs**](../../../README.md) | ||
|
||
*** | ||
|
||
[@cdklabs/generative-ai-cdk-constructs](../../../README.md) / [bedrock](../README.md) / AgentCollaborator | ||
|
||
# Interface: AgentCollaborator | ||
|
||
Settings for agent collaboration with other agents. | ||
|
||
## Properties | ||
|
||
### agentDescriptor | ||
|
||
> `readonly` **agentDescriptor**: [`AgentDescriptor`](AgentDescriptor.md) | ||
Descriptor for the collaborating agent. | ||
|
||
*** | ||
|
||
### collaborationInstruction | ||
|
||
> `readonly` **collaborationInstruction**: `string` | ||
Instructions on how this agent should collaborate with the main agent. | ||
|
||
*** | ||
|
||
### collaboratorName | ||
|
||
> `readonly` **collaboratorName**: `string` | ||
A friendly name for the collaborator. | ||
|
||
*** | ||
|
||
### relayConversationHistory? | ||
|
||
> `readonly` `optional` **relayConversationHistory**: [`RelayConversationHistoryType`](../enumerations/RelayConversationHistoryType.md) | ||
Whether to relay conversation history to this collaborator. | ||
|
||
#### Default | ||
|
||
```ts | ||
- undefined (uses service default) | ||
``` |
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,17 @@ | ||
[**@cdklabs/generative-ai-cdk-constructs**](../../../README.md) | ||
|
||
*** | ||
|
||
[@cdklabs/generative-ai-cdk-constructs](../../../README.md) / [bedrock](../README.md) / AgentDescriptor | ||
|
||
# Interface: AgentDescriptor | ||
|
||
An agent descriptor. | ||
|
||
## Properties | ||
|
||
### aliasArn | ||
|
||
> `readonly` **aliasArn**: `string` | ||
The ARN of the alias for the collaborating agent. |
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
17 changes: 17 additions & 0 deletions
17
apidocs/namespaces/bedrock/interfaces/CustomOrchestration.md
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,17 @@ | ||
[**@cdklabs/generative-ai-cdk-constructs**](../../../README.md) | ||
|
||
*** | ||
|
||
[@cdklabs/generative-ai-cdk-constructs](../../../README.md) / [bedrock](../README.md) / CustomOrchestration | ||
|
||
# Interface: CustomOrchestration | ||
|
||
Configuration for custom orchestration of the agent. | ||
|
||
## Properties | ||
|
||
### executor | ||
|
||
> `readonly` **executor**: [`OrchestrationExecutor`](../classes/OrchestrationExecutor.md) | ||
The Lambda function to use for custom orchestration. |
Oops, something went wrong.