Class CompletionManagerBase
java.lang.Object
io.quarkiverse.mcp.server.runtime.FeatureManagerBase<CompletionResponse,CompletionManager.CompletionInfo>
io.quarkiverse.mcp.server.runtime.CompletionManagerBase
- All Implemented Interfaces:
CompletionManager,FeatureManager<CompletionManager.CompletionInfo>,Iterable<CompletionManager.CompletionInfo>
- Direct Known Subclasses:
PromptCompletionManagerImpl,ResourceTemplateCompletionManagerImpl
public abstract class CompletionManagerBase
extends FeatureManagerBase<CompletionResponse,CompletionManager.CompletionInfo>
implements CompletionManager
-
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.CompletionManager
CompletionManager.CompletionArguments, CompletionManager.CompletionDefinition, CompletionManager.CompletionInfoNested 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 -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ConcurrentMap<String,CompletionManager.CompletionInfo> Fields inherited from class io.quarkiverse.mcp.server.runtime.FeatureManagerBase
connectionManager, currentIdentityAssociation, loggers, mapper, vertx -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCompletionManagerBase(io.vertx.core.Vertx vertx, com.fasterxml.jackson.databind.ObjectMapper mapper, ConnectionManager connectionManager, jakarta.enterprise.inject.Instance<io.quarkus.security.identity.CurrentIdentityAssociation> currentIdentityAssociation, ResponseHandlers responseHandlers) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Featurefeature()getCompletion(String name, String argumentName) protected io.quarkiverse.mcp.server.runtime.FeatureManagerBase.FeatureInvoker<CompletionResponse>getInvoker(String id, McpRequest mcpRequest) newCompletion(String nameReference) The combination of the name reference and argument name must be unique.booleanRemoves all completions previously added withCompletionManager.newCompletion(String)and matching the given filter.protected abstract voidvalidateReference(String refName, String argumentName) Methods inherited from class io.quarkiverse.mcp.server.runtime.FeatureManagerBase
defaultValueConverters, execute, execute, fetchPage, hasInfos, iterator, log, matches, notFound, 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
-
Field Details
-
completions
-
-
Constructor Details
-
CompletionManagerBase
protected CompletionManagerBase(io.vertx.core.Vertx vertx, com.fasterxml.jackson.databind.ObjectMapper mapper, ConnectionManager connectionManager, jakarta.enterprise.inject.Instance<io.quarkus.security.identity.CurrentIdentityAssociation> currentIdentityAssociation, ResponseHandlers responseHandlers)
-
-
Method Details
-
getCompletion
- Specified by:
getCompletionin interfaceCompletionManager- Returns:
- the completion for the given name reference and argument name
-
newCompletion
Description copied from interface:CompletionManagerThe combination of the name reference and argument name must be unique.- Specified by:
newCompletionin interfaceCompletionManager- Returns:
- a new definition builder
- See Also:
-
removeCompletion
Description copied from interface:CompletionManagerRemoves all completions previously added withCompletionManager.newCompletion(String)and matching the given filter.- Specified by:
removeCompletionin interfaceCompletionManager- Returns:
trueif any completions were removed
-
getInvoker
protected io.quarkiverse.mcp.server.runtime.FeatureManagerBase.FeatureInvoker<CompletionResponse> getInvoker(String id, McpRequest mcpRequest) - Specified by:
getInvokerin classFeatureManagerBase<CompletionResponse,CompletionManager.CompletionInfo>
-
feature
-
validateReference
-