Package dev.langchain4j.agentic
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 aDefaultDeclarativeAgentCreationContext
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentBuilder
record component.Returns the value of theagentServiceClass
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
DefaultDeclarativeAgentCreationContext
public DefaultDeclarativeAgentCreationContext(Class<T> agentServiceClass, AgentBuilder<T> agentBuilder) Creates an instance of aDefaultDeclarativeAgentCreationContext
record class.- Parameters:
agentServiceClass
- the value for theagentServiceClass
record componentagentBuilder
- the value for theagentBuilder
record 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)
. -
agentServiceClass
Returns the value of theagentServiceClass
record component.- Specified by:
agentServiceClass
in interfaceAgenticServices.DeclarativeAgentCreationContext<T>
- Returns:
- the value of the
agentServiceClass
record component
-
agentBuilder
Returns the value of theagentBuilder
record component.- Specified by:
agentBuilder
in interfaceAgenticServices.DeclarativeAgentCreationContext<T>
- Returns:
- the value of the
agentBuilder
record component
-