Skip to content

[FEATURE] Release tool and model hooks as non-experimental #667

@zastrowm

Description

@zastrowm

Problem Statement

As a follow-up to #231: we implemented hooks, but kept some as experimental; we need to formally release them.

In doing so:

  • If possible, preserve experimental aliases to the non-experimental version
  • Rename the model events to reduce verbosity:
    • BeforeToolInvocationEvent -> BeforeToolCallEvent
    • AfterToolInvocationEvent -> AfterToolCallEvent
    • BeforeModelInvocationEvent -> BeforeModelCallEvent
    • AfterModelInvocationEvent -> AfterModelCallEvent

I have a prototype of this at https://github.com/zastrowm/sdk-python/tree/mark_hooks_as_non_production

I haven't shipped it yet because I wanted to first prototype implementing retries as a hook, which might change the signature of AfterModelCallEvent

Proposed Solution

No response

Use Case

I want to be able to use Model and Tool hooks and know that they won't change release to release.

Alternatives Solutions

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions