类:SessionUtils
java.lang.Object
com.google.adk.sessions.SessionUtils
用于会话服务的实用函数。
-
构造函数概述
Constructors -
方法概述
Modifier and TypeMethodDescriptionstatic com.google.genai.types.ContentdecodeContent(com.google.genai.types.Content content) 解码内容中使用的 Base64 编码的内联数据(inline blobs)。static com.google.genai.types.ContentencodeContent(com.google.genai.types.Content content) 将内容中的二进制数据(即“inline blobs”)使用 Base64 进行编码。
-
构造函数详细信息
-
SessionUtils
public SessionUtils()
-
-
方法详细信息(Method Details)
-
encodeContent
public static com.google.genai.types.Content encodeContent(com.google.genai.types.Content content) 将内容中的二进制数据(即“inline blobs”)使用 Base64 进行编码。 -
decodeContent
public static com.google.genai.types.Content decodeContent(com.google.genai.types.Content content) 解码内容中使用的 Base64 编码的内联数据(inline blobs)。
-