mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-23 22:14:18 +02:00
filled_arguments → arguments
This commit is contained in:
parent
52700a4e22
commit
a8052bba0c
1 changed files with 4 additions and 4 deletions
|
|
@ -273,16 +273,16 @@ class TransformedTool(Tool):
|
|||
|
||||
# Fill in missing arguments with schema defaults to ensure
|
||||
# ArgTransform defaults take precedence over function defaults
|
||||
filled_arguments = arguments.copy()
|
||||
arguments = arguments.copy()
|
||||
properties = self.parameters.get("properties", {})
|
||||
|
||||
for param_name, param_schema in properties.items():
|
||||
if param_name not in filled_arguments and "default" in param_schema:
|
||||
filled_arguments[param_name] = param_schema["default"]
|
||||
if param_name not in arguments and "default" in param_schema:
|
||||
arguments[param_name] = param_schema["default"]
|
||||
|
||||
token = _current_tool.set(self)
|
||||
try:
|
||||
result = await self.fn(**filled_arguments)
|
||||
result = await self.fn(**arguments)
|
||||
return _convert_to_content(result, serializer=self.serializer)
|
||||
finally:
|
||||
_current_tool.reset(token)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue