Interface AllowedServerFunction

All Superinterfaces:
AllowedTool

@Experimental public interface AllowedServerFunction extends AllowedTool
Definition of a function allowed to be called.
Since:
5.2.251104
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Builder for a server function filter.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a new builder for creating a AllowedServerFunction definition.
    @Nullable String
    The name of the function that can be called, null for no function restriction.
    @Nullable String
    The name of the plugin providing a list of function servers to allow, null for no plugin restriction.
    @Nullable String
    The name of the server providing the function to allow, null for no server restriction.
  • Method Details

    • builder

      @NotNull static @NotNull AllowedServerFunction.Builder builder()
      Creates a new builder for creating a AllowedServerFunction definition.
      Returns:
      The new builder instance.
      Since:
      5.2.251104
    • getPluginName

      @Nullable @Nullable String getPluginName()
      The name of the plugin providing a list of function servers to allow, null for no plugin restriction.
      Returns:
      The associated plugin name.
      Since:
      5.2.251104
    • getServerName

      @Nullable @Nullable String getServerName()
      The name of the server providing the function to allow, null for no server restriction.
      Returns:
      The associated server name.
      Since:
      5.2.251104
    • getFunctionName

      @Nullable @Nullable String getFunctionName()
      The name of the function that can be called, null for no function restriction.
      Returns:
      The name of the function.
      Since:
      5.2.251104