File tree Expand file tree Collapse file tree 6 files changed +27
-11
lines changed
Expand file tree Collapse file tree 6 files changed +27
-11
lines changed Original file line number Diff line number Diff line change 44 "license" : " MIT" ,
55 "require" : {
66 "php" : " ^8.3" ,
7- "llm-agents/agents" : " ^1.0 " ,
7+ "llm-agents/agents" : " ^1.5 " ,
88 "llm-agents/json-schema-mapper" : " ^1.0" ,
99 "symfony/console" : " ^6.0||^7.0"
1010 },
Original file line number Diff line number Diff line change 44
55namespace LLM \Agents \Agent \SymfonyConsole ;
66
7- use LLM \Agents \Tool \Tool ;
7+ use LLM \Agents \Tool \PhpTool ;
88use LLM \Agents \Tool \ToolLanguage ;
99use Symfony \Component \Console \Output \BufferedOutput ;
1010
11- final class ExecuteCommandTool extends Tool
11+ /**
12+ * @extends PhpTool<ExecuteCommandInput>
13+ */
14+ final class ExecuteCommandTool extends PhpTool
1215{
1316 public const NAME = 'execute_command ' ;
1417
Original file line number Diff line number Diff line change 44
55namespace LLM \Agents \Agent \SymfonyConsole ;
66
7- use LLM \Agents \Tool \Tool ;
7+ use LLM \Agents \Tool \PhpTool ;
88use LLM \Agents \Tool \ToolLanguage ;
99
10- final class GetCommandDetailsTool extends Tool
10+ /**
11+ * @extends PhpTool<GetCommandDetailsInput>
12+ */
13+ final class GetCommandDetailsTool extends PhpTool
1114{
1215 public const NAME = 'get_command_details ' ;
1316
Original file line number Diff line number Diff line change 44
55namespace LLM \Agents \Agent \SymfonyConsole ;
66
7- use LLM \Agents \Tool \Tool ;
7+ use LLM \Agents \Tool \PhpTool ;
88use LLM \Agents \Tool \ToolLanguage ;
99
10- final class GetCommandsListTool extends Tool
10+ /**
11+ * @extends PhpTool<GetCommandsListInput>
12+ */
13+ final class GetCommandsListTool extends PhpTool
1114{
1215 public const NAME = 'get_commands_list ' ;
1316
Original file line number Diff line number Diff line change 44
55namespace LLM \Agents \Agent \SymfonyConsole ;
66
7- use LLM \Agents \Tool \Tool ;
7+ use LLM \Agents \Tool \PhpTool ;
88use LLM \Agents \Tool \ToolLanguage ;
99
10- final class ReadFileTool extends Tool
10+ /**
11+ * @extends PhpTool<ReadFileInput>
12+ */
13+ final class ReadFileTool extends PhpTool
1114{
12- public const NAME = 'read_file ' ;
15+ public const NAME = 'sc_read_file ' ;
1316
1417 public function __construct (
1518 private readonly string $ basePath ,
Original file line number Diff line number Diff line change 44
55namespace LLM \Agents \Agent \SymfonyConsole ;
66
7+ use LLM \Agents \Tool \PhpTool ;
78use LLM \Agents \Tool \Tool ;
89use LLM \Agents \Tool \ToolLanguage ;
910
11+ /**
12+ * @extends PhpTool<WriteFileInput>
13+ */
1014final class WriteFileTool extends Tool
1115{
12- public const NAME = 'write_file ' ;
16+ public const NAME = 'sc_write_file ' ;
1317
1418 public function __construct (
1519 private readonly string $ basePath ,
You can’t perform that action at this time.
0 commit comments