@@ -152,7 +152,7 @@ def register_tool(
152152 name_override = name_override ,
153153 description_override = description_override ,
154154 requires_confirmation = requires_confirmation ,
155- metadata = metadata or {},
155+ meta = metadata or {},
156156 )
157157 case _ as unreachable :
158158 assert_never (unreachable ) # ty:ignore[type-assertion-failure]
@@ -209,7 +209,6 @@ def tool(
209209 enabled : bool = True ,
210210 requires_confirmation : bool = False ,
211211 metadata : dict [str , str ] | None = None ,
212- ** kwargs : Any ,
213212 ) -> Callable [[Callable [..., Any ]], Callable [..., Any ]]: ...
214213
215214 def tool (
@@ -221,7 +220,6 @@ def tool(
221220 enabled : bool = True ,
222221 requires_confirmation : bool = False ,
223222 metadata : dict [str , str ] | None = None ,
224- ** kwargs : Any ,
225223 ) -> Callable [..., Any ] | Callable [[Callable [..., Any ]], Callable [..., Any ]]:
226224 """Decorator to register a function as a tool.
227225
@@ -246,7 +244,6 @@ def another_function(y: str) -> str:
246244 enabled: Whether tool is initially enabled
247245 requires_confirmation: Whether execution needs confirmation
248246 metadata: Additional tool metadata
249- **kwargs: Additional arguments passed to Tool.from_callable
250247 """
251248 from agentpool .tools .base import FunctionTool
252249
@@ -257,8 +254,7 @@ def decorator(f: Callable[..., Any]) -> Callable[..., Any]:
257254 description_override = description ,
258255 enabled = enabled ,
259256 requires_confirmation = requires_confirmation ,
260- metadata = metadata or {},
261- ** kwargs ,
257+ meta = metadata or {},
262258 )
263259 self .add_tool (tool )
264260 return f
0 commit comments