| Methods |
public
|
__construct(
array<array-key, ToolEntry> $entries = [],
int $pageSize = CursorPaginator::DEFAULT_PAGE_SIZE,
SchemaValidatorInterface $validator = new OpisSchemaValidator(),
int $ttlMs = 0,
CacheScope $cacheScope = CacheScope::Private,
)
|
#
|
public
|
onListChanged(Closure $listener): void
Registers a listener invoked once per change to the entries this store lists.
Registers a listener invoked once per change to the entries this store lists.
Implements
|
#
|
public
|
addTool(Tool $tool, ToolExecutorInterface $executor): void
Registers a tool, replacing any tool already listed under the same name.
Registers a tool, replacing any tool already listed under the same name.
Implements
|
#
|
public
|
removeTool(string $name): bool
Removes the tool listed under $name, reporting whether one was listed.
Removes the tool listed under $name, reporting whether one was listed.
Implements
|
#
|
public
|
list(?Cursor $cursor): ListToolsResult
|
#
|
public
|
call(string $name, ?array $arguments, ServerContext $context): CallToolResult|InputRequiredResult
|
#
|