# Uses of Class
com.google.adk.agents.InvocationContext.Builder

Packages that use InvocationContext.Builder
Package
Description
com.google.adk.agents

- ## Uses of InvocationContext.Builder in com.google.adk.agents

  Methods in com.google.adk.agents that return InvocationContext.Builder
  Modifier and Type
  Method
  Description
  `InvocationContext.Builder`
  InvocationContext.Builder.`agent(BaseAgent agent)`
  Sets the agent being invoked.
  `InvocationContext.Builder`
  InvocationContext.Builder.`artifactService(BaseArtifactService artifactService)`
  Sets the artifact service for persisting artifacts.
  `InvocationContext.Builder`
  InvocationContext.Builder.`branch(@Nullable String branch)`
  Sets the branch ID for the invocation.
  `static InvocationContext.Builder`
  InvocationContext.`builder()`
  Returns a new `InvocationContext.Builder` for creating `InvocationContext` instances.
  `InvocationContext.Builder`
  InvocationContext.Builder.`callbackContextData(Map<String,Object> callbackContextData)`
  Sets the callback context data for the invocation.
  `InvocationContext.Builder`
  InvocationContext.Builder.`contextCacheConfig(@Nullable ContextCacheConfig contextCacheConfig)`
  Sets the context cache configuration for the current agent run.
  `InvocationContext.Builder`
  InvocationContext.Builder.`endInvocation(boolean endInvocation)`
  Sets whether this invocation should be ended.
  `InvocationContext.Builder`
  InvocationContext.Builder.`eventsCompactionConfig(@Nullable EventsCompactionConfig eventsCompactionConfig)`
  Sets the events compaction configuration for the current agent run.
  `InvocationContext.Builder`
  InvocationContext.Builder.`invocationId(String invocationId)`
  Sets the unique ID for the invocation.
  `InvocationContext.Builder`
  InvocationContext.Builder.`liveRequestQueue(@Nullable LiveRequestQueue liveRequestQueue)`
  Sets the queue for managing live requests.
  `InvocationContext.Builder`
  InvocationContext.Builder.`memoryService(BaseMemoryService memoryService)`
  Sets the memory service for accessing agent memory.
  `InvocationContext.Builder`
  InvocationContext.Builder.`pluginManager(Plugin pluginManager)`
  Sets the plugin manager for accessing tools and plugins.
  `InvocationContext.Builder`
  InvocationContext.Builder.`runConfig(RunConfig runConfig)`
  Sets the configuration for the current agent run.
  `InvocationContext.Builder`
  InvocationContext.Builder.`session(Session session)`
  Sets the session associated with this invocation.
  `InvocationContext.Builder`
  InvocationContext.Builder.`sessionService(BaseSessionService sessionService)`
  Sets the session service for managing session state.
  `InvocationContext.Builder`
  InvocationContext.`toBuilder()`
  Returns a `InvocationContext.Builder` initialized with the values of this instance.
  `InvocationContext.Builder`
  InvocationContext.Builder.`userContent(@Nullable 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
  Modifier
  Constructor
  Description
  `protected`
  `InvocationContext(InvocationContext.Builder builder)`