mirror of
https://github.com/Xe138/AI-Trader.git
synced 2026-04-11 13:17:23 -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
|
# Inject signature and today_date for trade tools
|
||||||
if request.name in ["buy", "sell"]:
|
if request.name in ["buy", "sell"]:
|
||||||
# Add signature and today_date to arguments if not present
|
# Add signature and today_date to args if not present
|
||||||
if "signature" not in request.arguments:
|
if "signature" not in request.args:
|
||||||
request.arguments["signature"] = self.signature
|
request.args["signature"] = self.signature
|
||||||
if "today_date" not in request.arguments:
|
if "today_date" not in request.args:
|
||||||
request.arguments["today_date"] = self.today_date
|
request.args["today_date"] = self.today_date
|
||||||
|
|
||||||
# Call the actual tool handler
|
# Call the actual tool handler
|
||||||
return await handler(request)
|
return await handler(request)
|
||||||
|
|||||||
Reference in New Issue
Block a user