Record Class AgentMetadata
java.lang.Object
java.lang.Record
com.google.adk.planner.goap.AgentMetadata
- Record Components:
agentName- the name of the agent (must matchBaseNode.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
声明代理程序可以读取(输入)哪些状态信息,以及可以写入(输出)哪些状态信息。
被……使用 GoalOrientedPlanner 和 P2PPlanner 用于依赖项的解析(dependency resolution)。
-
构造函数概述
ConstructorsConstructorDescriptionAgentMetadata(String agentName, com.google.common.collect.ImmutableList<String> inputKeys, String outputKey) 创建一个……的实例。AgentMetadata记录类(Record Class)。 -
方法概述
Modifier and TypeMethodDescription返回该值的值。agentName“record component”(记录组件)。final boolean用于表示另一个对象是否“等于”当前这个对象。final inthashCode()返回该对象的哈希码值。com.google.common.collect.ImmutableList<String> 返回该值的值。inputKeys“record component”(记录组件)。返回该值的值。outputKey“record component”(记录组件)。final StringtoString()返回该记录类的字符串表示形式。
-
构造函数详细信息
-
AgentMetadata
-
-
方法详细信息(Method Details)
-
toString
-
hashCode
-
equals
用于判断另一个对象是否“等于”当前对象。当另一个对象属于相同的类,并且所有记录组件都相同时,这两个对象才被认为是相等的。该记录类中的所有组件都会被逐一进行比较。Objects::equals(Object,Object). -
agentName
-
inputKeys
-
outputKey
-