mirror of
https://github.com/Xe138/AI-Trader.git
synced 2026-04-01 17:17:24 -04:00
fix: use 'args' instead of 'arguments' in MCPToolCallRequest
MCPToolCallRequest has 'args' attribute, not 'arguments'. Fixed attribute name to match the actual API.
This commit is contained in:
@@ -45,11 +45,11 @@ class ContextInjector:
|
||||
"""
|
||||
# Inject signature and today_date for trade tools
|
||||
if request.name in ["buy", "sell"]:
|
||||
# Add signature and today_date to arguments if not present
|
||||
if "signature" not in request.arguments:
|
||||
request.arguments["signature"] = self.signature
|
||||
if "today_date" not in request.arguments:
|
||||
request.arguments["today_date"] = self.today_date
|
||||
# Add signature and today_date to args if not present
|
||||
if "signature" not in request.args:
|
||||
request.args["signature"] = self.signature
|
||||
if "today_date" not in request.args:
|
||||
request.args["today_date"] = self.today_date
|
||||
|
||||
# Call the actual tool handler
|
||||
return await handler(request)
|
||||
|
||||
Reference in New Issue
Block a user