类:SessionUtils

java.lang.Object
com.google.adk.sessions.SessionUtils

public final class SessionUtils extends Object
用于会话服务的实用函数。
  • 构造函数概述

    Constructors
    Constructor
    Description
     
  • 方法概述

    Modifier and Type
    Method
    Description
    static com.google.genai.types.Content
    decodeContent(com.google.genai.types.Content content)
    解码内容中使用的 Base64 编码的内联数据(inline blobs)。
    static com.google.genai.types.Content
    encodeContent(com.google.genai.types.Content content)
    将内容中的二进制数据(即“inline blobs”)使用 Base64 进行编码。

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造函数详细信息

    • 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)。