| Methods |
public
|
__construct(
array<array-key, PromptEntry> $entries = [],
int $pageSize = CursorPaginator::DEFAULT_PAGE_SIZE,
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
|
addPrompt(Prompt $prompt, PromptRendererInterface $renderer): void
Registers a prompt, replacing any prompt already listed under the same name.
Registers a prompt, replacing any prompt already listed under the same name.
Implements
|
#
|
public
|
removePrompt(string $name): bool
Removes the prompt listed under $name, reporting whether one was listed.
Removes the prompt listed under $name, reporting whether one was listed.
Implements
|
#
|
public
|
list(?Cursor $cursor): ListPromptsResult
|
#
|
public
|
get(string $name, ?array $arguments, ServerContext $context): GetPromptResult|InputRequiredResult
|
#
|