Skip to content

HarnessHookDict

Union Type

HarnessHookDict module-attribute

Dictionary form of HarnessHook, setting exactly one variant.

Union Member Types

HarnessHookBeforeInvocationDict

Bases: TypedDict

Attributes

before_invocation instance-attribute

A hook that runs before an invocation begins.

HarnessHookAfterInvocationDict

Bases: TypedDict

Attributes

after_invocation instance-attribute

A hook that runs after an invocation completes.

HarnessHookBeforeToolCallDict

Bases: TypedDict

Attributes

before_tool_call instance-attribute

A hook that runs before the agent calls a tool.

HarnessHookAfterToolCallDict

Bases: TypedDict

Attributes

after_tool_call instance-attribute

A hook that runs after a tool call completes.