Record Class AgentMetadata
java.lang.Object
java.lang.Record
com.google.adk.planner.goap.AgentMetadata
- Record Components:
agentName- the name of the agent (must matchBaseAgent.name())inputKeys- the state keys this agent reads as inputsoutputKey- the state key this agent produces as output
public record AgentMetadata(String agentName, com.google.common.collect.ImmutableList<String> inputKeys, String outputKey)
extends Record
Declares what state keys an agent reads (inputs) and writes (output).
Used by GoalOrientedPlanner and P2PPlanner for
dependency resolution.
-
Constructor Summary
ConstructorsConstructorDescriptionAgentMetadata(String agentName, com.google.common.collect.ImmutableList<String> inputKeys, String outputKey) Creates an instance of aAgentMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.google.common.collect.ImmutableList<String> Returns the value of theinputKeysrecord component.Returns the value of theoutputKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AgentMetadata
-
-
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). -
agentName
-
inputKeys
-
outputKey
-