-
Notifications
You must be signed in to change notification settings - Fork 3.4k
wrapped tools using annotations fail #1391
Copy link
Copy link
Open
Labels
P2Moderate issues affecting some users, edge cases, potentially valuable featureModerate issues affecting some users, edge cases, potentially valuable featurebugSomething isn't workingSomething isn't workingready for workEnough information for someone to start working onEnough information for someone to start working on
Metadata
Metadata
Assignees
Labels
P2Moderate issues affecting some users, edge cases, potentially valuable featureModerate issues affecting some users, edge cases, potentially valuable featurebugSomething isn't workingSomething isn't workingready for workEnough information for someone to start working onEnough information for someone to start working on
Initial Checks
Description
If you try to use a tool a which is wrapped and uses
from __future__ import annotationssetup fails with andInvalidSignatureexception e.g.The cause of this is that the global name space used for the lookup is the wrapper namespace and not the original function namespace.
Example Code
Python & MCP Python SDK