using AIStudio.Chat; using AIStudio.Provider; using AIStudio.Tools.RAG; namespace AIStudio.AIOperations.RetrievalContextValidation; /// /// The passages found for a prompt, for a model to judge whether they help with it. /// /// The system prompt of the chat. /// The last prompt of the user. /// The passages to judge, prepared for the AI and thus already filtered for prompt injections. /// The confidence level the chat requires of every provider which reads its data. public sealed record RetrievalContextValidationRequest(string SystemPrompt, IContent LastUserPrompt, IReadOnlyList RetrievalContexts, ConfidenceLevel RequiredConfidence);