Record Class AgentForge4jProperties

java.lang.Object
java.lang.Record
com.agentforge4j.starter.AgentForge4jProperties
Record Components:
agentsPath - filesystem directory of agent YAML (or blank to skip filesystem agent loading)
workflowsPath - filesystem directory of workflow YAML (or blank to skip filesystem workflow loading)
integrations - integration loading settings (agentforge4j.integrations.*); when absent, integration loading is skipped and tool support is unchanged
maxNestingDepth - when non-null, forwarded through WorkflowRuntimeBuilder; when null construction keeps framework defaults
loadShippedAgents - when true, merges agents from the starter's shipped classpath resources
loadShippedWorkflows - when true, merges workflows from shipped classpath resources

@ConfigurationProperties(prefix="agentforge4j") public record AgentForge4jProperties(String agentsPath, String workflowsPath, AgentForge4jProperties.Integrations integrations, Integer maxNestingDepth, boolean loadShippedWorkflows, boolean loadShippedAgents) extends Record
Binds Spring Boot configuration under agentforge4j.* that controls classpath and filesystem loading of workflow and agent definitions and optional runtime nesting limits.
  • Constructor Details

    • AgentForge4jProperties

      public AgentForge4jProperties(String agentsPath, String workflowsPath, AgentForge4jProperties.Integrations integrations, Integer maxNestingDepth, boolean loadShippedWorkflows, boolean loadShippedAgents)
      Creates an instance of a AgentForge4jProperties record class.
      Parameters:
      agentsPath - the value for the agentsPath record component
      workflowsPath - the value for the workflowsPath record component
      integrations - the value for the integrations record component
      maxNestingDepth - the value for the maxNestingDepth record component
      loadShippedWorkflows - the value for the loadShippedWorkflows record component
      loadShippedAgents - the value for the loadShippedAgents record component
  • 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.
    • agentsPath

      public String agentsPath()
      Returns the value of the agentsPath record component.
      Returns:
      the value of the agentsPath record component
    • workflowsPath

      public String workflowsPath()
      Returns the value of the workflowsPath record component.
      Returns:
      the value of the workflowsPath record component
    • integrations

      public AgentForge4jProperties.Integrations integrations()
      Returns the value of the integrations record component.
      Returns:
      the value of the integrations record component
    • maxNestingDepth

      public Integer maxNestingDepth()
      Returns the value of the maxNestingDepth record component.
      Returns:
      the value of the maxNestingDepth record component
    • loadShippedWorkflows

      public boolean loadShippedWorkflows()
      Returns the value of the loadShippedWorkflows record component.
      Returns:
      the value of the loadShippedWorkflows record component
    • loadShippedAgents

      public boolean loadShippedAgents()
      Returns the value of the loadShippedAgents record component.
      Returns:
      the value of the loadShippedAgents record component