Package io.quarkiverse.mcp.server
Interface PromptManager
- All Superinterfaces:
FeatureManager<PromptManager.PromptInfo>,Iterable<PromptManager.PromptInfo>
- All Known Implementing Classes:
PromptManagerImpl
This manager can be used to obtain metadata and register a new prompt programmatically.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic interfacestatic interfacePromptManager.PromptInfodefinition.static interfaceTool info.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 -
Method Summary
Modifier and TypeMethodDescriptionremovePrompt(String name) Removes a prompt previously added withnewPrompt(String).Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getPrompt
- Parameters:
name-- Returns:
- the prompt with the given name, or
null
-
newPrompt
- Parameters:
name- The name must be unique- Returns:
- a new definition builder
- See Also:
-
removePrompt
Removes a prompt previously added withnewPrompt(String).- Returns:
- the removed prompt or
nullif no such tool existed
-