Record Class AgenticServices.DefaultDeclarativeAgentCreationContext<T>
java.lang.Object
java.lang.Record
dev.langchain4j.agentic.AgenticServices.DefaultDeclarativeAgentCreationContext<T>
- All Implemented Interfaces:
AgenticServices.DeclarativeAgentCreationContext<T>
- Enclosing class:
AgenticServices
public static record AgenticServices.DefaultDeclarativeAgentCreationContext<T>(Class<T> agentServiceClass, AgentBuilder<T> agentBuilder)
extends Record
implements AgenticServices.DeclarativeAgentCreationContext<T>
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultDeclarativeAgentCreationContext(Class<T> agentServiceClass, AgentBuilder<T> agentBuilder) Creates an instance of aDefaultDeclarativeAgentCreationContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentBuilderrecord component.Returns the value of theagentServiceClassrecord 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.
-
Constructor Details
-
DefaultDeclarativeAgentCreationContext
public DefaultDeclarativeAgentCreationContext(Class<T> agentServiceClass, AgentBuilder<T> agentBuilder) Creates an instance of aDefaultDeclarativeAgentCreationContextrecord class.- Parameters:
agentServiceClass- the value for theagentServiceClassrecord componentagentBuilder- the value for theagentBuilderrecord component
-
-
Method Details
-
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). -
agentServiceClass
Returns the value of theagentServiceClassrecord component.- Specified by:
agentServiceClassin interfaceAgenticServices.DeclarativeAgentCreationContext<T>- Returns:
- the value of the
agentServiceClassrecord component
-
agentBuilder
Returns the value of theagentBuilderrecord component.- Specified by:
agentBuilderin interfaceAgenticServices.DeclarativeAgentCreationContext<T>- Returns:
- the value of the
agentBuilderrecord component
-