// lc-agents/src/crag/types.rs
//! Result types for [`crate::crag::CorrectiveRAGAgent`].
uselc_vector_stores::Document;/// Result of a CRAG invocation.
#[derive(Debug, Clone)]pubstructCRAGResult{/// The generated answer.
pubanswer: String,
/// Whether the answer is grounded in the source documents.
pubgrounded:bool,
/// Source documents used to generate the answer.
pubsources:Vec<Document>,
/// Relevance grade scores for each source document.
pubgrade_scores:Vec<f64>,
/// Relevance reasoning from the grader for each source document.
pubgrade_reasoning:Vec<Option<String>>,
}