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 interpret_parse_failed.ex
Raw

lib/gralkor/interpret_parse_failed.ex

defmodule Gralkor.InterpretParseFailed do
@moduledoc """
Raised when the LLM's interpret response cannot be parsed against the
structured-output schema — typically because `:output_token_budget` was too
small and the model's answer truncated mid-list, but also for any other
schema mismatch.
Distinct from `RuntimeError` so callers can recover (e.g. retry recall with
a larger budget, or surface a typed error to the user) without catching
every internal failure.
See `ex-interpret` in `gralkor/TEST_TREES.md`.
"""
defexception [:message, :raw_response]
@impl true
def exception(opts) do
raw = Keyword.get(opts, :raw_response)
%__MODULE__{
message:
Keyword.get(
opts,
:message,
"interpret response could not be parsed against the schema (raw: #{inspect(raw)})"
),
raw_response: raw
}
end
end