Class PromptCompletionManagerImpl
java.lang.Object
io.quarkiverse.mcp.server.runtime.FeatureManagerBase<CompletionResponse,CompletionManager.CompletionInfo>
io.quarkiverse.mcp.server.runtime.PromptCompletionManagerImpl
- All Implemented Interfaces:
CompletionManager
,FeatureManager<CompletionManager.CompletionInfo>
,PromptCompletionManager
,Iterable<CompletionManager.CompletionInfo>
@Singleton
public class PromptCompletionManagerImpl
extends FeatureManagerBase<CompletionResponse,CompletionManager.CompletionInfo>
implements PromptCompletionManager
-
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.CompletionInfo
Nested classes/interfaces inherited from interface io.quarkiverse.mcp.server.FeatureManager
FeatureManager.FeatureDefinition<INFO extends FeatureManager.FeatureInfo,
ARGUMENTS, RESPONSE, THIS extends FeatureManager.FeatureDefinition<INFO, ARGUMENTS, RESPONSE, THIS>>, FeatureManager.FeatureInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ConcurrentMap<String,
CompletionManager.CompletionInfo> Fields inherited from class io.quarkiverse.mcp.server.runtime.FeatureManagerBase
connectionManager, currentIdentityAssociation, logs, mapper, vertx
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
PromptCompletionManagerImpl
(McpMetadata metadata, io.vertx.core.Vertx vertx, com.fasterxml.jackson.databind.ObjectMapper mapper, ConnectionManager connectionManager, PromptManagerImpl promptManager, jakarta.enterprise.inject.Instance<io.quarkus.security.identity.CurrentIdentityAssociation> currentIdentityAssociation) -
Method Summary
Modifier and TypeMethodDescriptionprotected Feature
feature()
protected io.quarkiverse.mcp.server.runtime.FeatureManagerBase.FeatureInvoker<CompletionResponse>
getInvoker
(String id) newCompletion
(String nameReference) The combination of the name reference and argument name must be unique.protected io.quarkiverse.mcp.server.runtime.McpException
boolean
Removes all completions previously added withCompletionManager.newCompletion(String)
and matching the given filter.int
size()
protected void
validateReference
(String refName, String argumentName) Methods inherited from class io.quarkiverse.mcp.server.runtime.FeatureManagerBase
execute, execute, fetchPage, isEmpty, iterator, log, notifyConnections, prepareArguments, wrapResult
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.quarkiverse.mcp.server.CompletionManager
newCompletion, removeCompletion
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Field Details
-
completions
-
-
Constructor Details
-
PromptCompletionManagerImpl
protected PromptCompletionManagerImpl(McpMetadata metadata, io.vertx.core.Vertx vertx, com.fasterxml.jackson.databind.ObjectMapper mapper, ConnectionManager connectionManager, PromptManagerImpl promptManager, jakarta.enterprise.inject.Instance<io.quarkus.security.identity.CurrentIdentityAssociation> currentIdentityAssociation)
-
-
Method Details
-
notFound
- Specified by:
notFound
in classFeatureManagerBase<CompletionResponse,
CompletionManager.CompletionInfo>
-
feature
-
validateReference
-
newCompletion
Description copied from interface:CompletionManager
The combination of the name reference and argument name must be unique.- Specified by:
newCompletion
in interfaceCompletionManager
- Returns:
- a new definition builder
- See Also:
-
removeCompletion
Description copied from interface:CompletionManager
Removes all completions previously added withCompletionManager.newCompletion(String)
and matching the given filter.- Specified by:
removeCompletion
in interfaceCompletionManager
- Returns:
true
if any completions were removed
-
size
public int size()- Specified by:
size
in classFeatureManagerBase<CompletionResponse,
CompletionManager.CompletionInfo>
-
getInvoker
protected io.quarkiverse.mcp.server.runtime.FeatureManagerBase.FeatureInvoker<CompletionResponse> getInvoker(String id) - Specified by:
getInvoker
in classFeatureManagerBase<CompletionResponse,
CompletionManager.CompletionInfo>
-