Interface AutomatedReasoningPolicyFidelityReport.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AutomatedReasoningPolicyFidelityReport.Builder,AutomatedReasoningPolicyFidelityReport>,SdkBuilder<AutomatedReasoningPolicyFidelityReport.Builder,AutomatedReasoningPolicyFidelityReport>,SdkPojo
- Enclosing class:
- AutomatedReasoningPolicyFidelityReport
@Mutable @NotThreadSafe public static interface AutomatedReasoningPolicyFidelityReport.Builder extends SdkPojo, CopyableBuilder<AutomatedReasoningPolicyFidelityReport.Builder,AutomatedReasoningPolicyFidelityReport>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AutomatedReasoningPolicyFidelityReport.BuilderaccuracyScore(Double accuracyScore)A score from 0.0 to 1.0 indicating how accurate the policy rules are relative to the source documents.AutomatedReasoningPolicyFidelityReport.BuildercoverageScore(Double coverageScore)A score from 0.0 to 1.0 indicating how well the policy covers the statements in the source documents.AutomatedReasoningPolicyFidelityReport.BuilderdocumentSources(Collection<AutomatedReasoningPolicyReportSourceDocument> documentSources)A list of source documents with their content broken down into atomic statements and annotated with line numbers for precise referencing.AutomatedReasoningPolicyFidelityReport.BuilderdocumentSources(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.AutomatedReasoningPolicyFidelityReport.BuilderdocumentSources(AutomatedReasoningPolicyReportSourceDocument... documentSources)A list of source documents with their content broken down into atomic statements and annotated with line numbers for precise referencing.AutomatedReasoningPolicyFidelityReport.BuilderruleReports(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.AutomatedReasoningPolicyFidelityReport.BuildervariableReports(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
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
coverageScore
AutomatedReasoningPolicyFidelityReport.Builder coverageScore(Double 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
AutomatedReasoningPolicyFidelityReport.Builder accuracyScore(Double 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 to#documentSources(List.) - 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:
#documentSources(java.util.Collection)
-
-