Record Class DefaultAgentInstance
java.lang.Object
java.lang.Record
dev.langchain4j.agentic.planner.DefaultAgentInstance
- All Implemented Interfaces:
AgentInstance
public record DefaultAgentInstance(String name, String agentId, String description, String outputKey, List<AgentArgument> arguments)
extends Record
implements AgentInstance
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultAgentInstance(String name, String agentId, String description, String outputKey, List<AgentArgument> arguments) Creates an instance of aDefaultAgentInstancerecord class. -
Method Summary
Modifier and TypeMethodDescriptionagentId()Returns the value of theagentIdrecord component.Returns the value of theargumentsrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of theoutputKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DefaultAgentInstance
public DefaultAgentInstance(String name, String agentId, String description, String outputKey, List<AgentArgument> arguments) Creates an instance of aDefaultAgentInstancerecord class.- Parameters:
name- the value for thenamerecord componentagentId- the value for theagentIdrecord componentdescription- the value for thedescriptionrecord componentoutputKey- the value for theoutputKeyrecord componentarguments- the value for theargumentsrecord component
-
-
Method Details
-
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). -
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceAgentInstance- Returns:
- the value of the
namerecord component
-
agentId
Returns the value of theagentIdrecord component.- Specified by:
agentIdin interfaceAgentInstance- Returns:
- the value of the
agentIdrecord component
-
description
Returns the value of thedescriptionrecord component.- Specified by:
descriptionin interfaceAgentInstance- Returns:
- the value of the
descriptionrecord component
-
outputKey
Returns the value of theoutputKeyrecord component.- Specified by:
outputKeyin interfaceAgentInstance- Returns:
- the value of the
outputKeyrecord component
-
arguments
Returns the value of theargumentsrecord component.- Specified by:
argumentsin interfaceAgentInstance- Returns:
- the value of the
argumentsrecord component
-