class CustomOrchestrationExecutor
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Alpha.CustomOrchestrationExecutor |
Go | github.com/aws/aws-cdk-go/awsbedrockalpha/v2#CustomOrchestrationExecutor |
Java | software.amazon.awscdk.services.bedrock.alpha.CustomOrchestrationExecutor |
Python | aws_cdk.aws_bedrock_alpha.CustomOrchestrationExecutor |
TypeScript (source) | @aws-cdk/aws-bedrock-alpha ยป CustomOrchestrationExecutor |
Contains details about the Lambda function containing the orchestration logic carried out upon invoking the custom orchestration.
Example
const orchestrationFunction = new lambda.Function(this, 'OrchestrationFunction', {
runtime: lambda.Runtime.PYTHON_3_10,
handler: 'index.handler',
code: lambda.Code.fromAsset('lambda/orchestration'),
});
const agent = new bedrock.Agent(this, 'CustomOrchestrationAgent', {
instruction: 'You are a helpful assistant with custom orchestration logic.',
foundationModel: bedrock.BedrockFoundationModel.AMAZON_NOVA_LITE_V1,
customOrchestrationExecutor: bedrock.CustomOrchestrationExecutor.fromLambda(orchestrationFunction),
});
Properties
| Name | Type | Description |
|---|---|---|
| lambda | IFunction | The Lambda function that contains the custom orchestration logic. |
| type | Orchestration | The type of orchestration this executor performs. |
lambdaFunction
Type:
IFunction
The Lambda function that contains the custom orchestration logic.
This function is called when the agent needs to make decisions about action execution.
type
Type:
Orchestration
The type of orchestration this executor performs.
Methods
| Name | Description |
|---|---|
| static from | Defines an orchestration executor with a Lambda function containing the business logic. |
static fromLambda(lambdaFunction)
public static fromLambda(lambdaFunction: IFunction): CustomOrchestrationExecutor
Parameters
- lambdaFunction
IFunctionโ - Lambda function to be called by the orchestration.
Returns
Defines an orchestration executor with a Lambda function containing the business logic.

.NET
Go
Java
Python
TypeScript (