Skip to content

[FEATURE] Hooks - Events - BeforeToolsEvent and AfterToolsEvent #1536

@pgrayy

Description

@pgrayy

Problem Statement

I would like the Python SDK to support a BeforeToolsEvent and AfterToolsEvent for parity with the TypeScript SDK (docs).

  • BeforeToolsEvent: Triggered before tools are executed in a batch.
  • AfterToolsEvent: Triggered after tools are executed in a batch. Uses reverse callback ordering.

Proposed Solution

No response

Use Case

An example use case would be for requesting approval on a batch of tool calls through the interrupt mechanism.

Alternatives Solutions

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-hooksFeatures or requests that might be implementable via hooksenhancementNew feature or requestready for contributionPull requests welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions