Class BetaPlugin.Reach

  • All Implemented Interfaces:
    com.anthropic.core.Enum

    
    public final class BetaPlugin.Reach
     implements Enum
                        

    How far the served version reaches, or null if it is not classified.

    remote means it declares an MCP server or a CLI, or something that counts as one. privileged means it is not remote, but declares a hook (of any type, even one that posts to a URL), monitor, language server, Claude Code workflow (any file in a workflows/ folder at its root counts as one), or settings, or has a skill, command, or other Markdown file whose frontmatter pre-approves tools (allowed-tools with any value other than an empty one or one that names only AskUserQuestion, TodoWrite, and ToolSearch). Otherwise it is contained.

    If the frontmatter of a skill, command, or other Markdown file that could change the value could not be read, or was past a size limit, the version is null or privileged (or remote, if something else it declares makes it remote), not contained. The value is normally worked out when a version is stored, under the rules of that time, so an older version can be null, contained where the same files stored today would be privileged, remote, or null, or privileged where they would be remote.

    • Constructor Detail

    • Method Detail

      • value

         final BetaPlugin.Reach.Value value()

        Returns an enum member corresponding to this class instance's value, or Value._UNKNOWN if the class was instantiated with an unknown value.

        Use the known method instead if you're certain the value is always known or if you want to throw for the unknown case.

      • _value

         final JsonField<String> _value()

        Returns this class instance's raw value.

        This is usually only useful if this instance was deserialized from data that doesn't match any known member, and you want to know that value. For example, if the SDK is on an older version than the API, then the API may respond with new members that the SDK is unaware of.

      • known

         final BetaPlugin.Reach.Known known()

        Returns an enum member corresponding to this class instance's value.

        Use the value method instead if you're uncertain the value is always known and don't want to throw for the unknown case.

      • asString

         final String asString()

        Returns this class instance's primitive wire representation.

        This differs from the toString method because that method is primarily for debugging and generally doesn't throw.

      • validate

         final BetaPlugin.Reach validate()

        Validates that the types of all values in this object match their expected types recursively.

        This method is not forwards compatible with new types from the API for existing fields.