Record Class DefaultAgentInstance
java.lang.Object
java.lang.Record
dev.langchain4j.agentic.planner.DefaultAgentInstance
- All Implemented Interfaces:
AgentInstance
public record DefaultAgentInstance(Class<?> type, String name, String agentId, String description, Type outputType, String outputKey, List<AgentArgument> arguments, List<AgentInstance> subagents)
extends Record
implements AgentInstance
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultAgentInstance(Class<?> type, String name, String agentId, String description, Type outputType, String outputKey, List<AgentArgument> arguments, List<AgentInstance> subagents) 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.Returns the value of theoutputTyperecord component.Returns the value of thesubagentsrecord component.final StringtoString()Returns a string representation of this record class.Class<?> type()Returns the value of thetyperecord component.
-
Constructor Details
-
DefaultAgentInstance
public DefaultAgentInstance(Class<?> type, String name, String agentId, String description, Type outputType, String outputKey, List<AgentArgument> arguments, List<AgentInstance> subagents) Creates an instance of aDefaultAgentInstancerecord class.- Parameters:
type- the value for thetyperecord componentname- the value for thenamerecord componentagentId- the value for theagentIdrecord componentdescription- the value for thedescriptionrecord componentoutputType- the value for theoutputTyperecord componentoutputKey- the value for theoutputKeyrecord componentarguments- the value for theargumentsrecord componentsubagents- the value for thesubagentsrecord 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). -
type
Returns the value of thetyperecord component.- Specified by:
typein interfaceAgentInstance- Returns:
- the value of the
typerecord component
-
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
-
outputType
Returns the value of theoutputTyperecord component.- Specified by:
outputTypein interfaceAgentInstance- Returns:
- the value of the
outputTyperecord 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
-
subagents
Returns the value of thesubagentsrecord component.- Specified by:
subagentsin interfaceAgentInstance- Returns:
- the value of the
subagentsrecord component
-