Uses of Class
com.google.adk.agents.InvocationContext.Builder
Packages that use InvocationContext.Builder
-
Uses of InvocationContext.Builder in com.google.adk.agents
Methods in com.google.adk.agents that return InvocationContext.BuilderModifier and TypeMethodDescriptionSets the agent being invoked.InvocationContext.Builder.artifactService(BaseArtifactService artifactService) Sets the artifact service for persisting artifacts.Sets the branch ID for the invocation.Deprecated, for removal: This API element is subject to removal in a future version.static InvocationContext.BuilderInvocationContext.builder()Returns a newInvocationContext.Builderfor creatingInvocationContextinstances.InvocationContext.Builder.callbackContextData(Map<String, Object> callbackContextData) Sets the callback context data for the invocation.InvocationContext.Builder.contextCacheConfig(ContextCacheConfig contextCacheConfig) Sets the context cache configuration for the current agent run.InvocationContext.Builder.endInvocation(boolean endInvocation) Sets whether this invocation should be ended.InvocationContext.Builder.eventsCompactionConfig(EventsCompactionConfig eventsCompactionConfig) Sets the events compaction configuration for the current agent run.InvocationContext.Builder.invocationId(String invocationId) Sets the unique ID for the invocation.InvocationContext.Builder.liveRequestQueue(LiveRequestQueue liveRequestQueue) Sets the queue for managing live requests.InvocationContext.Builder.liveRequestQueue(Optional<LiveRequestQueue> liveRequestQueue) Deprecated, for removal: This API element is subject to removal in a future version.InvocationContext.Builder.memoryService(BaseMemoryService memoryService) Sets the memory service for accessing agent memory.InvocationContext.Builder.pluginManager(Plugin pluginManager) Sets the plugin manager for accessing tools and plugins.Sets the configuration for the current agent run.Sets the session associated with this invocation.InvocationContext.Builder.sessionService(BaseSessionService sessionService) Sets the session service for managing session state.InvocationContext.toBuilder()Returns aInvocationContext.Builderinitialized with the values of this instance.InvocationContext.Builder.userContent(com.google.genai.types.Content userContent) Sets the user content that triggered this invocation.InvocationContext.Builder.userContent(Optional<com.google.genai.types.Content> userContent) Sets the user content that triggered this invocation.Constructors in com.google.adk.agents with parameters of type InvocationContext.Builder
InvocationContext.Builder.branch(String)instead.