Module agentforge4j.config.loader
Package com.agentforge4j.config.loader
Record Class WorkflowDirectoryLoad
java.lang.Object
java.lang.Record
com.agentforge4j.config.loader.WorkflowDirectoryLoad
- Record Components:
workflows- loaded workflows keyed by idbundledAgents- agents discovered in workflow bundles keyed by id
public record WorkflowDirectoryLoad(Map<String,WorkflowDefinition> workflows, Map<String,AgentDefinition> bundledAgents)
extends Record
Result of loading a workflows directory or shipped workflow bundles: workflow definitions plus
agents discovered under each workflow's
agents/ tree (merged into a single map by id).-
Constructor Summary
ConstructorsConstructorDescriptionWorkflowDirectoryLoad(Map<String, WorkflowDefinition> workflows, Map<String, AgentDefinition> bundledAgents) Creates an instance of aWorkflowDirectoryLoadrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebundledAgentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of theworkflowsrecord component.
-
Constructor Details
-
WorkflowDirectoryLoad
public WorkflowDirectoryLoad(Map<String, WorkflowDefinition> workflows, Map<String, AgentDefinition> bundledAgents) Creates an instance of aWorkflowDirectoryLoadrecord class.- Parameters:
workflows- the value for theworkflowsrecord componentbundledAgents- the value for thebundledAgentsrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
workflows
Returns the value of theworkflowsrecord component.- Returns:
- the value of the
workflowsrecord component
-
bundledAgents
Returns the value of thebundledAgentsrecord component.- Returns:
- the value of the
bundledAgentsrecord component
-