Skip to content

[BUG] User Guide - "Any" from the "typing" module to be added on Strands Agents (Tools/Creating Custom Tools) #1289

@hertaehyun

Description

@hertaehyun

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

Python 3.13.7

Operating System

macOS

Installation Method

pip

Steps to Reproduce

Go to Strands Agents website > User Guide > Tools > Creating Custom Tools

There is a basic example under "Module Based Tools (python only)"

if copy and paste the python code example, you will get the following error :

NameError: name 'Any' is not defined. Did you mean: 'any'?

Expected Behavior

You should not see an error

Actual Behavior

You should not see an error

Additional Context

No response

Possible Solution

"from typing import Any" will need to be added in the code example.

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