Record Class AgenticServices.AgentConfigurator
java.lang.Object
java.lang.Record
dev.langchain4j.agentic.AgenticServices.AgentConfigurator
- Enclosing class:
AgenticServices
-
Constructor Summary
ConstructorsConstructorDescriptionAgentConfigurator(Consumer<AgenticServices.DeclarativeAgentCreationContext<?>> configurator, Function<Class<?>, Object> subAgentResolver) Creates an instance of aAgentConfiguratorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfiguratorrecord component.empty()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 thesubAgentResolverrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AgentConfigurator
public AgentConfigurator(Consumer<AgenticServices.DeclarativeAgentCreationContext<?>> configurator, Function<Class<?>, Object> subAgentResolver) Creates an instance of aAgentConfiguratorrecord class.- Parameters:
configurator- the value for theconfiguratorrecord componentsubAgentResolver- the value for thesubAgentResolverrecord component
-
-
Method Details
-
empty
-
toString
-
hashCode
-
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). -
configurator
Returns the value of theconfiguratorrecord component.- Returns:
- the value of the
configuratorrecord component
-
subAgentResolver
-