Skip to content

Commit a507231

Browse files
committed
Updates agents package version
1 parent a84b8c7 commit a507231

File tree

6 files changed

+27
-11
lines changed

6 files changed

+27
-11
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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
},

src/ExecuteCommandTool.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@
44

55
namespace LLM\Agents\Agent\SymfonyConsole;
66

7-
use LLM\Agents\Tool\Tool;
7+
use LLM\Agents\Tool\PhpTool;
88
use LLM\Agents\Tool\ToolLanguage;
99
use 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

src/GetCommandDetailsTool.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44

55
namespace LLM\Agents\Agent\SymfonyConsole;
66

7-
use LLM\Agents\Tool\Tool;
7+
use LLM\Agents\Tool\PhpTool;
88
use 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

src/GetCommandsListTool.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44

55
namespace LLM\Agents\Agent\SymfonyConsole;
66

7-
use LLM\Agents\Tool\Tool;
7+
use LLM\Agents\Tool\PhpTool;
88
use 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

src/ReadFileTool.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@
44

55
namespace LLM\Agents\Agent\SymfonyConsole;
66

7-
use LLM\Agents\Tool\Tool;
7+
use LLM\Agents\Tool\PhpTool;
88
use 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,

src/WriteFileTool.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@
44

55
namespace LLM\Agents\Agent\SymfonyConsole;
66

7+
use LLM\Agents\Tool\PhpTool;
78
use LLM\Agents\Tool\Tool;
89
use LLM\Agents\Tool\ToolLanguage;
910

11+
/**
12+
* @extends PhpTool<WriteFileInput>
13+
*/
1014
final 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,

0 commit comments

Comments
 (0)