langchain.js
    Preparing search index...

    Type Alias AfterAgentHook<TSchema, TContext>

    AfterAgentHook:
        | AfterAgentHandler<NormalizedSchemaInput<TSchema>, TContext>
        | {
            canJumpTo?: JumpToTarget[];
            hook: AfterAgentHandler<NormalizedSchemaInput<TSchema>, TContext>;
        }

    Hook type for the afterAgent lifecycle event. Can be either a handler function or an object with a handler and optional jump targets. This hook is called once at the end of the agent invocation.

    Type Parameters

    • TSchema extends BaseMessage | undefined = undefined
    • TContext = unknown