File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
src/Server/RequestHandler Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 4
4
5
5
namespace PhpLlm \McpSdk \Server \RequestHandler ;
6
6
7
- use PhpLlm \LlmChain \Chain \ToolBox \ ToolBoxInterface ;
7
+ use PhpLlm \LlmChain \Chain \Toolbox \ ToolboxInterface ;
8
8
use PhpLlm \LlmChain \Exception \ExceptionInterface ;
9
9
use PhpLlm \LlmChain \Model \Response \ToolCall ;
10
10
use PhpLlm \McpSdk \Message \Error ;
15
15
final class ToolCallHandler extends BaseRequestHandler
16
16
{
17
17
public function __construct (
18
- private readonly ToolBoxInterface $ toolBox ,
18
+ private readonly ToolboxInterface $ toolbox ,
19
19
) {
20
20
}
21
21
@@ -25,7 +25,7 @@ public function createResponse(Request|Notification $message): Response|Error
25
25
$ arguments = $ message ->params ['arguments ' ] ?? [];
26
26
27
27
try {
28
- $ result = $ this ->toolBox ->execute (new ToolCall (uniqid (), $ name , $ arguments ));
28
+ $ result = $ this ->toolbox ->execute (new ToolCall (uniqid (), $ name , $ arguments ));
29
29
} catch (ExceptionInterface ) {
30
30
return Error::internalError ($ message ->id , 'Error while executing tool ' );
31
31
}
Original file line number Diff line number Diff line change 4
4
5
5
namespace PhpLlm \McpSdk \Server \RequestHandler ;
6
6
7
- use PhpLlm \LlmChain \Chain \ToolBox \Metadata ;
8
- use PhpLlm \LlmChain \Chain \ToolBox \ ToolBoxInterface ;
7
+ use PhpLlm \LlmChain \Chain \Toolbox \Metadata ;
8
+ use PhpLlm \LlmChain \Chain \Toolbox \ ToolboxInterface ;
9
9
use PhpLlm \McpSdk \Message \Notification ;
10
10
use PhpLlm \McpSdk \Message \Request ;
11
11
use PhpLlm \McpSdk \Message \Response ;
12
12
13
13
final class ToolListHandler extends BaseRequestHandler
14
14
{
15
15
public function __construct (
16
- private readonly ToolBoxInterface $ toolBox ,
16
+ private readonly ToolboxInterface $ toolbox ,
17
17
) {
18
18
}
19
19
@@ -29,7 +29,7 @@ public function createResponse(Request|Notification $message): Response
29
29
'$schema ' => 'http://json-schema.org/draft-07/schema# ' ,
30
30
],
31
31
];
32
- }, $ this ->toolBox ->getMap ()),
32
+ }, $ this ->toolbox ->getMap ()),
33
33
]);
34
34
}
35
35
You can’t perform that action at this time.
0 commit comments