Class MemoryEntry

java.lang.Object
com.google.adk.memory.MemoryEntry

public abstract class MemoryEntry extends Object
Represents one memory entry.
  • Constructor Details

    • MemoryEntry

      public MemoryEntry()
  • Method Details

    • content

      public abstract com.google.genai.types.Content content()
      Returns the main content of the memory.
    • author

      @Nullable public abstract String author()
      Returns the author of the memory, or null if not set.
    • timestamp

      @Nullable public abstract String timestamp()
      Returns the timestamp when the original content of this memory happened, or null if not set.

      This string will be forwarded to LLM. Preferred format is ISO 8601 format

    • builder

      public static MemoryEntry.Builder builder()
      Returns a new builder for creating a MemoryEntry.
    • toBuilder

      public abstract MemoryEntry.Builder toBuilder()
      Creates a new builder with a copy of this entry's values.
      Returns:
      a new MemoryEntry.Builder instance.