Record Class UntypedAgentInvoker
java.lang.Object
java.lang.Record
dev.langchain4j.agentic.internal.UntypedAgentInvoker
- All Implemented Interfaces:
AgentInvoker, AgentSpecification
public record UntypedAgentInvoker(Method method, AgentSpecification agentSpecification)
extends Record
implements AgentInvoker
-
Field Summary
Fields inherited from interface AgentInvoker
LOG
-
Constructor Summary
ConstructorsConstructorDescriptionUntypedAgentInvoker
(Method method, AgentSpecification agentSpecification) Creates an instance of aUntypedAgentInvoker
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterInvocation
(AgentResponse response) Returns the value of theagentSpecification
record component.boolean
async()
void
beforeInvocation
(AgentRequest request) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.method()
Returns the value of themethod
record component.name()
toCard()
toInvocationArguments
(AgenticScope agenticScope) final String
toString()
Returns a string representation of this record class.Methods inherited from interface AgentInvoker
invoke
-
Constructor Details
-
UntypedAgentInvoker
Creates an instance of aUntypedAgentInvoker
record class.- Parameters:
method
- the value for themethod
record componentagentSpecification
- the value for theagentSpecification
record component
-
-
Method Details
-
name
- Specified by:
name
in interfaceAgentSpecification
-
uniqueName
- Specified by:
uniqueName
in interfaceAgentSpecification
-
description
- Specified by:
description
in interfaceAgentSpecification
-
outputName
- Specified by:
outputName
in interfaceAgentSpecification
-
async
public boolean async()- Specified by:
async
in interfaceAgentSpecification
-
beforeInvocation
- Specified by:
beforeInvocation
in interfaceAgentSpecification
-
afterInvocation
- Specified by:
afterInvocation
in interfaceAgentSpecification
-
toCard
- Specified by:
toCard
in interfaceAgentInvoker
-
toInvocationArguments
- Specified by:
toInvocationArguments
in interfaceAgentInvoker
-
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)
. -
method
Returns the value of themethod
record component.- Specified by:
method
in interfaceAgentInvoker
- Returns:
- the value of the
method
record component
-
agentSpecification
Returns the value of theagentSpecification
record component.- Returns:
- the value of the
agentSpecification
record component
-