类:LiveRequestQueue
java.lang.Object
com.google.adk.agents.LiveRequestQueue
一个包含多个实时请求的队列,这些请求将被发送到模型进行处理。
-
构造函数概述
Constructors -
方法概述
Modifier and TypeMethodDescriptionvoidclose()voidcontent(com.google.genai.types.Content content) voidcontent(com.google.genai.types.Content content, boolean partial) 将内容发送给模型;可以选择以“部分更新”的方式发送该内容,从而保留当前轮次(即用户仍可以继续进行操作)的状态。io.reactivex.rxjava3.core.Flowable<LiveRequest> get()voidrealtime(com.google.genai.types.Blob blob) voidsend(LiveRequest request)
-
构造函数详细信息
-
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 sendpartial- 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
-
get
-