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 aAgentExecutorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionagent()Returns the value of theagentrecord component.Returns the value of theagentInvokerrecord component.final booleanIndicates whether some other object is "equal to" this one.execute(DefaultAgenticScope agenticScope) final inthashCode()Returns a hash code value for this object.syncExecute(DefaultAgenticScope agenticScope) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AgentExecutor
Creates an instance of aAgentExecutorrecord class.- Parameters:
agentInvoker- the value for theagentInvokerrecord componentagent- the value for theagentrecord 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 theagentInvokerrecord component.- Returns:
- the value of the
agentInvokerrecord component
-
agent
Returns the value of theagentrecord component.- Returns:
- the value of the
agentrecord component
-