Interface AutomatedReasoningPolicyFidelityReport.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AutomatedReasoningPolicyFidelityReport.Builder,,AutomatedReasoningPolicyFidelityReport> SdkBuilder<AutomatedReasoningPolicyFidelityReport.Builder,,AutomatedReasoningPolicyFidelityReport> SdkPojo
- Enclosing class:
AutomatedReasoningPolicyFidelityReport
-
Method Summary
Modifier and TypeMethodDescriptionaccuracyScore(Double accuracyScore) A score from 0.0 to 1.0 indicating how accurate the policy rules are relative to the source documents.coverageScore(Double coverageScore) A score from 0.0 to 1.0 indicating how well the policy covers the statements in the source documents.documentSources(Collection<AutomatedReasoningPolicyReportSourceDocument> documentSources) A list of source documents with their content broken down into atomic statements and annotated with line numbers for precise referencing.documentSources(Consumer<AutomatedReasoningPolicyReportSourceDocument.Builder>... documentSources) A list of source documents with their content broken down into atomic statements and annotated with line numbers for precise referencing.documentSources(AutomatedReasoningPolicyReportSourceDocument... documentSources) A list of source documents with their content broken down into atomic statements and annotated with line numbers for precise referencing.ruleReports(Map<String, AutomatedReasoningPolicyRuleReport> ruleReports) A mapping from rule identifiers to detailed fidelity reports for each rule, showing which source statements ground each rule and how accurate it is.variableReports(Map<String, AutomatedReasoningPolicyVariableReport> variableReports) A mapping from variable names to detailed fidelity reports for each variable, showing which source statements ground each variable and how accurate it is.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
coverageScore
A score from 0.0 to 1.0 indicating how well the policy covers the statements in the source documents. A higher score means more of the source content is represented in the policy.
- Parameters:
coverageScore- A score from 0.0 to 1.0 indicating how well the policy covers the statements in the source documents. A higher score means more of the source content is represented in the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accuracyScore
A score from 0.0 to 1.0 indicating how accurate the policy rules are relative to the source documents. A higher score means the policy rules more faithfully represent the source material.
- Parameters:
accuracyScore- A score from 0.0 to 1.0 indicating how accurate the policy rules are relative to the source documents. A higher score means the policy rules more faithfully represent the source material.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleReports
AutomatedReasoningPolicyFidelityReport.Builder ruleReports(Map<String, AutomatedReasoningPolicyRuleReport> ruleReports) A mapping from rule identifiers to detailed fidelity reports for each rule, showing which source statements ground each rule and how accurate it is.
- Parameters:
ruleReports- A mapping from rule identifiers to detailed fidelity reports for each rule, showing which source statements ground each rule and how accurate it is.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
variableReports
AutomatedReasoningPolicyFidelityReport.Builder variableReports(Map<String, AutomatedReasoningPolicyVariableReport> variableReports) A mapping from variable names to detailed fidelity reports for each variable, showing which source statements ground each variable and how accurate it is.
- Parameters:
variableReports- A mapping from variable names to detailed fidelity reports for each variable, showing which source statements ground each variable and how accurate it is.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentSources
AutomatedReasoningPolicyFidelityReport.Builder documentSources(Collection<AutomatedReasoningPolicyReportSourceDocument> documentSources) A list of source documents with their content broken down into atomic statements and annotated with line numbers for precise referencing.
- Parameters:
documentSources- A list of source documents with their content broken down into atomic statements and annotated with line numbers for precise referencing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentSources
AutomatedReasoningPolicyFidelityReport.Builder documentSources(AutomatedReasoningPolicyReportSourceDocument... documentSources) A list of source documents with their content broken down into atomic statements and annotated with line numbers for precise referencing.
- Parameters:
documentSources- A list of source documents with their content broken down into atomic statements and annotated with line numbers for precise referencing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentSources
AutomatedReasoningPolicyFidelityReport.Builder documentSources(Consumer<AutomatedReasoningPolicyReportSourceDocument.Builder>... documentSources) A list of source documents with their content broken down into atomic statements and annotated with line numbers for precise referencing.
This is a convenience method that creates an instance of theAutomatedReasoningPolicyReportSourceDocument.Builderavoiding the need to create one manually viaAutomatedReasoningPolicyReportSourceDocument.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todocumentSources(List<AutomatedReasoningPolicyReportSourceDocument>).- Parameters:
documentSources- a consumer that will call methods onAutomatedReasoningPolicyReportSourceDocument.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-