Record Class CatalogManifest

java.lang.Object
java.lang.Record
com.agentforge4j.config.loader.catalog.CatalogManifest
Record Components:
catalogVersion - the catalog's own (independent) version, for diagnostics
minimumAgentForge4jVersion - lowest framework version the catalog supports (inclusive)
maximumAgentForge4jVersion - highest framework version the catalog supports (inclusive), or null for unbounded
workflowSchemaVersion - the workflow schema version the catalog was authored against

public record CatalogManifest(String catalogVersion, String minimumAgentForge4jVersion, String maximumAgentForge4jVersion, int workflowSchemaVersion) extends Record
Compatibility metadata declared by a shipped workflow catalog, read from shipped-workflows/agentforge4j-catalog.json.

The framework loads a catalog only when this manifest's version bounds admit the running FrameworkVersion and its declared workflowSchemaVersion matches WorkflowSchemaVersion.SUPPORTED_WORKFLOW_SCHEMA_VERSION.

  • Constructor Details

    • CatalogManifest

      public CatalogManifest(String catalogVersion, String minimumAgentForge4jVersion, String maximumAgentForge4jVersion, int workflowSchemaVersion)
      Validates the manifest. maximumAgentForge4jVersion stays null when unbounded.
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • catalogVersion

      public String catalogVersion()
      Returns the value of the catalogVersion record component.
      Returns:
      the value of the catalogVersion record component
    • minimumAgentForge4jVersion

      public String minimumAgentForge4jVersion()
      Returns the value of the minimumAgentForge4jVersion record component.
      Returns:
      the value of the minimumAgentForge4jVersion record component
    • maximumAgentForge4jVersion

      public String maximumAgentForge4jVersion()
      Returns the value of the maximumAgentForge4jVersion record component.
      Returns:
      the value of the maximumAgentForge4jVersion record component
    • workflowSchemaVersion

      public int workflowSchemaVersion()
      Returns the value of the workflowSchemaVersion record component.
      Returns:
      the value of the workflowSchemaVersion record component