@aws-sdk/client-bedrock 3.699.0 → 3.705.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist-cjs/index.js +770 -36
  2. package/dist-es/commands/CreateModelCustomizationJobCommand.js +2 -1
  3. package/dist-es/commands/GetCustomModelCommand.js +2 -1
  4. package/dist-es/commands/GetModelCustomizationJobCommand.js +2 -1
  5. package/dist-es/models/models_0.js +291 -24
  6. package/dist-es/protocols/Aws_restJson1.js +410 -3
  7. package/dist-types/commands/BatchDeleteEvaluationJobCommand.d.ts +3 -1
  8. package/dist-types/commands/CreateEvaluationJobCommand.d.ts +156 -2
  9. package/dist-types/commands/CreateGuardrailCommand.d.ts +1 -1
  10. package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +43 -3
  11. package/dist-types/commands/GetCustomModelCommand.d.ts +42 -2
  12. package/dist-types/commands/GetEvaluationJobCommand.d.ts +156 -3
  13. package/dist-types/commands/GetFoundationModelCommand.d.ts +1 -1
  14. package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +43 -3
  15. package/dist-types/commands/GetModelInvocationJobCommand.d.ts +1 -1
  16. package/dist-types/commands/GetModelInvocationLoggingConfigurationCommand.d.ts +1 -0
  17. package/dist-types/commands/ListCustomModelsCommand.d.ts +1 -1
  18. package/dist-types/commands/ListEvaluationJobsCommand.d.ts +10 -2
  19. package/dist-types/commands/ListFoundationModelsCommand.d.ts +2 -2
  20. package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +1 -1
  21. package/dist-types/commands/ListModelInvocationJobsCommand.d.ts +1 -1
  22. package/dist-types/commands/PutModelInvocationLoggingConfigurationCommand.d.ts +1 -0
  23. package/dist-types/commands/StopEvaluationJobCommand.d.ts +1 -1
  24. package/dist-types/commands/StopModelInvocationJobCommand.d.ts +1 -1
  25. package/dist-types/models/models_0.d.ts +1585 -175
  26. package/dist-types/ts3.4/models/models_0.d.ts +683 -55
  27. package/package.json +1 -1
@@ -3,7 +3,7 @@ import { requestBuilder as rb } from "@smithy/core";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
5
  import { BedrockServiceException as __BaseException } from "../models/BedrockServiceException";
6
- import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
6
+ import { AccessDeniedException, ConflictException, EvaluationInferenceConfig, InternalServerException, KnowledgeBaseConfig, RAGConfig, ResourceNotFoundException, RetrievalFilter, ServiceQuotaExceededException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
7
7
  export const se_BatchDeleteEvaluationJobCommand = async (input, context) => {
8
8
  const b = rb(input, context);
9
9
  const headers = {
@@ -25,10 +25,11 @@ export const se_CreateEvaluationJobCommand = async (input, context) => {
25
25
  b.bp("/evaluation-jobs");
26
26
  let body;
27
27
  body = JSON.stringify(take(input, {
28
+ applicationType: [],
28
29
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
29
30
  customerEncryptionKeyId: [],
30
31
  evaluationConfig: (_) => _json(_),
31
- inferenceConfig: (_) => _json(_),
32
+ inferenceConfig: (_) => se_EvaluationInferenceConfig(_, context),
32
33
  jobDescription: [],
33
34
  jobName: [],
34
35
  jobTags: (_) => _json(_),
@@ -124,6 +125,7 @@ export const se_CreateModelCustomizationJobCommand = async (input, context) => {
124
125
  customModelKmsKeyId: [],
125
126
  customModelName: [],
126
127
  customModelTags: (_) => _json(_),
128
+ customizationConfig: (_) => _json(_),
127
129
  customizationType: [],
128
130
  hyperParameters: (_) => _json(_),
129
131
  jobName: [],
@@ -391,6 +393,7 @@ export const se_ListEvaluationJobsCommand = async (input, context) => {
391
393
  [_cTA]: [() => input.creationTimeAfter !== void 0, () => __serializeDateTime(input[_cTA]).toString()],
392
394
  [_cTB]: [() => input.creationTimeBefore !== void 0, () => __serializeDateTime(input[_cTB]).toString()],
393
395
  [_sE]: [, input[_sE]],
396
+ [_aTE]: [, input[_aTE]],
394
397
  [_nC]: [, input[_nC]],
395
398
  [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
396
399
  [_nT]: [, input[_nT]],
@@ -887,6 +890,7 @@ export const de_GetCustomModelCommand = async (output, context) => {
887
890
  const doc = take(data, {
888
891
  baseModelArn: __expectString,
889
892
  creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
893
+ customizationConfig: (_) => _json(__expectUnion(_)),
890
894
  customizationType: __expectString,
891
895
  hyperParameters: _json,
892
896
  jobArn: __expectString,
@@ -912,11 +916,12 @@ export const de_GetEvaluationJobCommand = async (output, context) => {
912
916
  });
913
917
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
914
918
  const doc = take(data, {
919
+ applicationType: __expectString,
915
920
  creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
916
921
  customerEncryptionKeyId: __expectString,
917
922
  evaluationConfig: (_) => _json(__expectUnion(_)),
918
923
  failureMessages: _json,
919
- inferenceConfig: (_) => _json(__expectUnion(_)),
924
+ inferenceConfig: (_) => de_EvaluationInferenceConfig(__expectUnion(_), context),
920
925
  jobArn: __expectString,
921
926
  jobDescription: __expectString,
922
927
  jobName: __expectString,
@@ -1054,6 +1059,7 @@ export const de_GetModelCustomizationJobCommand = async (output, context) => {
1054
1059
  baseModelArn: __expectString,
1055
1060
  clientRequestToken: __expectString,
1056
1061
  creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1062
+ customizationConfig: (_) => _json(__expectUnion(_)),
1057
1063
  customizationType: __expectString,
1058
1064
  endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1059
1065
  failureMessage: __expectString,
@@ -1581,6 +1587,78 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1581
1587
  });
1582
1588
  return __decorateServiceException(exception, parsedOutput.body);
1583
1589
  };
1590
+ const se_AdditionalModelRequestFields = (input, context) => {
1591
+ return Object.entries(input).reduce((acc, [key, value]) => {
1592
+ if (value === null) {
1593
+ return acc;
1594
+ }
1595
+ acc[key] = se_AdditionalModelRequestFieldsValue(value, context);
1596
+ return acc;
1597
+ }, {});
1598
+ };
1599
+ const se_AdditionalModelRequestFieldsValue = (input, context) => {
1600
+ return input;
1601
+ };
1602
+ const se_ByteContentDoc = (input, context) => {
1603
+ return take(input, {
1604
+ contentType: [],
1605
+ data: context.base64Encoder,
1606
+ identifier: [],
1607
+ });
1608
+ };
1609
+ const se_EvaluationInferenceConfig = (input, context) => {
1610
+ return EvaluationInferenceConfig.visit(input, {
1611
+ models: (value) => ({ models: _json(value) }),
1612
+ ragConfigs: (value) => ({ ragConfigs: se_RagConfigs(value, context) }),
1613
+ _: (name, value) => ({ name: value }),
1614
+ });
1615
+ };
1616
+ const se_ExternalSource = (input, context) => {
1617
+ return take(input, {
1618
+ byteContent: (_) => se_ByteContentDoc(_, context),
1619
+ s3Location: _json,
1620
+ sourceType: [],
1621
+ });
1622
+ };
1623
+ const se_ExternalSources = (input, context) => {
1624
+ return input
1625
+ .filter((e) => e != null)
1626
+ .map((entry) => {
1627
+ return se_ExternalSource(entry, context);
1628
+ });
1629
+ };
1630
+ const se_ExternalSourcesGenerationConfiguration = (input, context) => {
1631
+ return take(input, {
1632
+ additionalModelRequestFields: (_) => se_AdditionalModelRequestFields(_, context),
1633
+ guardrailConfiguration: _json,
1634
+ kbInferenceConfig: (_) => se_KbInferenceConfig(_, context),
1635
+ promptTemplate: _json,
1636
+ });
1637
+ };
1638
+ const se_ExternalSourcesRetrieveAndGenerateConfiguration = (input, context) => {
1639
+ return take(input, {
1640
+ generationConfiguration: (_) => se_ExternalSourcesGenerationConfiguration(_, context),
1641
+ modelArn: [],
1642
+ sources: (_) => se_ExternalSources(_, context),
1643
+ });
1644
+ };
1645
+ const se_FilterAttribute = (input, context) => {
1646
+ return take(input, {
1647
+ key: [],
1648
+ value: (_) => se_FilterValue(_, context),
1649
+ });
1650
+ };
1651
+ const se_FilterValue = (input, context) => {
1652
+ return input;
1653
+ };
1654
+ const se_GenerationConfiguration = (input, context) => {
1655
+ return take(input, {
1656
+ additionalModelRequestFields: (_) => se_AdditionalModelRequestFields(_, context),
1657
+ guardrailConfiguration: _json,
1658
+ kbInferenceConfig: (_) => se_KbInferenceConfig(_, context),
1659
+ promptTemplate: _json,
1660
+ });
1661
+ };
1584
1662
  const se_GuardrailContextualGroundingFilterConfig = (input, context) => {
1585
1663
  return take(input, {
1586
1664
  threshold: __serializeFloat,
@@ -1599,6 +1677,119 @@ const se_GuardrailContextualGroundingPolicyConfig = (input, context) => {
1599
1677
  filtersConfig: (_) => se_GuardrailContextualGroundingFiltersConfig(_, context),
1600
1678
  });
1601
1679
  };
1680
+ const se_KbInferenceConfig = (input, context) => {
1681
+ return take(input, {
1682
+ textInferenceConfig: (_) => se_TextInferenceConfig(_, context),
1683
+ });
1684
+ };
1685
+ const se_KnowledgeBaseConfig = (input, context) => {
1686
+ return KnowledgeBaseConfig.visit(input, {
1687
+ retrieveAndGenerateConfig: (value) => ({
1688
+ retrieveAndGenerateConfig: se_RetrieveAndGenerateConfiguration(value, context),
1689
+ }),
1690
+ retrieveConfig: (value) => ({ retrieveConfig: se_RetrieveConfig(value, context) }),
1691
+ _: (name, value) => ({ name: value }),
1692
+ });
1693
+ };
1694
+ const se_KnowledgeBaseRetrievalConfiguration = (input, context) => {
1695
+ return take(input, {
1696
+ vectorSearchConfiguration: (_) => se_KnowledgeBaseVectorSearchConfiguration(_, context),
1697
+ });
1698
+ };
1699
+ const se_KnowledgeBaseRetrieveAndGenerateConfiguration = (input, context) => {
1700
+ return take(input, {
1701
+ generationConfiguration: (_) => se_GenerationConfiguration(_, context),
1702
+ knowledgeBaseId: [],
1703
+ modelArn: [],
1704
+ orchestrationConfiguration: _json,
1705
+ retrievalConfiguration: (_) => se_KnowledgeBaseRetrievalConfiguration(_, context),
1706
+ });
1707
+ };
1708
+ const se_KnowledgeBaseVectorSearchConfiguration = (input, context) => {
1709
+ return take(input, {
1710
+ filter: (_) => se_RetrievalFilter(_, context),
1711
+ numberOfResults: [],
1712
+ overrideSearchType: [],
1713
+ });
1714
+ };
1715
+ const se_RAGConfig = (input, context) => {
1716
+ return RAGConfig.visit(input, {
1717
+ knowledgeBaseConfig: (value) => ({ knowledgeBaseConfig: se_KnowledgeBaseConfig(value, context) }),
1718
+ _: (name, value) => ({ name: value }),
1719
+ });
1720
+ };
1721
+ const se_RagConfigs = (input, context) => {
1722
+ return input
1723
+ .filter((e) => e != null)
1724
+ .map((entry) => {
1725
+ return se_RAGConfig(entry, context);
1726
+ });
1727
+ };
1728
+ const se_RetrievalFilter = (input, context) => {
1729
+ return RetrievalFilter.visit(input, {
1730
+ andAll: (value) => ({ andAll: se_RetrievalFilterList(value, context) }),
1731
+ equals: (value) => ({ equals: se_FilterAttribute(value, context) }),
1732
+ greaterThan: (value) => ({ greaterThan: se_FilterAttribute(value, context) }),
1733
+ greaterThanOrEquals: (value) => ({ greaterThanOrEquals: se_FilterAttribute(value, context) }),
1734
+ in: (value) => ({ in: se_FilterAttribute(value, context) }),
1735
+ lessThan: (value) => ({ lessThan: se_FilterAttribute(value, context) }),
1736
+ lessThanOrEquals: (value) => ({ lessThanOrEquals: se_FilterAttribute(value, context) }),
1737
+ listContains: (value) => ({ listContains: se_FilterAttribute(value, context) }),
1738
+ notEquals: (value) => ({ notEquals: se_FilterAttribute(value, context) }),
1739
+ notIn: (value) => ({ notIn: se_FilterAttribute(value, context) }),
1740
+ orAll: (value) => ({ orAll: se_RetrievalFilterList(value, context) }),
1741
+ startsWith: (value) => ({ startsWith: se_FilterAttribute(value, context) }),
1742
+ stringContains: (value) => ({ stringContains: se_FilterAttribute(value, context) }),
1743
+ _: (name, value) => ({ name: value }),
1744
+ });
1745
+ };
1746
+ const se_RetrievalFilterList = (input, context) => {
1747
+ return input
1748
+ .filter((e) => e != null)
1749
+ .map((entry) => {
1750
+ return se_RetrievalFilter(entry, context);
1751
+ });
1752
+ };
1753
+ const se_RetrieveAndGenerateConfiguration = (input, context) => {
1754
+ return take(input, {
1755
+ externalSourcesConfiguration: (_) => se_ExternalSourcesRetrieveAndGenerateConfiguration(_, context),
1756
+ knowledgeBaseConfiguration: (_) => se_KnowledgeBaseRetrieveAndGenerateConfiguration(_, context),
1757
+ type: [],
1758
+ });
1759
+ };
1760
+ const se_RetrieveConfig = (input, context) => {
1761
+ return take(input, {
1762
+ knowledgeBaseId: [],
1763
+ knowledgeBaseRetrievalConfiguration: (_) => se_KnowledgeBaseRetrievalConfiguration(_, context),
1764
+ });
1765
+ };
1766
+ const se_TextInferenceConfig = (input, context) => {
1767
+ return take(input, {
1768
+ maxTokens: [],
1769
+ stopSequences: _json,
1770
+ temperature: __serializeFloat,
1771
+ topP: __serializeFloat,
1772
+ });
1773
+ };
1774
+ const de_AdditionalModelRequestFields = (output, context) => {
1775
+ return Object.entries(output).reduce((acc, [key, value]) => {
1776
+ if (value === null) {
1777
+ return acc;
1778
+ }
1779
+ acc[key] = de_AdditionalModelRequestFieldsValue(value, context);
1780
+ return acc;
1781
+ }, {});
1782
+ };
1783
+ const de_AdditionalModelRequestFieldsValue = (output, context) => {
1784
+ return output;
1785
+ };
1786
+ const de_ByteContentDoc = (output, context) => {
1787
+ return take(output, {
1788
+ contentType: __expectString,
1789
+ data: context.base64Decoder,
1790
+ identifier: __expectString,
1791
+ });
1792
+ };
1602
1793
  const de_CustomModelSummary = (output, context) => {
1603
1794
  return take(output, {
1604
1795
  baseModelArn: __expectString,
@@ -1618,6 +1809,19 @@ const de_CustomModelSummaryList = (output, context) => {
1618
1809
  });
1619
1810
  return retVal;
1620
1811
  };
1812
+ const de_EvaluationInferenceConfig = (output, context) => {
1813
+ if (output.models != null) {
1814
+ return {
1815
+ models: _json(output.models),
1816
+ };
1817
+ }
1818
+ if (output.ragConfigs != null) {
1819
+ return {
1820
+ ragConfigs: de_RagConfigs(output.ragConfigs, context),
1821
+ };
1822
+ }
1823
+ return { $unknown: Object.entries(output)[0] };
1824
+ };
1621
1825
  const de_EvaluationSummaries = (output, context) => {
1622
1826
  const retVal = (output || [])
1623
1827
  .filter((e) => e != null)
@@ -1628,15 +1832,65 @@ const de_EvaluationSummaries = (output, context) => {
1628
1832
  };
1629
1833
  const de_EvaluationSummary = (output, context) => {
1630
1834
  return take(output, {
1835
+ applicationType: __expectString,
1631
1836
  creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1632
1837
  evaluationTaskTypes: _json,
1838
+ evaluatorModelIdentifiers: _json,
1633
1839
  jobArn: __expectString,
1634
1840
  jobName: __expectString,
1635
1841
  jobType: __expectString,
1636
1842
  modelIdentifiers: _json,
1843
+ ragIdentifiers: _json,
1637
1844
  status: __expectString,
1638
1845
  });
1639
1846
  };
1847
+ const de_ExternalSource = (output, context) => {
1848
+ return take(output, {
1849
+ byteContent: (_) => de_ByteContentDoc(_, context),
1850
+ s3Location: _json,
1851
+ sourceType: __expectString,
1852
+ });
1853
+ };
1854
+ const de_ExternalSources = (output, context) => {
1855
+ const retVal = (output || [])
1856
+ .filter((e) => e != null)
1857
+ .map((entry) => {
1858
+ return de_ExternalSource(entry, context);
1859
+ });
1860
+ return retVal;
1861
+ };
1862
+ const de_ExternalSourcesGenerationConfiguration = (output, context) => {
1863
+ return take(output, {
1864
+ additionalModelRequestFields: (_) => de_AdditionalModelRequestFields(_, context),
1865
+ guardrailConfiguration: _json,
1866
+ kbInferenceConfig: (_) => de_KbInferenceConfig(_, context),
1867
+ promptTemplate: _json,
1868
+ });
1869
+ };
1870
+ const de_ExternalSourcesRetrieveAndGenerateConfiguration = (output, context) => {
1871
+ return take(output, {
1872
+ generationConfiguration: (_) => de_ExternalSourcesGenerationConfiguration(_, context),
1873
+ modelArn: __expectString,
1874
+ sources: (_) => de_ExternalSources(_, context),
1875
+ });
1876
+ };
1877
+ const de_FilterAttribute = (output, context) => {
1878
+ return take(output, {
1879
+ key: __expectString,
1880
+ value: (_) => de_FilterValue(_, context),
1881
+ });
1882
+ };
1883
+ const de_FilterValue = (output, context) => {
1884
+ return output;
1885
+ };
1886
+ const de_GenerationConfiguration = (output, context) => {
1887
+ return take(output, {
1888
+ additionalModelRequestFields: (_) => de_AdditionalModelRequestFields(_, context),
1889
+ guardrailConfiguration: _json,
1890
+ kbInferenceConfig: (_) => de_KbInferenceConfig(_, context),
1891
+ promptTemplate: _json,
1892
+ });
1893
+ };
1640
1894
  const de_GuardrailContextualGroundingFilter = (output, context) => {
1641
1895
  return take(output, {
1642
1896
  threshold: __limitedParseDouble,
@@ -1714,6 +1968,45 @@ const de_InferenceProfileSummary = (output, context) => {
1714
1968
  updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1715
1969
  });
1716
1970
  };
1971
+ const de_KbInferenceConfig = (output, context) => {
1972
+ return take(output, {
1973
+ textInferenceConfig: (_) => de_TextInferenceConfig(_, context),
1974
+ });
1975
+ };
1976
+ const de_KnowledgeBaseConfig = (output, context) => {
1977
+ if (output.retrieveAndGenerateConfig != null) {
1978
+ return {
1979
+ retrieveAndGenerateConfig: de_RetrieveAndGenerateConfiguration(output.retrieveAndGenerateConfig, context),
1980
+ };
1981
+ }
1982
+ if (output.retrieveConfig != null) {
1983
+ return {
1984
+ retrieveConfig: de_RetrieveConfig(output.retrieveConfig, context),
1985
+ };
1986
+ }
1987
+ return { $unknown: Object.entries(output)[0] };
1988
+ };
1989
+ const de_KnowledgeBaseRetrievalConfiguration = (output, context) => {
1990
+ return take(output, {
1991
+ vectorSearchConfiguration: (_) => de_KnowledgeBaseVectorSearchConfiguration(_, context),
1992
+ });
1993
+ };
1994
+ const de_KnowledgeBaseRetrieveAndGenerateConfiguration = (output, context) => {
1995
+ return take(output, {
1996
+ generationConfiguration: (_) => de_GenerationConfiguration(_, context),
1997
+ knowledgeBaseId: __expectString,
1998
+ modelArn: __expectString,
1999
+ orchestrationConfiguration: _json,
2000
+ retrievalConfiguration: (_) => de_KnowledgeBaseRetrievalConfiguration(_, context),
2001
+ });
2002
+ };
2003
+ const de_KnowledgeBaseVectorSearchConfiguration = (output, context) => {
2004
+ return take(output, {
2005
+ filter: (_) => de_RetrievalFilter(__expectUnion(_), context),
2006
+ numberOfResults: __expectInt32,
2007
+ overrideSearchType: __expectString,
2008
+ });
2009
+ };
1717
2010
  const de_ModelCopyJobSummaries = (output, context) => {
1718
2011
  const retVal = (output || [])
1719
2012
  .filter((e) => e != null)
@@ -1830,6 +2123,119 @@ const de_ProvisionedModelSummary = (output, context) => {
1830
2123
  status: __expectString,
1831
2124
  });
1832
2125
  };
2126
+ const de_RAGConfig = (output, context) => {
2127
+ if (output.knowledgeBaseConfig != null) {
2128
+ return {
2129
+ knowledgeBaseConfig: de_KnowledgeBaseConfig(__expectUnion(output.knowledgeBaseConfig), context),
2130
+ };
2131
+ }
2132
+ return { $unknown: Object.entries(output)[0] };
2133
+ };
2134
+ const de_RagConfigs = (output, context) => {
2135
+ const retVal = (output || [])
2136
+ .filter((e) => e != null)
2137
+ .map((entry) => {
2138
+ return de_RAGConfig(__expectUnion(entry), context);
2139
+ });
2140
+ return retVal;
2141
+ };
2142
+ const de_RetrievalFilter = (output, context) => {
2143
+ if (output.andAll != null) {
2144
+ return {
2145
+ andAll: de_RetrievalFilterList(output.andAll, context),
2146
+ };
2147
+ }
2148
+ if (output.equals != null) {
2149
+ return {
2150
+ equals: de_FilterAttribute(output.equals, context),
2151
+ };
2152
+ }
2153
+ if (output.greaterThan != null) {
2154
+ return {
2155
+ greaterThan: de_FilterAttribute(output.greaterThan, context),
2156
+ };
2157
+ }
2158
+ if (output.greaterThanOrEquals != null) {
2159
+ return {
2160
+ greaterThanOrEquals: de_FilterAttribute(output.greaterThanOrEquals, context),
2161
+ };
2162
+ }
2163
+ if (output.in != null) {
2164
+ return {
2165
+ in: de_FilterAttribute(output.in, context),
2166
+ };
2167
+ }
2168
+ if (output.lessThan != null) {
2169
+ return {
2170
+ lessThan: de_FilterAttribute(output.lessThan, context),
2171
+ };
2172
+ }
2173
+ if (output.lessThanOrEquals != null) {
2174
+ return {
2175
+ lessThanOrEquals: de_FilterAttribute(output.lessThanOrEquals, context),
2176
+ };
2177
+ }
2178
+ if (output.listContains != null) {
2179
+ return {
2180
+ listContains: de_FilterAttribute(output.listContains, context),
2181
+ };
2182
+ }
2183
+ if (output.notEquals != null) {
2184
+ return {
2185
+ notEquals: de_FilterAttribute(output.notEquals, context),
2186
+ };
2187
+ }
2188
+ if (output.notIn != null) {
2189
+ return {
2190
+ notIn: de_FilterAttribute(output.notIn, context),
2191
+ };
2192
+ }
2193
+ if (output.orAll != null) {
2194
+ return {
2195
+ orAll: de_RetrievalFilterList(output.orAll, context),
2196
+ };
2197
+ }
2198
+ if (output.startsWith != null) {
2199
+ return {
2200
+ startsWith: de_FilterAttribute(output.startsWith, context),
2201
+ };
2202
+ }
2203
+ if (output.stringContains != null) {
2204
+ return {
2205
+ stringContains: de_FilterAttribute(output.stringContains, context),
2206
+ };
2207
+ }
2208
+ return { $unknown: Object.entries(output)[0] };
2209
+ };
2210
+ const de_RetrievalFilterList = (output, context) => {
2211
+ const retVal = (output || [])
2212
+ .filter((e) => e != null)
2213
+ .map((entry) => {
2214
+ return de_RetrievalFilter(__expectUnion(entry), context);
2215
+ });
2216
+ return retVal;
2217
+ };
2218
+ const de_RetrieveAndGenerateConfiguration = (output, context) => {
2219
+ return take(output, {
2220
+ externalSourcesConfiguration: (_) => de_ExternalSourcesRetrieveAndGenerateConfiguration(_, context),
2221
+ knowledgeBaseConfiguration: (_) => de_KnowledgeBaseRetrieveAndGenerateConfiguration(_, context),
2222
+ type: __expectString,
2223
+ });
2224
+ };
2225
+ const de_RetrieveConfig = (output, context) => {
2226
+ return take(output, {
2227
+ knowledgeBaseId: __expectString,
2228
+ knowledgeBaseRetrievalConfiguration: (_) => de_KnowledgeBaseRetrievalConfiguration(_, context),
2229
+ });
2230
+ };
2231
+ const de_TextInferenceConfig = (output, context) => {
2232
+ return take(output, {
2233
+ maxTokens: __expectInt32,
2234
+ stopSequences: _json,
2235
+ temperature: __limitedParseFloat32,
2236
+ topP: __limitedParseFloat32,
2237
+ });
2238
+ };
1833
2239
  const de_TrainingMetrics = (output, context) => {
1834
2240
  return take(output, {
1835
2241
  trainingLoss: __limitedParseFloat32,
@@ -1855,6 +2261,7 @@ const deserializeMetadata = (output) => ({
1855
2261
  cfId: output.headers["x-amz-cf-id"],
1856
2262
  });
1857
2263
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2264
+ const _aTE = "applicationTypeEquals";
1858
2265
  const _bCT = "byCustomizationType";
1859
2266
  const _bIT = "byInferenceType";
1860
2267
  const _bMAE = "baseModelArnEquals";
@@ -27,7 +27,9 @@ declare const BatchDeleteEvaluationJobCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Creates a batch deletion job. A model evaluation job can only be deleted if it has following status <code>FAILED</code>, <code>COMPLETED</code>, and <code>STOPPED</code>. You can request up to 25 model evaluation jobs be deleted in a single request.</p>
30
+ * <p>Deletes a batch of evaluation jobs. An evaluation job can only be deleted if it has
31
+ * following status <code>FAILED</code>, <code>COMPLETED</code>, and <code>STOPPED</code>.
32
+ * You can request up to 25 model evaluation jobs be deleted in a single request.</p>
31
33
  * @example
32
34
  * Use a bare-bones client and the command you need to make an API call.
33
35
  * ```javascript