import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetAutomatedReasoningPolicyTestResultRequest, GetAutomatedReasoningPolicyTestResultResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link GetAutomatedReasoningPolicyTestResultCommand}. */ export interface GetAutomatedReasoningPolicyTestResultCommandInput extends GetAutomatedReasoningPolicyTestResultRequest { } /** * @public * * The output of {@link GetAutomatedReasoningPolicyTestResultCommand}. */ export interface GetAutomatedReasoningPolicyTestResultCommandOutput extends GetAutomatedReasoningPolicyTestResultResponse, __MetadataBearer { } declare const GetAutomatedReasoningPolicyTestResultCommand_base: { new (input: GetAutomatedReasoningPolicyTestResultCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetAutomatedReasoningPolicyTestResultCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Retrieves the test result for a specific Automated Reasoning policy test. Returns detailed validation findings and execution status.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { BedrockClient, GetAutomatedReasoningPolicyTestResultCommand } from "@aws-sdk/client-bedrock"; // ES Modules import * // const { BedrockClient, GetAutomatedReasoningPolicyTestResultCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import * // import type { BedrockClientConfig } from "@aws-sdk/client-bedrock"; * const config = {}; // type is BedrockClientConfig * const client = new BedrockClient(config); * const input = { // GetAutomatedReasoningPolicyTestResultRequest * policyArn: "STRING_VALUE", // required * buildWorkflowId: "STRING_VALUE", // required * testCaseId: "STRING_VALUE", // required * }; * const command = new GetAutomatedReasoningPolicyTestResultCommand(input); * const response = await client.send(command); * // { // GetAutomatedReasoningPolicyTestResultResponse * // testResult: { // AutomatedReasoningPolicyTestResult * // testCase: { // AutomatedReasoningPolicyTestCase * // testCaseId: "STRING_VALUE", // required * // guardContent: "STRING_VALUE", // required * // queryContent: "STRING_VALUE", * // expectedAggregatedFindingsResult: "VALID" || "INVALID" || "SATISFIABLE" || "IMPOSSIBLE" || "TRANSLATION_AMBIGUOUS" || "TOO_COMPLEX" || "NO_TRANSLATION", * // createdAt: new Date("TIMESTAMP"), // required * // updatedAt: new Date("TIMESTAMP"), // required * // confidenceThreshold: Number("double"), * // }, * // policyArn: "STRING_VALUE", // required * // testRunStatus: "NOT_STARTED" || "SCHEDULED" || "IN_PROGRESS" || "COMPLETED" || "FAILED", // required * // testFindings: [ // AutomatedReasoningCheckFindingList * // { // AutomatedReasoningCheckFinding Union: only one key present * // valid: { // AutomatedReasoningCheckValidFinding * // translation: { // AutomatedReasoningCheckTranslation * // premises: [ // AutomatedReasoningLogicStatementList * // { // AutomatedReasoningLogicStatement * // logic: "STRING_VALUE", // required * // naturalLanguage: "STRING_VALUE", * // }, * // ], * // claims: [ // required * // { * // logic: "STRING_VALUE", // required * // naturalLanguage: "STRING_VALUE", * // }, * // ], * // untranslatedPremises: [ // AutomatedReasoningCheckInputTextReferenceList * // { // AutomatedReasoningCheckInputTextReference * // text: "STRING_VALUE", * // }, * // ], * // untranslatedClaims: [ * // { * // text: "STRING_VALUE", * // }, * // ], * // confidence: Number("double"), // required * // }, * // claimsTrueScenario: { // AutomatedReasoningCheckScenario * // statements: [ * // { * // logic: "STRING_VALUE", // required * // naturalLanguage: "STRING_VALUE", * // }, * // ], * // }, * // supportingRules: [ // AutomatedReasoningCheckRuleList * // { // AutomatedReasoningCheckRule * // id: "STRING_VALUE", * // policyVersionArn: "STRING_VALUE", * // }, * // ], * // logicWarning: { // AutomatedReasoningCheckLogicWarning * // type: "ALWAYS_TRUE" || "ALWAYS_FALSE", * // premises: [ * // { * // logic: "STRING_VALUE", // required * // naturalLanguage: "STRING_VALUE", * // }, * // ], * // claims: [ * // { * // logic: "STRING_VALUE", // required * // naturalLanguage: "STRING_VALUE", * // }, * // ], * // }, * // }, * // invalid: { // AutomatedReasoningCheckInvalidFinding * // translation: { * // premises: "", * // claims: "", // required * // untranslatedPremises: [ * // { * // text: "STRING_VALUE", * // }, * // ], * // untranslatedClaims: [ * // { * // text: "STRING_VALUE", * // }, * // ], * // confidence: Number("double"), // required * // }, * // contradictingRules: [ * // { * // id: "STRING_VALUE", * // policyVersionArn: "STRING_VALUE", * // }, * // ], * // logicWarning: { * // type: "ALWAYS_TRUE" || "ALWAYS_FALSE", * // premises: "", * // claims: "", * // }, * // }, * // satisfiable: { // AutomatedReasoningCheckSatisfiableFinding * // translation: { * // premises: "", * // claims: "", // required * // untranslatedPremises: [ * // { * // text: "STRING_VALUE", * // }, * // ], * // untranslatedClaims: "", * // confidence: Number("double"), // required * // }, * // claimsTrueScenario: { * // statements: "", * // }, * // claimsFalseScenario: { * // statements: "", * // }, * // logicWarning: { * // type: "ALWAYS_TRUE" || "ALWAYS_FALSE", * // premises: "", * // claims: "", * // }, * // }, * // impossible: { // AutomatedReasoningCheckImpossibleFinding * // translation: { * // premises: "", * // claims: "", // required * // untranslatedPremises: "", * // untranslatedClaims: "", * // confidence: Number("double"), // required * // }, * // contradictingRules: [ * // { * // id: "STRING_VALUE", * // policyVersionArn: "STRING_VALUE", * // }, * // ], * // logicWarning: { * // type: "ALWAYS_TRUE" || "ALWAYS_FALSE", * // premises: "", * // claims: "", * // }, * // }, * // translationAmbiguous: { // AutomatedReasoningCheckTranslationAmbiguousFinding * // options: [ // AutomatedReasoningCheckTranslationOptionList * // { // AutomatedReasoningCheckTranslationOption * // translations: [ // AutomatedReasoningCheckTranslationList * // { * // premises: "", * // claims: "", // required * // untranslatedPremises: "", * // untranslatedClaims: "", * // confidence: Number("double"), // required * // }, * // ], * // }, * // ], * // differenceScenarios: [ // AutomatedReasoningCheckDifferenceScenarioList * // { * // statements: "", * // }, * // ], * // }, * // tooComplex: {}, * // noTranslations: {}, * // }, * // ], * // testRunResult: "PASSED" || "FAILED", * // aggregatedTestFindingsResult: "VALID" || "INVALID" || "SATISFIABLE" || "IMPOSSIBLE" || "TRANSLATION_AMBIGUOUS" || "TOO_COMPLEX" || "NO_TRANSLATION", * // updatedAt: new Date("TIMESTAMP"), // required * // }, * // }; * * ``` * * @param GetAutomatedReasoningPolicyTestResultCommandInput - {@link GetAutomatedReasoningPolicyTestResultCommandInput} * @returns {@link GetAutomatedReasoningPolicyTestResultCommandOutput} * @see {@link GetAutomatedReasoningPolicyTestResultCommandInput} for command's `input` shape. * @see {@link GetAutomatedReasoningPolicyTestResultCommandOutput} for command's `response` shape. * @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

The request is denied because of missing access permissions.

* * @throws {@link InternalServerException} (server fault) *

An internal server error occurred. Retry your request.

* * @throws {@link ResourceNotFoundException} (client fault) *

The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

* * @throws {@link ThrottlingException} (client fault) *

The number of requests exceeds the limit. Resubmit your request later.

* * @throws {@link ValidationException} (client fault) *

Input validation failed. Check your request parameters and retry the request.

* * @throws {@link BedrockServiceException} *

Base exception class for all service exceptions from Bedrock service.

* * * @public */ export declare class GetAutomatedReasoningPolicyTestResultCommand extends GetAutomatedReasoningPolicyTestResultCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetAutomatedReasoningPolicyTestResultRequest; output: GetAutomatedReasoningPolicyTestResultResponse; }; sdk: { input: GetAutomatedReasoningPolicyTestResultCommandInput; output: GetAutomatedReasoningPolicyTestResultCommandOutput; }; }; }