Skip to content

latent.agents.rag_config

Pydantic config model for RAG-enabled agents.

Classes

RAGAgentConfig

RAGAgentConfig()

Validated configuration for RAG pipeline components.

Mirrors the nested config dict accepted by PipelineBuilder.build(), but provides Pydantic validation and sensible defaults so downstream agents can declare config without wiring logic.

Methods

RAGAgentConfig.to_pipeline_config

to_pipeline_config() -> dict[str, Any]

Convert to the nested dict format expected by PipelineBuilder.build().

Excludes keys whose value is None so PipelineBuilder sees a clean config.