Packages

Jido plugin and actions that adapt the Gralkor memory server into a Jido agent. Drop in the plugin for recall-on-query and capture-on-completion; add the actions to your ReAct tools list for explicit memory_search / memory_add.

Current section

Files

Jump to
jido_gralkor lib gralkor ingest.ex
Raw

lib/gralkor/ingest.ex

defmodule Gralkor.Ingest do
@moduledoc """
A request to ingest content through a registered `Gralkor.Lens`.
`operator_id` identifies the operator whose local Lens partition is used;
global Lenses ignore it for storage placement. `lens` is the registered
Lens name. Gralkor resolves that definition before invoking its ingestion
process, so callers provide content and source context rather than ontology
or partition details.
"""
@enforce_keys [:operator_id, :lens, :content, :source_description]
defstruct [:operator_id, :lens, :content, :source_description]
@type t :: %__MODULE__{
operator_id: String.t(),
lens: String.t(),
content: String.t(),
source_description: String.t()
}
end