Remove is_async attribute

This commit is contained in:
Jeremiah Lowin 2025-05-04 12:18:28 -04:00
commit c63fcc96ea
3 changed files with 0 additions and 7 deletions

View file

@ -52,7 +52,6 @@ class ProxyTool(Tool):
description=tool.description,
parameters=tool.inputSchema,
fn=_proxy_passthrough,
is_async=True,
)
async def run(

View file

@ -18,7 +18,6 @@ class TestToolFromFunction:
assert tool.name == "add"
assert tool.description == "Add two numbers."
assert tool.is_async is False
assert tool.parameters["properties"]["a"]["type"] == "integer"
assert tool.parameters["properties"]["b"]["type"] == "integer"
@ -33,7 +32,6 @@ class TestToolFromFunction:
assert tool.name == "fetch_data"
assert tool.description == "Fetch data from URL."
assert tool.is_async is True
assert tool.parameters["properties"]["url"]["type"] == "string"
def test_pydantic_model_function(self):
@ -51,7 +49,6 @@ class TestToolFromFunction:
assert tool.name == "create_user"
assert tool.description == "Create a new user."
assert tool.is_async is False
assert "name" in tool.parameters["$defs"]["UserInput"]["properties"]
assert "age" in tool.parameters["$defs"]["UserInput"]["properties"]
assert "flag" in tool.parameters["properties"]

View file

@ -31,7 +31,6 @@ class TestAddTools:
assert tool is not None
assert tool.name == "add"
assert tool.description == "Add two numbers."
assert tool.is_async is False
assert tool.parameters["properties"]["a"]["type"] == "integer"
assert tool.parameters["properties"]["b"]["type"] == "integer"
@ -49,7 +48,6 @@ class TestAddTools:
assert tool is not None
assert tool.name == "fetch_data"
assert tool.description == "Fetch data from URL."
assert tool.is_async is True
assert tool.parameters["properties"]["url"]["type"] == "string"
def test_pydantic_model_function(self):
@ -70,7 +68,6 @@ class TestAddTools:
assert tool is not None
assert tool.name == "create_user"
assert tool.description == "Create a new user."
assert tool.is_async is False
assert "name" in tool.parameters["$defs"]["UserInput"]["properties"]
assert "age" in tool.parameters["$defs"]["UserInput"]["properties"]
assert "flag" in tool.parameters["properties"]