# Uses of Interface
com.google.adk.memory.BaseMemoryService

Packages that use BaseMemoryService
Package
Description
com.google.adk.a2a.executor
com.google.adk.agents
com.google.adk.memory
com.google.adk.runner
com.google.adk.web
com.google.adk.web.service

- ## Uses of BaseMemoryService in com.google.adk.a2a.executor

  Methods in com.google.adk.a2a.executor with parameters of type BaseMemoryService
  Modifier and Type
  Method
  Description
  `AgentExecutor.Builder`
  AgentExecutor.Builder.`memoryService(BaseMemoryService memoryService)`

- ## Uses of BaseMemoryService in com.google.adk.agents

  Methods in com.google.adk.agents that return BaseMemoryService
  Modifier and Type
  Method
  Description
  `BaseMemoryService`
  InvocationContext.`memoryService()`
  Returns the memory service for accessing agent memory.
  Methods in com.google.adk.agents with parameters of type BaseMemoryService
  Modifier and Type
  Method
  Description
  `InvocationContext.Builder`
  InvocationContext.Builder.`memoryService(BaseMemoryService memoryService)`
  Sets the memory service for accessing agent memory.

- ## Uses of BaseMemoryService in com.google.adk.memory

  Classes in com.google.adk.memory that implement BaseMemoryService
  Modifier and Type
  Class
  Description
  `class`
  `FirestoreMemoryService`
  FirestoreMemoryService is an implementation of BaseMemoryService that uses Firestore to store and retrieve session memory entries.
  `final class`
  `InMemoryMemoryService`
  An in-memory memory service for prototyping purposes only.

- ## Uses of BaseMemoryService in com.google.adk.runner

  Methods in com.google.adk.runner that return BaseMemoryService
  Modifier and Type
  Method
  Description
  `@Nullable BaseMemoryService`
  Runner.`memoryService()`
  Methods in com.google.adk.runner with parameters of type BaseMemoryService
  Modifier and Type
  Method
  Description
  `Runner.Builder`
  Runner.Builder.`memoryService(BaseMemoryService memoryService)`
  Constructors in com.google.adk.runner with parameters of type BaseMemoryService
  Modifier
  Constructor
  Description
  ``
  `Runner(BaseAgent agent, String appName, BaseArtifactService artifactService, BaseSessionService sessionService, @Nullable BaseMemoryService memoryService)`
  Deprecated.
  Use `Runner.Builder` instead.
  ``
  `Runner(BaseAgent agent, String appName, BaseArtifactService artifactService, BaseSessionService sessionService, @Nullable BaseMemoryService memoryService, List<? extends Plugin> plugins)`
  Deprecated.
  Use `Runner.Builder` instead.
  `protected`
  `Runner(BaseAgent agent, String appName, BaseArtifactService artifactService, BaseSessionService sessionService, @Nullable BaseMemoryService memoryService, List<? extends Plugin> plugins, @Nullable EventsCompactionConfig eventsCompactionConfig, @Nullable ContextCacheConfig contextCacheConfig)`
  Deprecated.
  Use `Runner.Builder` instead.

- ## Uses of BaseMemoryService in com.google.adk.web

  Methods in com.google.adk.web that return BaseMemoryService
  Modifier and Type
  Method
  Description
  `BaseMemoryService`
  AdkWebServer.`memoryService()`
  Provides the singleton instance of the MemoryService (InMemory).

- ## Uses of BaseMemoryService in com.google.adk.web.service

  Constructors in com.google.adk.web.service with parameters of type BaseMemoryService
  Modifier
  Constructor
  Description
  ``
  `RunnerService(AgentLoader agentProvider, BaseArtifactService artifactService, BaseSessionService sessionService, BaseMemoryService memoryService, List<BasePlugin> extraPlugins)`