-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(bedrock): agent refactoring (#833)
* refactor(bedrock): agents refactoring --------- Signed-off-by: Alain Krok <[email protected]> Co-authored-by: Alain Krok <[email protected]>
- Loading branch information
1 parent
53fb37b
commit 87617a4
Showing
81 changed files
with
6,979 additions
and
3,318 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,82 @@ | ||
[**@cdklabs/generative-ai-cdk-constructs**](../../../README.md) | ||
|
||
*** | ||
|
||
[@cdklabs/generative-ai-cdk-constructs](../../../README.md) / [bedrock](../README.md) / ActionGroupExecutor | ||
|
||
# Class: ActionGroupExecutor | ||
|
||
Defines how fulfillment of the action group is handled after the necessary | ||
information has been elicited from the user. | ||
Valid executors are: | ||
- Lambda function | ||
- Return Control | ||
|
||
## See | ||
|
||
https://docs.aws.amazon.com/bedrock/latest/userguide/action-handle.html | ||
|
||
## Properties | ||
|
||
### customControl? | ||
|
||
> `readonly` `optional` **customControl**: `string` | ||
*** | ||
|
||
### lambdaFunction? | ||
|
||
> `readonly` `optional` **lambdaFunction**: `IFunction` | ||
*** | ||
|
||
### RETURN\_CONTROL | ||
|
||
> `readonly` `static` **RETURN\_CONTROL**: [`ActionGroupExecutor`](ActionGroupExecutor.md) | ||
Returns the action group invocation results directly in the InvokeAgent response. | ||
The information and parameters can be sent to your own systems to yield results. | ||
|
||
#### See | ||
|
||
https://docs.aws.amazon.com/bedrock/latest/userguide/agents-returncontrol.html | ||
|
||
## Methods | ||
|
||
### \_render() | ||
|
||
> **\_render**(): `ActionGroupExecutorProperty` | ||
**`Internal`** | ||
|
||
Format as CFN properties | ||
|
||
This is an internal core function and should not be called directly. | ||
|
||
#### Returns | ||
|
||
`ActionGroupExecutorProperty` | ||
|
||
*** | ||
|
||
### fromlambdaFunction() | ||
|
||
> `static` **fromlambdaFunction**(`lambdaFunction`): [`ActionGroupExecutor`](ActionGroupExecutor.md) | ||
Defines an action group with a Lambda function containing the business logic. | ||
|
||
#### Parameters | ||
|
||
##### lambdaFunction | ||
|
||
`IFunction` | ||
|
||
Lambda function to be called by the action group. | ||
|
||
#### Returns | ||
|
||
[`ActionGroupExecutor`](ActionGroupExecutor.md) | ||
|
||
#### See | ||
|
||
https://docs.aws.amazon.com/bedrock/latest/userguide/agents-lambda.html |
Oops, something went wrong.