CallToolHandler implements RequestHandlerInterface
FinalYes
Tags
Table of Contents
Interfaces
Properties
- $logger : LoggerInterface
- $referenceHandler : ReferenceHandlerInterface
- $registry : RegistryInterface
- $schemaValidator : SchemaValidator
Methods
- __construct() : mixed
- handle() : Response<string|int, CallToolResult>|Error
- supports() : bool
Properties
$logger read-only
private
LoggerInterface
$logger
= new NullLogger()
$referenceHandler read-only
private
ReferenceHandlerInterface
$referenceHandler
$registry read-only
private
RegistryInterface
$registry
$schemaValidator
private
SchemaValidator
$schemaValidator
Methods
__construct()
public
__construct(RegistryInterface $registry, ReferenceHandlerInterface $referenceHandler[, LoggerInterface $logger = new NullLogger() ][, SchemaValidator|null $schemaValidator = null ]) : mixed
Parameters
- $registry : RegistryInterface
- $referenceHandler : ReferenceHandlerInterface
- $logger : LoggerInterface = new NullLogger()
- $schemaValidator : SchemaValidator|null = null
handle()
public
handle(Request $request, SessionInterface $session) : Response<string|int, CallToolResult>|Error
Parameters
- $request : Request
- $session : SessionInterface
Return values
Response<string|int, CallToolResult>|Errorsupports()
public
supports(Request $request) : bool
Parameters
- $request : Request