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.syncExecute
(DefaultAgenticScope agenticScope) 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
-
execute
-
syncExecute
-
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)
. -
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
-