Skip to main content

Module runtime

Module runtime 

Source
Expand description

Agent runtime — the core perceive-reason-act loop.

Orchestrates perceive (recall) → reason (LLM) → act (tools) → guard (Jidoka). See: arXiv:2512.10350 (loop dynamics), arXiv:2501.09136 (agentic RAG).

Functions§

run_agent_loop
Run the agent loop to completion (single-turn, no history).
run_agent_loop_with_nudge
PMAT-177: Agent loop with tool-use nudge. If first turn has no tool calls, retries once.
run_agent_turn
Run one agent turn with full conversation history (multi-turn).