# Class ContextFilterPlugin.Builder

java.lang.Object
com.google.adk.plugins.ContextFilterPlugin.Builder

Enclosing class:
  `ContextFilterPlugin`

public static class ContextFilterPlugin.Builder extends Object
Builder for `ContextFilterPlugin`.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Builder()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ContextFilterPlugin`
  `build()`
  `ContextFilterPlugin.Builder`
  `customFilter(UnaryOperator<List<com.google.genai.types.Content>> customFilter)`
  `ContextFilterPlugin.Builder`
  `name(String name)`
  `ContextFilterPlugin.Builder`
  `numInvocationsToKeep(int numInvocationsToKeep)`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Builder

    public Builder()

- ## Method Details

  - ### numInvocationsToKeep

    @CanIgnoreReturnValue public ContextFilterPlugin.Builder numInvocationsToKeep(int numInvocationsToKeep)

  - ### customFilter

    @CanIgnoreReturnValue public ContextFilterPlugin.Builder customFilter(UnaryOperator<List<com.google.genai.types.Content>> customFilter)

  - ### name

    @CanIgnoreReturnValue public ContextFilterPlugin.Builder name(String name)

  - ### build

    public ContextFilterPlugin build()