Package com.agentforge4j.starter
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 unchangedmaxNestingDepth- when non-null, forwarded throughWorkflowRuntimeBuilder; whennullconstruction keeps framework defaultsloadShippedAgents- whentrue, merges agents from the starter's shipped classpath resourcesloadShippedWorkflows- whentrue, 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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordIntegration loading settings, bound fromagentforge4j.integrations.*. -
Constructor Summary
ConstructorsConstructorDescriptionAgentForge4jProperties(String agentsPath, String workflowsPath, AgentForge4jProperties.Integrations integrations, Integer maxNestingDepth, boolean loadShippedWorkflows, boolean loadShippedAgents) Creates an instance of aAgentForge4jPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentsPathrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theintegrationsrecord component.booleanReturns the value of theloadShippedAgentsrecord component.booleanReturns the value of theloadShippedWorkflowsrecord component.Returns the value of themaxNestingDepthrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworkflowsPathrecord component.
-
Constructor Details
-
AgentForge4jProperties
public AgentForge4jProperties(String agentsPath, String workflowsPath, AgentForge4jProperties.Integrations integrations, Integer maxNestingDepth, boolean loadShippedWorkflows, boolean loadShippedAgents) Creates an instance of aAgentForge4jPropertiesrecord class.- Parameters:
agentsPath- the value for theagentsPathrecord componentworkflowsPath- the value for theworkflowsPathrecord componentintegrations- the value for theintegrationsrecord componentmaxNestingDepth- the value for themaxNestingDepthrecord componentloadShippedWorkflows- the value for theloadShippedWorkflowsrecord componentloadShippedAgents- the value for theloadShippedAgentsrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
agentsPath
Returns the value of theagentsPathrecord component.- Returns:
- the value of the
agentsPathrecord component
-
workflowsPath
Returns the value of theworkflowsPathrecord component.- Returns:
- the value of the
workflowsPathrecord component
-
integrations
Returns the value of theintegrationsrecord component.- Returns:
- the value of the
integrationsrecord component
-
maxNestingDepth
Returns the value of themaxNestingDepthrecord component.- Returns:
- the value of the
maxNestingDepthrecord component
-
loadShippedWorkflows
public boolean loadShippedWorkflows()Returns the value of theloadShippedWorkflowsrecord component.- Returns:
- the value of the
loadShippedWorkflowsrecord component
-
loadShippedAgents
public boolean loadShippedAgents()Returns the value of theloadShippedAgentsrecord component.- Returns:
- the value of the
loadShippedAgentsrecord component
-