interface HarnessHookProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.BedrockAgentCore.CfnHarnessPropsMixin.HarnessHookProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsbedrockagentcore#CfnHarnessPropsMixin_HarnessHookProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.bedrockagentcore.CfnHarnessPropsMixin.HarnessHookProperty |
Python | aws_cdk.cfn_property_mixins.aws_bedrockagentcore.CfnHarnessPropsMixin.HarnessHookProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_bedrockagentcore » CfnHarnessPropsMixin » HarnessHookProperty |
A lifecycle hook configured for one phase of the agent loop.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from '@aws-cdk/cfn-property-mixins';
const harnessHookProperty: bedrockagentcore.CfnHarnessPropsMixin.HarnessHookProperty = {
afterInvocation: {
name: 'name',
target: {
eventBridge: {
arn: 'arn',
},
lambda: {
arn: 'arn',
failureMode: 'failureMode',
timeoutSeconds: 123,
},
sns: {
arn: 'arn',
},
},
},
afterToolCall: {
name: 'name',
target: {
eventBridge: {
arn: 'arn',
},
lambda: {
arn: 'arn',
failureMode: 'failureMode',
timeoutSeconds: 123,
},
sns: {
arn: 'arn',
},
},
},
beforeInvocation: {
name: 'name',
target: {
eventBridge: {
arn: 'arn',
},
lambda: {
arn: 'arn',
failureMode: 'failureMode',
timeoutSeconds: 123,
},
sns: {
arn: 'arn',
},
},
},
beforeToolCall: {
name: 'name',
target: {
eventBridge: {
arn: 'arn',
},
lambda: {
arn: 'arn',
failureMode: 'failureMode',
timeoutSeconds: 123,
},
sns: {
arn: 'arn',
},
},
},
};
Properties
| Name | Type | Description |
|---|---|---|
| after | IResolvable | Harness | A hook that runs after an agent invocation. |
| after | IResolvable | Harness | A hook that runs after each tool call. |
| before | IResolvable | Harness | A hook that runs before an agent invocation. |
| before | IResolvable | Harness | A hook that runs before each tool call. |
afterInvocation?
Type:
IResolvable | Harness
(optional)
A hook that runs after an agent invocation.
afterToolCall?
Type:
IResolvable | Harness
(optional)
A hook that runs after each tool call.
beforeInvocation?
Type:
IResolvable | Harness
(optional)
A hook that runs before an agent invocation.
beforeToolCall?
Type:
IResolvable | Harness
(optional)
A hook that runs before each tool call.

.NET
Go
Java
Python
TypeScript