Vibe.Memory (vibe v0.2.2)

Copy Markdown View Source

Curated, durable memory for profile, workspace, session, and agent scopes.

Summary

Types

entry()

@type entry() :: %{id: String.t(), scope: scope(), text: String.t(), at: DateTime.t()}

scope()

@type scope() ::
  :global
  | :user
  | {:workspace, String.t()}
  | {:session, String.t()}
  | {:agent, String.t()}

Functions

add(scope, text)

@spec add(scope(), String.t()) :: {:ok, entry()} | {:error, String.t()}

clear(scope)

@spec clear(scope()) :: :ok | {:error, term()}

context_block(query, opts \\ [])

@spec context_block(
  String.t(),
  keyword()
) :: String.t()

list(scope)

@spec list(scope()) :: [entry()]

remove(scope, id)

@spec remove(scope(), String.t()) :: :ok | {:error, :not_found | term()}

search(query, opts \\ [])

@spec search(
  String.t(),
  keyword()
) :: [entry()]