Files
audita/docs/internal/llm-runtime.md

1.4 KiB

Audita LLM Runtime

llm.NewRuntime assembles one captured PromptKit engine using its default catalog, Audita's embedded prompts and schemas, and optional operator sources anchored to the recorded application main context. Captured host sources and message files are passed to output collision checks. An embedded-only diagnostic construction distinguishes shipped asset failures from operator-source failures; it never replaces the requested engine.

Each resolved pipeline entry receives role-bound clients with its selected profiles and effective budgets. Clients share engine-local backend admission. The adapter uses PrepareExecution and RunPrepared on the same handle, passes Audita's per-call schema and repair budget, and decodes only validated results. PromptKit owns backend and credential selection. The adapter uses captured credential source names for artifact redaction without inspecting unrelated environment values. See the integration contract for failure behavior and the configuration reference for sources.

The observation collector tracks logical calls and execution events. Ordinary reports use compact safe outcomes; request and response evidence is optional debug material. The runner preserves ordered pipeline traversal and deterministic section collection while canceling and joining peers on fatal errors.