Action Retrieval
Action Retrieval is the explicit layer that answers the runtime question directly:
What should the agent do next, and what evidence supports that move?
In Aionis, this is not hidden inside a generic memory response. It is exposed as its own retrieval surface.
Action Retrieval turns execution memory into a concrete next-step recommendation with evidence, source kind, and confidence. It is the shortest path from past execution to the next useful move.
Why this matters
Many memory systems stop at recall.
They can bring back relevant text, vectors, or messages, but they still leave the host to infer:
- which tool to use
- which file to touch
- what the first real action should be
Action Retrieval closes that gap. It turns memory into an explicit action recommendation instead of leaving the last step to guesswork.
What comes back
The important fields are:
selected_toolrecommended_file_pathrecommended_next_actiontool_source_kindevidence.entriesuncertainty
The source kind tells you where the recommendation came from. In practice that usually means one of:
- stable workflow reuse
- trusted pattern reuse
- persisted policy memory
- a blended result across multiple strong signals
Minimal example
const retrieval = await aionis.memory.actionRetrieval({
tenant_id: "default",
scope: "repair-flow",
query_text: "repair billing retry serializer bug",
context: {
goal: "repair billing retry serializer bug",
task_kind: "repair_billing_retry",
},
candidates: ["bash", "edit", "test"],
});Read these fields first:
retrieval.selected_toolretrieval.recommended_file_pathretrieval.recommended_next_actionretrieval.evidence.entriesretrieval.uncertainty
How it fits into the runtime
Action Retrieval sits between stored execution evidence and the surfaces that need to decide whether to act immediately or gather more context first.
Related surfaces
memory.actionRetrieval(...)memory.experienceIntelligence(...)memory.taskStart(...)memory.planningContext(...)
If you want to understand what happens when retrieval is not strong enough, continue to Uncertainty and Gates.