Class CfnHarnessPropsMixin.HarnessHookProperty
A lifecycle hook configured for one phase of the agent loop.
Implements
Inherited Members
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.BedrockAgentCore
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnHarnessPropsMixin.HarnessHookProperty : CfnHarnessPropsMixin.IHarnessHookProperty
Syntax (vb)
Public Class CfnHarnessPropsMixin.HarnessHookProperty Implements CfnHarnessPropsMixin.IHarnessHookProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.BedrockAgentCore;
var harnessHookProperty = new HarnessHookProperty {
AfterInvocation = new HarnessAfterInvocationHookProperty {
Name = "name",
Target = new HarnessHookTargetProperty {
EventBridge = new HarnessHookEventBridgeTargetProperty {
Arn = "arn"
},
Lambda = new HarnessHookLambdaTargetProperty {
Arn = "arn",
FailureMode = "failureMode",
TimeoutSeconds = 123
},
Sns = new HarnessHookSnsTargetProperty {
Arn = "arn"
}
}
},
AfterToolCall = new HarnessAfterToolCallHookProperty {
Name = "name",
Target = new HarnessHookTargetProperty {
EventBridge = new HarnessHookEventBridgeTargetProperty {
Arn = "arn"
},
Lambda = new HarnessHookLambdaTargetProperty {
Arn = "arn",
FailureMode = "failureMode",
TimeoutSeconds = 123
},
Sns = new HarnessHookSnsTargetProperty {
Arn = "arn"
}
}
},
BeforeInvocation = new HarnessBeforeInvocationHookProperty {
Name = "name",
Target = new HarnessHookTargetProperty {
EventBridge = new HarnessHookEventBridgeTargetProperty {
Arn = "arn"
},
Lambda = new HarnessHookLambdaTargetProperty {
Arn = "arn",
FailureMode = "failureMode",
TimeoutSeconds = 123
},
Sns = new HarnessHookSnsTargetProperty {
Arn = "arn"
}
}
},
BeforeToolCall = new HarnessBeforeToolCallHookProperty {
Name = "name",
Target = new HarnessHookTargetProperty {
EventBridge = new HarnessHookEventBridgeTargetProperty {
Arn = "arn"
},
Lambda = new HarnessHookLambdaTargetProperty {
Arn = "arn",
FailureMode = "failureMode",
TimeoutSeconds = 123
},
Sns = new HarnessHookSnsTargetProperty {
Arn = "arn"
}
}
}
};
Synopsis
Constructors
| HarnessHookProperty() | A lifecycle hook configured for one phase of the agent loop. |
Properties
| AfterInvocation | A hook that runs after an agent invocation. |
| AfterToolCall | A hook that runs after each tool call. |
| BeforeInvocation | A hook that runs before an agent invocation. |
| BeforeToolCall | A hook that runs before each tool call. |
Constructors
HarnessHookProperty()
A lifecycle hook configured for one phase of the agent loop.
public HarnessHookProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.BedrockAgentCore;
var harnessHookProperty = new HarnessHookProperty {
AfterInvocation = new HarnessAfterInvocationHookProperty {
Name = "name",
Target = new HarnessHookTargetProperty {
EventBridge = new HarnessHookEventBridgeTargetProperty {
Arn = "arn"
},
Lambda = new HarnessHookLambdaTargetProperty {
Arn = "arn",
FailureMode = "failureMode",
TimeoutSeconds = 123
},
Sns = new HarnessHookSnsTargetProperty {
Arn = "arn"
}
}
},
AfterToolCall = new HarnessAfterToolCallHookProperty {
Name = "name",
Target = new HarnessHookTargetProperty {
EventBridge = new HarnessHookEventBridgeTargetProperty {
Arn = "arn"
},
Lambda = new HarnessHookLambdaTargetProperty {
Arn = "arn",
FailureMode = "failureMode",
TimeoutSeconds = 123
},
Sns = new HarnessHookSnsTargetProperty {
Arn = "arn"
}
}
},
BeforeInvocation = new HarnessBeforeInvocationHookProperty {
Name = "name",
Target = new HarnessHookTargetProperty {
EventBridge = new HarnessHookEventBridgeTargetProperty {
Arn = "arn"
},
Lambda = new HarnessHookLambdaTargetProperty {
Arn = "arn",
FailureMode = "failureMode",
TimeoutSeconds = 123
},
Sns = new HarnessHookSnsTargetProperty {
Arn = "arn"
}
}
},
BeforeToolCall = new HarnessBeforeToolCallHookProperty {
Name = "name",
Target = new HarnessHookTargetProperty {
EventBridge = new HarnessHookEventBridgeTargetProperty {
Arn = "arn"
},
Lambda = new HarnessHookLambdaTargetProperty {
Arn = "arn",
FailureMode = "failureMode",
TimeoutSeconds = 123
},
Sns = new HarnessHookSnsTargetProperty {
Arn = "arn"
}
}
}
};
Properties
AfterInvocation
A hook that runs after an agent invocation.
public object? AfterInvocation { get; set; }
Property Value
Remarks
AfterToolCall
A hook that runs after each tool call.
public object? AfterToolCall { get; set; }
Property Value
Remarks
BeforeInvocation
A hook that runs before an agent invocation.
public object? BeforeInvocation { get; set; }
Property Value
Remarks
BeforeToolCall
A hook that runs before each tool call.
public object? BeforeToolCall { get; set; }