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 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
-
agentName
-
execute
-
syncExecute
-
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 theagentInvokerrecord component.- Returns:
- the value of the
agentInvokerrecord component
-
agent
Returns the value of theagentrecord component.- Returns:
- the value of the
agentrecord component
-