Class MemoryEntry
java.lang.Object
com.google.adk.memory.MemoryEntry
Represents one memory entry.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Stringauthor()Returns the author of the memory, or null if not set.static MemoryEntry.Builderbuilder()Returns a new builder for creating aMemoryEntry.abstract com.google.genai.types.Contentcontent()Returns the main content of the memory.abstract StringReturns the timestamp when the original content of this memory happened, or null if not set.abstract MemoryEntry.BuilderCreates a new builder with a copy of this entry's values.
-
Constructor Details
-
MemoryEntry
public MemoryEntry()
-
-
Method Details
-
content
public abstract com.google.genai.types.Content content()Returns the main content of the memory. -
author
Returns the author of the memory, or null if not set. -
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
Returns a new builder for creating aMemoryEntry. -
toBuilder
Creates a new builder with a copy of this entry's values.- Returns:
- a new
MemoryEntry.Builderinstance.
-