类的用途(Uses of the Class)
com.google.adk.sessions.Session
Packages that use Session
Package
Description
-
**用途:** 会话(Session) 在……里面;处于……状态 com.google.adk.agents
Methods in com.google.adk.agents that return SessionMethods in com.google.adk.agents with parameters of type SessionModifier and TypeMethodDescription设置与此调用相关的会话(session)。 -
**用途:** 会话(Session) 在……里面;处于……状态 com.google.adk.memory
Methods in com.google.adk.memory with parameters of type SessionModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.CompletableBaseMemoryService.addSessionToMemory(Session session) 将一个会话添加到内存服务中。io.reactivex.rxjava3.core.CompletableFirestoreMemoryService.addSessionToMemory(Session session) 将一个会话(session)添加到内存中。io.reactivex.rxjava3.core.CompletableInMemoryMemoryService.addSessionToMemory(Session session) -
**用途:** 会话(Session) 在……里面;处于……状态 com.google.adk.runner
Methods in com.google.adk.runner with parameters of type SessionModifier and TypeMethodDescriptionprotected io.reactivex.rxjava3.core.Flowable<Event> Runner.runAsyncImpl(Session session, com.google.genai.types.Content newMessage, RunConfig runConfig, @Nullable Map<String, Object> stateDelta) 使用提供的 `Session` 对象异步运行代理程序。io.reactivex.rxjava3.core.Flowable<Event> Runner.runLive(Session session, LiveRequestQueue liveRequestQueue, RunConfig runConfig) protected io.reactivex.rxjava3.core.Flowable<Event> Runner.runLiveImpl(Session session, @Nullable LiveRequestQueue liveRequestQueue, RunConfig runConfig) 以实时模式运行代理程序,并将生成的日志事件添加到会话记录中。 -
**用途:** 会话(Session) 在……里面;处于……状态 com.google.adk.sessions
Methods in com.google.adk.sessions that return SessionMethods in com.google.adk.sessions that return types with arguments of type SessionModifier and TypeMethodDescriptiondefault io.reactivex.rxjava3.core.Single<Session> BaseSessionService.createSession(SessionKey sessionKey) 使用指定的应用程序名称和用户 ID 创建一个新的会话,会话初始状态为默认值(null),并允许服务自动生成一个唯一的会话 ID。default io.reactivex.rxjava3.core.Single<Session> BaseSessionService.createSession(SessionKey sessionKey, @Nullable Map<String, Object> state) 使用指定的参数创建一个新的会话。default io.reactivex.rxjava3.core.Single<Session> BaseSessionService.createSession(String appName, String userId) 使用指定的应用程序名称和用户 ID 创建一个新的会话,会话初始状态为默认值(null),并允许服务自动生成一个唯一的会话 ID。default io.reactivex.rxjava3.core.Single<Session> BaseSessionService.createSession(String appName, String userId, @Nullable Map<String, Object> state, @Nullable String sessionId) 使用指定的参数创建一个新的会话。io.reactivex.rxjava3.core.Single<Session> BaseSessionService.createSession(String appName, String userId, @Nullable ConcurrentMap<String, Object> state, @Nullable String sessionId) 已弃用(Deprecated)。io.reactivex.rxjava3.core.Single<Session> FirestoreSessionService.createSession(String appName, String userId, @Nullable Map<String, Object> state, @Nullable String sessionId) 在 Firestore 中创建一个新的会话。io.reactivex.rxjava3.core.Single<Session> FirestoreSessionService.createSession(String appName, String userId, @Nullable ConcurrentMap<String, Object> state, @Nullable String sessionId) 在 Firestore 中创建一个新的会话。io.reactivex.rxjava3.core.Single<Session> InMemorySessionService.createSession(String appName, String userId, @Nullable Map<String, Object> state, @Nullable String sessionId) io.reactivex.rxjava3.core.Single<Session> InMemorySessionService.createSession(String appName, String userId, @Nullable ConcurrentMap<String, Object> state, @Nullable String sessionId) io.reactivex.rxjava3.core.Single<Session> VertexAiSessionService.createSession(String appName, String userId, @Nullable Map<String, Object> state, @Nullable String sessionId) 创建一个会话,并发出相应的请求。sessionId当给定某个值时,该值会被用作其 ID。io.reactivex.rxjava3.core.Single<Session> VertexAiSessionService.createSession(String appName, String userId, @Nullable ConcurrentMap<String, Object> state, @Nullable String sessionId) default io.reactivex.rxjava3.core.Maybe<Session> BaseSessionService.getSession(SessionKey sessionKey, @Nullable GetSessionConfig config) 检索特定的会话(session),并可选择性地过滤其中包含的事件(events)。io.reactivex.rxjava3.core.Maybe<Session> BaseSessionService.getSession(String appName, String userId, String sessionId, Optional<GetSessionConfig> config) 检索特定的会话(session),并可选择性地过滤其中包含的事件(events)。io.reactivex.rxjava3.core.Maybe<Session> FirestoreSessionService.getSession(String appName, String userId, String sessionId, Optional<GetSessionConfig> configOpt) 从 Firestore 中根据appName、userId 和 sessionId 获取相应的会话信息。io.reactivex.rxjava3.core.Maybe<Session> InMemorySessionService.getSession(String appName, String userId, String sessionId, Optional<GetSessionConfig> configOpt) io.reactivex.rxjava3.core.Maybe<Session> VertexAiSessionService.getSession(String appName, String userId, String sessionId, Optional<GetSessionConfig> config) abstract com.google.common.collect.ImmutableList<Session> ListSessionsResponse.sessions()Methods in com.google.adk.sessions with parameters of type SessionModifier and TypeMethodDescriptiondefault io.reactivex.rxjava3.core.Single<Event> BaseSessionService.appendEvent(Session session, Event event) 将一个事件添加到内存中的会话对象中,并根据该事件的状态变化(如果适用的话)更新会话的状态。io.reactivex.rxjava3.core.Single<Event> FirestoreSessionService.appendEvent(Session session, Event event) 将一个事件添加到会话中,同时更新会话状态并将其数据持久化到 Firestore 中。io.reactivex.rxjava3.core.Single<Event> InMemorySessionService.appendEvent(Session session, Event event) io.reactivex.rxjava3.core.Single<Event> VertexAiSessionService.appendEvent(Session session, Event event) default io.reactivex.rxjava3.core.CompletableBaseSessionService.closeSession(Session session) 关闭会话。Method parameters in com.google.adk.sessions with type arguments of type Session -
**用途:** 会话(Session) 在……里面;处于……状态 com.google.adk.summarizer
Methods in com.google.adk.summarizer with parameters of type SessionModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.CompletableEventCompactor.compact(Session session, BaseSessionService sessionService) 将给定会话中的事件压缩在一起。io.reactivex.rxjava3.core.CompletableSlidingWindowEventCompactor.compact(Session session, BaseSessionService sessionService) 为 `SlidingWindowCompactor` 执行压缩操作。io.reactivex.rxjava3.core.CompletableTailRetentionEventCompactor.compact(Session session, BaseSessionService sessionService) -
**用途:** 会话(Session) 在……里面;处于……状态 com.google.adk.web.controller
Methods in com.google.adk.web.controller that return SessionModifier and TypeMethodDescriptionSessionController.createSession(String appName, String userId, SessionRequest body) 创建一个新的会话,该会话的 ID 由服务自动生成。SessionController.createSessionWithId(String appName, String userId, String sessionId, SessionRequest body) 根据客户端提供的特定 ID,创建一个新的会话。SessionController.getSession(String appName, String userId, String sessionId) 根据会话 ID 检索特定的会话。Methods in com.google.adk.web.controller that return types with arguments of type SessionModifier and TypeMethodDescriptionSessionController.listSessions(String appName, String userId) 列出给定应用程序和用户的所有非评估会话(即那些不属于评估流程的会话)。
BaseSessionService.createSession(String, String, Map, String)相反。