Skip to content

Bedrock AgentCore Control  >  Unions  >  HarnessHook

HarnessHook

Union Type

HarnessHook module-attribute

A lifecycle hook configuration. Specify one hook type.

Union Member Types

HarnessHookBeforeInvocation dataclass

A hook that runs before an invocation begins.

Attributes

value instance-attribute

HarnessHookAfterInvocation dataclass

A hook that runs after an invocation completes.

Attributes

value instance-attribute

HarnessHookBeforeToolCall dataclass

A hook that runs before the agent calls a tool.

Attributes

value instance-attribute

HarnessHookAfterToolCall dataclass

A hook that runs after a tool call completes.

Attributes

value instance-attribute

HarnessHookUnknown dataclass

Represents an unknown variant.

If you receive this value, you will need to update your library to receive the parsed value.

This value may not be deliberately sent.

Attributes

tag instance-attribute
tag: str