Orchestrate one generalisation run: hypothesise generalisations from a transcript, search existing generalisations to rule candidates in or out, evaluate relationships, and persist the strongest.
Pure orchestration — all dependencies (hypothesise LLM call, evaluate LLM
call, search, add_episode, remove_episode) are passed as functions in
opts. Production wiring lives in Gralkor.Client.Native.
See ex-generalise in TEST_TREES.md.
Summary
Functions
Schema for the evaluate LLM call. Returns a decision per hypothesis relative to any existing generalisations found via search.
Run the full generalisation pipeline against a flushed transcript.
Schema for the hypothesise LLM call. Returns a list of candidate generalisations with confidence scores.
Types
Functions
Schema for the evaluate LLM call. Returns a decision per hypothesis relative to any existing generalisations found via search.
Run the full generalisation pipeline against a flushed transcript.
Returns :ok (best-effort — failures are logged but do not propagate),
or {:error, term()} when no required opts keys are provided.
Schema for the hypothesise LLM call. Returns a list of candidate generalisations with confidence scores.