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

    Modifier and Type
    Method
    Description
    default int
     
    The time that the feature was created
    The description of the feature
    boolean
    Whether this feature is implemented by an annotated method.
    The name, which is unique within the manager holding this feature.

    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:
      true if backed by a business method of a CDI bean, false otherwise
    • createdAt

      Instant createdAt()
      The time that the feature was created
      Returns:
      the timestamp this feature was registered
    • compareTo

      default int compareTo(FeatureManager.FeatureInfo o)
      Specified by:
      compareTo in interface Comparable<FeatureManager.FeatureInfo>