Defines data structures for observing and delivering memory payloads between agents. Use this to standardize communication protocols for AI agent memory systems.
// Source: https://github.com/first-fluke/oh-my-agent | License: MIT | Copyright 2026 Eunkwang Shin, Gahyun Kim
// Provided via justclaw.it.com; keep this notice with the code.
export interface MemoryObservePayload {
sessionId: string;
content: string;
source: string;
/** Original project context, preserved when a retry runs from another cwd. */
projectDir?: string;
/** Original delivery profile; a provider with a different profile rejects it. */
profile?: string;
}
/** Public routing identity only. Credentials must never be included. */
export interface MemoryDeliveryIdentity {
endpoint?: string | null;
workspace?: string;
session?: string;
/** Stable identity for explicitly injected providers, including test doubles. */
identity?: string;
}
export interface Memo
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key