类:LiveRequestQueue

java.lang.Object
com.google.adk.agents.LiveRequestQueue

public final class LiveRequestQueue extends Object
一个包含多个实时请求的队列,这些请求将被发送到模型进行处理。
  • 构造函数概述

    Constructors
    Constructor
    Description
     
  • 方法概述

    Modifier and Type
    Method
    Description
    void
     
    void
    content(com.google.genai.types.Content content)
     
    void
    content(com.google.genai.types.Content content, boolean partial)
    将内容发送给模型;可以选择以“部分更新”的方式发送该内容,从而保留当前轮次(即用户仍可以继续进行操作)的状态。
    io.reactivex.rxjava3.core.Flowable<LiveRequest>
    get()
     
    void
    realtime(com.google.genai.types.Blob blob)
     
    void
    send(LiveRequest request)
     

    Methods inherited from class Object

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

    • LiveRequestQueue

      public LiveRequestQueue()
  • 方法详细信息(Method Details)

    • close

      public void close()
    • content

      public void content(com.google.genai.types.Content content)
    • content

      public void content(com.google.genai.types.Content content, boolean partial)
      将内容发送给模型;可以选择以“部分更新”的方式发送该内容,从而保留当前轮次(即用户仍可以继续进行操作)的状态。
      Parameters:
      content - the content to send
      partial - whether this content is a partial update that does not complete the current turn
    • realtime

      public void realtime(com.google.genai.types.Blob blob)
    • send

      public void send(LiveRequest request)
    • get

      public io.reactivex.rxjava3.core.Flowable<LiveRequest> get()