File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed
src/Server/RequestHandler Expand file tree Collapse file tree 3 files changed +3
-6
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 \McpSdk \Message \Notification ;
8
7
use PhpLlm \McpSdk \Message \Request ;
9
8
use PhpLlm \McpSdk \Message \Response ;
10
9
11
10
final class PingHandler extends BaseRequestHandler
12
11
{
13
- public function createResponse (Request | Notification $ message ): Response
12
+ public function createResponse (Request $ message ): Response
14
13
{
15
14
return new Response ($ message ->id , []);
16
15
}
Original file line number Diff line number Diff line change 8
8
use PhpLlm \LlmChain \Exception \ExceptionInterface ;
9
9
use PhpLlm \LlmChain \Model \Response \ToolCall ;
10
10
use PhpLlm \McpSdk \Message \Error ;
11
- use PhpLlm \McpSdk \Message \Notification ;
12
11
use PhpLlm \McpSdk \Message \Request ;
13
12
use PhpLlm \McpSdk \Message \Response ;
14
13
@@ -19,7 +18,7 @@ public function __construct(
19
18
) {
20
19
}
21
20
22
- public function createResponse (Request | Notification $ message ): Response |Error
21
+ public function createResponse (Request $ message ): Response |Error
23
22
{
24
23
$ name = $ message ->params ['name ' ];
25
24
$ arguments = $ message ->params ['arguments ' ] ?? [];
Original file line number Diff line number Diff line change 6
6
7
7
use PhpLlm \LlmChain \Chain \Toolbox \Metadata ;
8
8
use PhpLlm \LlmChain \Chain \Toolbox \ToolboxInterface ;
9
- use PhpLlm \McpSdk \Message \Notification ;
10
9
use PhpLlm \McpSdk \Message \Request ;
11
10
use PhpLlm \McpSdk \Message \Response ;
12
11
@@ -17,7 +16,7 @@ public function __construct(
17
16
) {
18
17
}
19
18
20
- public function createResponse (Request | Notification $ message ): Response
19
+ public function createResponse (Request $ message ): Response
21
20
{
22
21
return new Response ($ message ->id , [
23
22
'tools ' => array_map (function (Metadata $ tool ) {
You can’t perform that action at this time.
0 commit comments