"Vibe-Trading: Your Personal Trading Agent"
Python ai-agentalgorithmic-tradingbacktestingfintechllmmcpmulti-agentpythonquantitative-financetrading
fix(tools): make financial_rigor + report_audit repeatable
sambazhu366e82385bd3
diff --git a/agent/src/tools/financial_rigor_tool.py b/agent/src/tools/financial_rigor_tool.pyindex 95ed6b7d2..44f502f20 100644--- a/agent/src/tools/financial_rigor_tool.py+++ b/agent/src/tools/financial_rigor_tool.py@@ -499,6 +499,8 @@ class FinancialRigorTool(BaseTool):"required": ["command"],}is_readonly = True+ repeatable = True # loop.py dedups non-repeatable tools by name; users call+ # different sub-commands / params in one session.def execute(self, **kwargs: Any) -> str:"""Dispatch to the requested sub-command and return a JSON envelope.diff --git a/agent/src/tools/report_audit_tool.py b/agent/src/tools/report_audit_tool.pyindex 04e48e0a9..be0cd5d5c 100644--- a/agent/src/tools/report_audit_tool.py+++ b/agent/src/tools/report_audit_tool.py@@ -364,6 +364,8 @@ class ReportAuditTool(BaseTool):"required": ["command"],}is_readonly = True+ repeatable = True # loop.py dedups non-repeatable tools by name; extract+ # and verdict are commonly called back-to-back.def execute(self, **kwargs: Any) -> str:"""Dispatch to ``extract`` or ``verdict`` and return a JSON envelope.diff --git a/agent/tests/test_financial_rigor_tool.py b/agent/tests/test_financial_rigor_tool.pyindex 2e0a3b0bf..0a3bf6121 100644--- a/agent/tests/test_financial_rigor_tool.py+++ b/agent/tests/test_financial_rigor_tool.py@@ -194,6 +194,7 @@ def test_tool_metadata() -> None:tool = FinancialRigorTool()assert tool.name == "financial_rigor"assert tool.is_readonly is True+ assert tool.repeatable is Trueassert tool.parameters["required"] == ["command"]cmds = set(tool.parameters["properties"]["command"]["enum"])assert cmds == {"verify_market_cap", "verify_valuation", "cross_validate",diff --git a/agent/tests/test_report_audit_tool.py b/agent/tests/test_report_audit_tool.pyindex 0523a3b06..491ff31ce 100644--- a/agent/tests/test_report_audit_tool.py+++ b/agent/tests/test_report_audit_tool.py@@ -178,6 +178,7 @@ def test_tool_metadata() -> None:tool = ReportAuditTool()assert tool.name == "report_audit"assert tool.is_readonly is True+ assert tool.repeatable is Trueassert tool.parameters["required"] == ["command"]assert set(tool.parameters["properties"]["command"]["enum"]) == {"extract", "verdict"}