Class PromptManagerImpl
java.lang.Object
io.quarkiverse.mcp.server.runtime.FeatureManagerBase<PromptResponse,PromptManager.PromptInfo>
io.quarkiverse.mcp.server.runtime.PromptManagerImpl
- All Implemented Interfaces:
FeatureManager<PromptManager.PromptInfo>,PromptManager,Iterable<PromptManager.PromptInfo>
@Singleton
public class PromptManagerImpl
extends FeatureManagerBase<PromptResponse,PromptManager.PromptInfo>
implements PromptManager
-
Nested Class Summary
Nested classes/interfaces inherited from class io.quarkiverse.mcp.server.runtime.FeatureManagerBase
FeatureManagerBase.FeatureDefinitionBase<INFO extends FeatureManager.FeatureInfo,ARGUMENTS, RESPONSE, THIS extends FeatureManagerBase.FeatureDefinitionBase<INFO, ARGUMENTS, RESPONSE, THIS>>, FeatureManagerBase.FeatureDefinitionInfoBase<ARGUMENTS, RESPONSE> Nested classes/interfaces inherited from interface io.quarkiverse.mcp.server.FeatureManager
FeatureManager.FeatureArguments, FeatureManager.FeatureDefinition<INFO extends FeatureManager.FeatureInfo,ARGUMENTS extends FeatureManager.FeatureArguments, RESPONSE, THIS extends FeatureManager.FeatureDefinition<INFO, ARGUMENTS, RESPONSE, THIS>>, FeatureManager.FeatureInfo, FeatureManager.RequestFeatureArguments Nested classes/interfaces inherited from interface io.quarkiverse.mcp.server.PromptManager
PromptManager.PromptArgument, PromptManager.PromptArguments, PromptManager.PromptDefinition, PromptManager.PromptInfo -
Field Summary
Fields inherited from class io.quarkiverse.mcp.server.runtime.FeatureManagerBase
connectionManager, currentIdentityAssociation, loggers, mapper, vertx -
Method Summary
Modifier and TypeMethodDescriptionprotected io.quarkiverse.mcp.server.runtime.FeatureManagerBase.FeatureInvoker<PromptResponse>getInvoker(String id, McpRequest mcpRequest) protected McpExceptionremovePrompt(String name) Removes a prompt previously added withPromptManager.newPrompt(String).Methods inherited from class io.quarkiverse.mcp.server.runtime.FeatureManagerBase
defaultValueConverters, execute, execute, fetchPage, hasInfos, iterator, log, matches, notifyConnections, prepareArguments, wrapResultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getPrompt
- Specified by:
getPromptin interfacePromptManager- Returns:
- the prompt with the given name, or
null
-
newPrompt
- Specified by:
newPromptin interfacePromptManager- Parameters:
name- The name must be unique- Returns:
- a new definition builder
- See Also:
-
removePrompt
Description copied from interface:PromptManagerRemoves a prompt previously added withPromptManager.newPrompt(String).- Specified by:
removePromptin interfacePromptManager- Returns:
- the removed prompt or
nullif no such tool existed
-
notFound
- Specified by:
notFoundin classFeatureManagerBase<PromptResponse,PromptManager.PromptInfo>
-
getInvoker
protected io.quarkiverse.mcp.server.runtime.FeatureManagerBase.FeatureInvoker<PromptResponse> getInvoker(String id, McpRequest mcpRequest) - Specified by:
getInvokerin classFeatureManagerBase<PromptResponse,PromptManager.PromptInfo>
-