"Vibe-Trading: Your Personal Trading Agent"
Python ai-agentalgorithmic-tradingbacktestingfintechllmmcpmulti-agentpythonquantitative-financetrading
Merge remote-tracking branch 'origin/main'
Haozhe Wu9769e5b5436d
diff --cc agent/src/tools/web_reader_tool.pyindex 0ae96b9a2,92b655c4f..4fdf53434--- a/agent/src/tools/web_reader_tool.py+++ b/agent/src/tools/web_reader_tool.py@@@ -9,8 -10,9 +10,10 @@@ from urllib.parse import urlspliimport requestsfrom src.agent.tools import BaseTool+from src.security.scanner import with_security_warnings+ logger = logging.getLogger(__name__)+_JINA_PREFIX = "https://r.jina.ai/"_TIMEOUT = 30_MAX_LENGTH = 8000@@@ -96,8 -109,9 +110,10 @@@ def read_url(url: str, no_cache: bool"content": text,"length": len(resp.text),}- payload = with_security_warnings(payload, fields=("content",))- return json.dumps(payload, ensure_ascii=False)+ if _CACHED_MARKER in resp.text:+ result["cached"] = True++ result = with_security_warnings(result, fields=("content",))+ return json.dumps(result, ensure_ascii=False)except requests.Timeout:return json.dumps({"status": "error", "error": f"Request timed out ({_TIMEOUT}s)"}, ensure_ascii=False)