# Uses of Record Class
com.google.adk.summarizer.EventsCompactionConfig

Packages that use EventsCompactionConfig
Package
Description
com.google.adk.agents
com.google.adk.apps
com.google.adk.runner
com.google.adk.summarizer

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

  Methods in com.google.adk.agents that return types with arguments of type EventsCompactionConfig
  Modifier and Type
  Method
  Description
  `Optional<EventsCompactionConfig>`
  InvocationContext.`eventsCompactionConfig()`
  Returns the events compaction configuration for the current agent run.
  Methods in com.google.adk.agents with parameters of type EventsCompactionConfig
  Modifier and Type
  Method
  Description
  `InvocationContext.Builder`
  InvocationContext.Builder.`eventsCompactionConfig(@Nullable EventsCompactionConfig eventsCompactionConfig)`
  Sets the events compaction configuration for the current agent run.

- ## Uses of EventsCompactionConfig in com.google.adk.apps

  Methods in com.google.adk.apps that return EventsCompactionConfig
  Modifier and Type
  Method
  Description
  `@Nullable EventsCompactionConfig`
  App.`eventsCompactionConfig()`
  Methods in com.google.adk.apps with parameters of type EventsCompactionConfig
  Modifier and Type
  Method
  Description
  `App.Builder`
  App.Builder.`eventsCompactionConfig(EventsCompactionConfig eventsCompactionConfig)`

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

  Constructors in com.google.adk.runner with parameters of type EventsCompactionConfig
  Modifier
  Constructor
  Description
  `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 EventsCompactionConfig in com.google.adk.summarizer

  Methods in com.google.adk.summarizer that return EventsCompactionConfig
  Modifier and Type
  Method
  Description
  `abstract EventsCompactionConfig`
  EventsCompactionConfig.Builder.`build()`
  Constructors in com.google.adk.summarizer with parameters of type EventsCompactionConfig
  Modifier
  Constructor
  Description
  ``
  `SlidingWindowEventCompactor(EventsCompactionConfig config)`