refactor: короче методы, чище тесты, README разгружен
- ShellTool::handle 108 → 52 строк: tempFiles() и run() отдельно - CsvQueryTool::handle 103 → 80: readRows() и pickRows() отдельно - в кейсах тестов оставлены только используемые use (было 26 в каждом) - README 653 → 261 строк: инструменты, примеры, провайдеры и справочник вынесены в docs/ - 100 тестов
This commit is contained in:
1 parent
76b3be7115
commit
27c0fc2477
13 files changed
+546
-616
No files matched your search
@@ -7,29 +7,10 @@ declare(strict_types=1);
|
||||
use AiSdk\Agent;
|
||||
use AiSdk\ChatClient;
|
||||
use AiSdk\ChatResult;
|
||||
use AiSdk\HttpTransport;
|
||||
use AiSdk\HttpRequest;
|
||||
use AiSdk\LoggingClient;
|
||||
use AiSdk\Tool;
|
||||
use AiSdk\ToolRegistry;
|
||||
use AiSdk\Tools\CalculatorTool;
|
||||
use AiSdk\Tools\ConvertUnitsTool;
|
||||
use AiSdk\Tools\CsvQueryTool;
|
||||
use AiSdk\Tools\DateCalcTool;
|
||||
use AiSdk\Tools\FileSandbox;
|
||||
use AiSdk\Tools\FindFilesTool;
|
||||
use AiSdk\Tools\JsonQueryTool;
|
||||
use AiSdk\Tools\FinishTool;
|
||||
use AiSdk\Tools\HashTool;
|
||||
use AiSdk\Tools\HttpRequestTool;
|
||||
use AiSdk\Tools\ListDirTool;
|
||||
use AiSdk\Tools\ReadFileTool;
|
||||
use AiSdk\Tools\ReplaceInFileTool;
|
||||
use AiSdk\Tools\SearchFilesTool;
|
||||
use AiSdk\Tools\ShellTool;
|
||||
use AiSdk\Tools\TimeTool;
|
||||
use AiSdk\Tools\WriteFileTool;
|
||||
use AiSdk\Tools\UuidTool;
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Логирование
|
||||
|
||||
Reference in new issue
Block a user