Skip to content

[BUG] DeprecationWarning being emitted when importing strands #1236

@dagardner-nv

Description

@dagardner-nv

Checks

  • I have updated to the lastest minor and patch version of Strands
  • I have checked the documentation and this is not expected behavior
  • I have searched ./issues and there are no duplicates of my issue

Strands Version

1.18.0

Python Version

3.13.2

Operating System

Debian Linux 12.12

Installation Method

pip

Steps to Reproduce

Import strands with warnings enabled

PYTHONWARNINGS=once python -c "import strands"

Expected Behavior

No deprecation warnings

Actual Behavior

.venv/lib/python3.13/site-packages/strands/experimental/hooks/__init__.py:3: DeprecationWarning: These events have been moved to production with updated names. Use BeforeModelCallEvent, AfterModelCallEvent, BeforeToolCallEvent, and AfterToolCallEvent from strands.hooks instead.
  from .events import (

Additional Context

I originally observed this with v1.17

Possible Solution

No response

Related Issues

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions