View a markdown version of this page

HarnessHook - Amazon Bedrock AgentCore Control Plane
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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 Amazon SDKs, see the following: