@cdklabs/generative-ai-cdk-constructs
@cdklabs/generative-ai-cdk-constructs / bedrock / ActionGroupExecutor
Defines how fulfillment of the action group is handled after the necessary information has been elicited from the user. Valid executors are:
https://docs.aws.amazon.com/bedrock/latest/userguide/action-handle.html
readonly
optional
customControl:string
readonly
optional
lambdaFunction:IFunction
readonly
static
RETURN_CONTROL:ActionGroupExecutor
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.
https://docs.aws.amazon.com/bedrock/latest/userguide/agents-returncontrol.html
_render():
ActionGroupExecutorProperty
Internal
Format as CFN properties
This is an internal core function and should not be called directly.
ActionGroupExecutorProperty
static
fromlambdaFunction(lambdaFunction
):ActionGroupExecutor
Defines an action group with a Lambda function containing the business logic.
IFunction
Lambda function to be called by the action group.
https://docs.aws.amazon.com/bedrock/latest/userguide/agents-lambda.html