2026-07-13 14:48:50 -05:00
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
//| Main.mqh |
|
|
|
|
|
//| Copyright 2026, Niquel Mendoza. |
|
|
|
|
|
//| https://www.mql5.com/ |
|
|
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
#property copyright "Copyright 2026, Niquel Mendoza."
|
|
|
|
|
#property link "https://www.mql5.com/"
|
|
|
|
|
#property strict
|
|
|
|
|
|
|
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
//| |
|
|
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
#ifndef LLMAGENTSBASICTOOLS_SRC_MAIN_MQH
|
|
|
|
|
#define LLMAGENTSBASICTOOLS_SRC_MAIN_MQH
|
|
|
|
|
|
|
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
//| |
|
|
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
#include "Utils\\Logs.mqh"
|
|
|
|
|
#include "Utils\\Time.mqh"
|
|
|
|
|
#include "Utils\\AccountInfo.mqh"
|
|
|
|
|
#include "Utils\\TerminalInfo.mqh"
|
|
|
|
|
#include "Utils\\ErrDescription.mqh"
|
|
|
|
|
|
|
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
//| Json schema (tools) embebido como recurso |
|
|
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
#resource "tools.json" as const string g_llmagentsbasictools_tools_json;
|
|
|
|
|
|
2026-07-13 16:01:33 -05:00
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
//| |
|
|
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
namespace TSN
|
|
|
|
|
{
|
|
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
//| |
|
|
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
class CLlmBasictToolsByLeo
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
CLlmBasictToolsByLeo(void) {}
|
|
|
|
|
~CLlmBasictToolsByLeo(void) {}
|
|
|
|
|
|
|
|
|
|
//---
|
|
|
|
|
static bool Load(CLLmToolsManager* tool_manager)
|
|
|
|
|
{
|
|
|
|
|
tool_manager.AddItemFast(new CLlmBToolAccountInfo());
|
|
|
|
|
tool_manager.AddItemFast(new CLlmBToolGetErrDescription());
|
|
|
|
|
tool_manager.AddItemFast(new CLlmBToolGetExpertLogs());
|
|
|
|
|
tool_manager.AddItemFast(new CLlmBToolGetTime());
|
|
|
|
|
tool_manager.AddItemFast(new CLlmBToolTerminalInfo());
|
|
|
|
|
|
|
|
|
|
CJsonParser* parser = tool_manager.JsonParser();
|
|
|
|
|
parser.Assing(g_llmagentsbasictools_tools_json);
|
|
|
|
|
parser.CorrectPadingForSwar();
|
|
|
|
|
// Luego parsea..
|
|
|
|
|
return tool_manager.Init();
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-13 14:48:50 -05:00
|
|
|
#endif // LLMAGENTSBASICTOOLS_SRC_MAIN_MQH
|