2025-02-22 20:51:06 +01:00
|
|
|
using AIStudio.Tools.RAG;
|
|
|
|
|
|
|
|
|
|
namespace AIStudio.Agents;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represents the result of a retrieval context validation.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="Decision">Whether the retrieval context is useful or not.</param>
|
|
|
|
|
/// <param name="Reason">The reason for the decision.</param>
|
|
|
|
|
/// <param name="Confidence">The confidence of the decision.</param>
|
2026-10-26 10:00:01 +01:00
|
|
|
/// <param name="RetrievalContext">The retrieval context that was validated, as it is prepared for the AI.</param>
|
|
|
|
|
public readonly record struct RetrievalContextValidationResult(bool Decision, string Reason, float Confidence, PreparedRetrievalContext? RetrievalContext) : IConfidence;
|