Deprecated API
Contents
-
Deprecated MethodsMethodDescriptionReports the deprecated plain-text continuation shim and goes away with it; use
InvocationContext.isResumable().Expected only for specific model endpoints.Expected only for specific model endpoints.Expected only for specific model endpoints.Expected only for specific model endpoints.Expected only for specific model endpoints.Back-compat shim only; migrate toRunner.runAsync(...)with an invocation id (or send a function response to the paused call). SeeResumabilityConfig.isPlainTextContinuationAutoResume().Back-compat shim for callers that deliver a resume as a plain-text turn; migrate toRunner.runAsync(userId, sessionId, invocationId, message, runConfig, stateDelta)or answer the paused call with a function response, and setResumabilityConfig.isResumable()instead; this flag will be removed.UseEvent.setFinishReason(FinishReason)withfinishReason.orElse(null)instead.UseEventActions.Builder.endOfAgent(boolean)instead.UseEventActions.endOfAgent()instead.UseEventActions.setEndOfAgent(boolean)instead.Update the map returned byEventActions.stateDelta()instead, and useEventActions.removeStateByKey(String)to remove a key.Not a real deprecation - a warn-off for application code from a seam meant for ADK's own framework and interop adapters; useSession.Builder.events(List)instead.PreferSession.immutableEvents()when reading or iterating over events (to avoidConcurrentModificationException), andSession.addEvent(Event)orSession.addEvents(Collection)when appending events.Use the version with explicit parent context instead. This method will be removed once all callers are updated.UseToolPredicate.test(BaseTool, ReadonlyContext)instead.
-
Deprecated ConstructorsConstructorDescriptionUse one of the static factory methods instead.Use
Runner.Builderinstead.UseRunner.Builderinstead.UseRunner.Builderinstead.UseRunner.Builderinstead.UseRunner.Builderinstead.
-
Deprecated Enum ConstantsEnum ConstantDescriptionConstruct the service with
InMemorySessionService.DuplicateSessionIdBehavior.REJECTinstead, which becomes the default in a future release.