Skip to content

Commit b4e472c

Browse files
committed
Upgrade mcputil
1 parent ec086ce commit b4e472c

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

coagent/agents/react_agent/util.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import inspect
33
import typing
44

5-
import mcputil
65
from pydantic import Field, create_model
76
from pydantic.fields import FieldInfo
87

@@ -139,11 +138,7 @@ def greet(
139138

140139
# Construct the pydantic mdoel for the _under_fn's function signature parameters.
141140
# 1. Get the function signature.
142-
143-
if isinstance(func, mcputil.Tool):
144-
sig = func.__sig__
145-
else:
146-
sig = inspect.signature(func)
141+
sig = inspect.signature(func)
147142

148143
# 2. Create a dictionary of field definitions for the Pydantic model
149144
fields = {}

poetry.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ litellm = "1.60.4"
3838
mcp = ">=1.19.0"
3939
jinja2 = "3.1.5"
4040
aiorwlock = ">=1.5.0"
41-
mcputil = "0.1.0"
41+
mcputil = "0.2.0"
4242

4343
# A list of optional dependencies, which are included in the
4444
# below `extras`.

0 commit comments

Comments
 (0)