Package dev.langchain4j.agentic.internal
Record Class AgentExecutor
java.lang.Object
java.lang.Record
dev.langchain4j.agentic.internal.AgentExecutor
-
Constructor Summary
ConstructorsConstructorDescriptionAgentExecutor
(AgentInvoker agentInvoker, Object agent) Creates an instance of aAgentExecutor
record class. -
Method Summary
Modifier and TypeMethodDescriptionagent()
Returns the value of theagent
record component.Returns the value of theagentInvoker
record component.final boolean
Indicates whether some other object is "equal to" this one.execute
(DefaultAgenticScope agenticScope) final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
AgentExecutor
Creates an instance of aAgentExecutor
record class.- Parameters:
agentInvoker
- the value for theagentInvoker
record componentagent
- the value for theagent
record component
-
-
Method Details
-
agentName
-
execute
-
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)
. -
agentInvoker
Returns the value of theagentInvoker
record component.- Returns:
- the value of the
agentInvoker
record component
-
agent
Returns the value of theagent
record component.- Returns:
- the value of the
agent
record component
-