Record Class Instruction.Static
java.lang.Object
java.lang.Record
com.google.adk.agents.Instruction.Static
- All Implemented Interfaces:
Instruction
- Enclosing interface:
Instruction
直接提供给代理的简单指令。
-
嵌套类概述
Nested classes/interfaces inherited from interface Instruction
Instruction.Provider, Instruction.StaticModifier and TypeInterfaceDescriptionstatic final record根据给定的上下文动态生成一条指令,并返回该指令。static final record直接提供给代理的简单指令。 -
构造函数概述
Constructors -
方法概述
-
构造函数详细信息
-
Static
创建一个……的实例。Static记录类(Record Class)。- Parameters:
instruction- the value for theinstructionrecord component
-
-
方法详细信息(Method Details)
-
toString
-
hashCode
-
equals
用于判断另一个对象是否“等于”当前对象。当另一个对象属于相同的类,并且所有记录组件都相同时,这两个对象才被认为是相等的。该记录类中的所有组件都会被逐一进行比较。Objects::equals(Object,Object). -
instruction
返回该值的值。instruction“record component”(记录组件)。- Returns:
- the value of the
instructionrecord component
-