GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • ADK for TypeScript: API Reference

This view

  • Original page
  • New address

GeezerVison is showing adk.dev — MemoryEntry | ADK for TypeScript: API Reference - v2.5.0

  • MemoryEntry

Interface MemoryEntry

Represents one memory entry retrieved from a memory service.

Memory entries are created from session events and surfaced to the agent to provide relevant context from past interactions.

interface MemoryEntry {
    author?: string;
    content: Content;
    customMetadata?: Record<string, unknown>;
    id?: string;
    timestamp?: string;
}
  • Defined in core/src/memory/memory_entry.ts:15

Properties

Optionalauthor

author?: string

The author of the memory. Common values are 'user' and 'model', but this can also be the name of an agent when the content was produced by a named sub-agent.

  • Defined in core/src/memory/memory_entry.ts:43

content

content: Content

The content of the memory entry, as originally produced during a session.

  • Defined in core/src/memory/memory_entry.ts:19

OptionalcustomMetadata

customMetadata?: Record<string, unknown>

Optional custom metadata associated with the memory.

A service that also accepts request-level metadata merges this on top of it, so a key declared here wins over the same key on the request.

  • Defined in core/src/memory/memory_entry.ts:36

Optionalid

id?: string

The unique identifier of the memory.

When set on an entry passed to addMemory, a service that supports caller-chosen identifiers uses it as the last component of the created memory's resource name instead of generating one.

  • Defined in core/src/memory/memory_entry.ts:28

Optionaltimestamp

timestamp?: string

The time when the original content was produced. Forwarded to the LLM as part of the memory context. Preferred format is ISO 8601 (e.g. '2024-01-15T10:30:00.000Z').

  • Defined in core/src/memory/memory_entry.ts:50
Properties
authorcontentcustomMetadataidtimestamp
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.