MemoryContent: {
    summary?: string;
    segments?: TopicSegment[];
    entities?: Entity[];
    keyFacts?: string[];
    rawText?: string;
    [key: string]: unknown;
}

Flexible memory content - structure depends on use case.

Type declaration

  • [key: string]: unknown

    Custom fields - agent developer's schema

  • Optionalsummary?: string

    Human-readable summary

  • Optionalsegments?: TopicSegment[]

    Topic segments for granular search. Each segment can be embedded separately for precision.

  • Optionalentities?: Entity[]

    Named entities mentioned

  • OptionalkeyFacts?: string[]

    Key facts to remember

  • OptionalrawText?: string

    Raw text (if no summarization)