Package io.quarkiverse.mcp.server
Interface CompletionManager
- All Superinterfaces:
FeatureManager<CompletionManager.CompletionInfo>,Iterable<CompletionManager.CompletionInfo>
- All Known Subinterfaces:
PromptCompletionManager,ResourceTemplateCompletionManager
- All Known Implementing Classes:
CompletionManagerBase,PromptCompletionManagerImpl,ResourceTemplateCompletionManagerImpl
This manager can be used to obtain metadata and register a new completion programmatically.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfaceCompletionManager.CompletionInfodefinition.static interfaceCompletion 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 TypeMethodDescriptiongetCompletion(String name, String argumentName) newCompletion(String nameReference) The combination of the name reference and argument name must be unique.booleanRemoves all completions previously added withnewCompletion(String)and matching the given filter.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getCompletion
- Parameters:
name-argumentName-- Returns:
- the completion for the given name reference and argument name
-
newCompletion
The combination of the name reference and argument name must be unique.- Parameters:
nameReference-- Returns:
- a new definition builder
- See Also:
-
removeCompletion
Removes all completions previously added withnewCompletion(String)and matching the given filter.- Returns:
trueif any completions were removed
-