Class: RAGAuditCollector
Defined in: packages/agentos/src/rag/audit/RAGAuditCollector.ts:179
Request-scoped audit collector. Create one per retrieveContext() call.
NOT a singleton — scoped to a single pipeline execution.
Constructors
Constructor
new RAGAuditCollector(
options):RAGAuditCollector
Defined in: packages/agentos/src/rag/audit/RAGAuditCollector.ts:185
Parameters
options
Returns
RAGAuditCollector
Methods
finalize()
finalize():
RAGAuditTrail
Defined in: packages/agentos/src/rag/audit/RAGAuditCollector.ts:199
Finalize and return the complete audit trail with computed summary.
Returns
startOperation()
startOperation(
type):RAGOperationHandle
Defined in: packages/agentos/src/rag/audit/RAGAuditCollector.ts:192
Start tracking a new operation. Returns a fluent handle.
Parameters
type
"embedding" | "vector_query" | "graph_local" | "graph_global" | "ingest" | "rerank"