HarnessHook
A lifecycle hook configuration. Specify one hook type.
Contents
Important
This data type is a UNION, so only one of the following members can be specified when used or returned.
- afterInvocation
-
A hook that runs after an invocation completes.
Type: HarnessAfterInvocationHook object
Required: No
- afterToolCall
-
A hook that runs after a tool call completes.
Type: HarnessAfterToolCallHook object
Required: No
- beforeInvocation
-
A hook that runs before an invocation begins.
Type: HarnessBeforeInvocationHook object
Required: No
- beforeToolCall
-
A hook that runs before the agent calls a tool.
Type: HarnessBeforeToolCallHook object
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: