Package io.openliberty.mcp.features
Interface FeatureManager.FeatureInfo
- All Superinterfaces:
Comparable<FeatureManager.FeatureInfo>,org.mcpjava.server.MetaCarrier
- All Known Subinterfaces:
ToolManager.ToolInfo
- Enclosing interface:
- FeatureManager<INFO extends FeatureManager.FeatureInfo>
public static interface FeatureManager.FeatureInfo
extends Comparable<FeatureManager.FeatureInfo>, org.mcpjava.server.MetaCarrier
Provides information about an MCP feature, e.g. a tool.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.mcpjava.server.MetaCarrier
org.mcpjava.server.MetaCarrier.Builder<THIS extends org.mcpjava.server.MetaCarrier.Builder<THIS>> -
Method Summary
Methods inherited from interface org.mcpjava.server.MetaCarrier
metadata
-
Method Details
-
name
String name()The name, which is unique within the manager holding this feature.- Returns:
- the name
-
description
String description()The description of the feature- Returns:
- the description
-
isMethod
boolean isMethod()Whether this feature is implemented by an annotated method.- Returns:
trueif backed by a business method of a CDI bean,falseotherwise
-
createdAt
Instant createdAt()The time that the feature was created- Returns:
- the timestamp this feature was registered
-
compareTo
- Specified by:
compareToin interfaceComparable<FeatureManager.FeatureInfo>
-