openvibe-sdk/memory
Generated at from
openvibe-contracts v0.454.0 and
openvibe-sdk v0.193.0.
From types/memory.d.ts (both). Declarations are shown verbatim.
type Kind
export type Kind = 'preference' | 'fact' | 'project_rule' | 'procedure' | 'decision' | 'lesson';interface NoteIn
export interface NoteIn { text: string; kind?: Kind; scope?: string; confidence?: number; /** the person said it, in their own words (the store keeps it active) */ person_said?: boolean }interface Note
export interface Note { id?: string; text: string; kind?: Kind; scope?: string; [k: string]: unknown }interface CallOptions
export interface CallOptions { signal?: AbortSignal }interface MemoryClient
export interface MemoryClient {
remember(person: string, items: NoteIn | string | Array<NoteIn | string>, o?: CallOptions & { scope?: string; idempotencyKey?: string }): Promise<{ items?: Note[]; [k: string]: unknown }>;
recall(person: string, q: string, o?: CallOptions & { scopes?: string[] }): Promise<{ items: Note[]; count: number }>;
profile(person: string, o?: CallOptions & { scope?: string }): Promise<{ profile: unknown }>;
}export export function createMemoryClient(client: { json(opts: Reco
export function createMemoryClient(client: { json(opts: Record<string, unknown>): Promise<any> }, defaults?: { baseUrl?: string }): MemoryClient;export export const KINDS: readonly Kind[];
export const KINDS: readonly Kind[];export export const MAX_BATCH: number;
export const MAX_BATCH: number;export export const MEMORY_PAGE: string;
export const MEMORY_PAGE: string;