@aws-sdk/client-bedrock-agent 3.705.0 → 3.706.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.
- package/dist-cjs/index.js +154 -27
- package/dist-es/commands/CreateKnowledgeBaseCommand.js +2 -1
- package/dist-es/commands/GetKnowledgeBaseCommand.js +2 -1
- package/dist-es/commands/UpdateKnowledgeBaseCommand.js +2 -1
- package/dist-es/models/models_0.js +5 -9
- package/dist-es/models/models_1.js +94 -1
- package/dist-types/commands/CreateDataSourceCommand.d.ts +12 -4
- package/dist-types/commands/CreateKnowledgeBaseCommand.d.ts +150 -2
- package/dist-types/commands/GetDataSourceCommand.d.ts +6 -2
- package/dist-types/commands/GetKnowledgeBaseCommand.d.ts +75 -1
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +12 -4
- package/dist-types/commands/UpdateKnowledgeBaseCommand.d.ts +150 -2
- package/dist-types/models/models_0.d.ts +42 -59
- package/dist-types/models/models_1.d.ts +488 -4
- package/dist-types/ts3.4/models/models_0.d.ts +14 -14
- package/dist-types/ts3.4/models/models_1.d.ts +181 -4
- package/package.json +1 -1
|
@@ -2854,6 +2854,7 @@ export interface SharePointDataSourceConfiguration {
|
|
|
2854
2854
|
export declare const DataSourceType: {
|
|
2855
2855
|
readonly CONFLUENCE: "CONFLUENCE";
|
|
2856
2856
|
readonly CUSTOM: "CUSTOM";
|
|
2857
|
+
readonly REDSHIFT_METADATA: "REDSHIFT_METADATA";
|
|
2857
2858
|
readonly S3: "S3";
|
|
2858
2859
|
readonly SALESFORCE: "SALESFORCE";
|
|
2859
2860
|
readonly SHAREPOINT: "SHAREPOINT";
|
|
@@ -3280,6 +3281,28 @@ export interface CustomTransformationConfiguration {
|
|
|
3280
3281
|
*/
|
|
3281
3282
|
transformations: Transformation[] | undefined;
|
|
3282
3283
|
}
|
|
3284
|
+
/**
|
|
3285
|
+
* @public
|
|
3286
|
+
* @enum
|
|
3287
|
+
*/
|
|
3288
|
+
export declare const ParsingModality: {
|
|
3289
|
+
readonly MULTIMODAL: "MULTIMODAL";
|
|
3290
|
+
};
|
|
3291
|
+
/**
|
|
3292
|
+
* @public
|
|
3293
|
+
*/
|
|
3294
|
+
export type ParsingModality = (typeof ParsingModality)[keyof typeof ParsingModality];
|
|
3295
|
+
/**
|
|
3296
|
+
* <p>Contains configurations for using Amazon Bedrock Data Automation as the parser for ingesting your data sources.</p>
|
|
3297
|
+
* @public
|
|
3298
|
+
*/
|
|
3299
|
+
export interface BedrockDataAutomationConfiguration {
|
|
3300
|
+
/**
|
|
3301
|
+
* <p>Specifies whether to enable parsing of multimodal data, including both text and/or images.</p>
|
|
3302
|
+
* @public
|
|
3303
|
+
*/
|
|
3304
|
+
parsingModality?: ParsingModality | undefined;
|
|
3305
|
+
}
|
|
3283
3306
|
/**
|
|
3284
3307
|
* <p>Instructions for interpreting the contents of a document.</p>
|
|
3285
3308
|
* @public
|
|
@@ -3297,7 +3320,7 @@ export interface ParsingPrompt {
|
|
|
3297
3320
|
*/
|
|
3298
3321
|
export interface BedrockFoundationModelConfiguration {
|
|
3299
3322
|
/**
|
|
3300
|
-
* <p>The ARN of the foundation model or <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html">inference profile</a
|
|
3323
|
+
* <p>The ARN of the foundation model or <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html">inference profile</a> to use for parsing.</p>
|
|
3301
3324
|
* @public
|
|
3302
3325
|
*/
|
|
3303
3326
|
modelArn: string | undefined;
|
|
@@ -3306,12 +3329,18 @@ export interface BedrockFoundationModelConfiguration {
|
|
|
3306
3329
|
* @public
|
|
3307
3330
|
*/
|
|
3308
3331
|
parsingPrompt?: ParsingPrompt | undefined;
|
|
3332
|
+
/**
|
|
3333
|
+
* <p>Specifies whether to enable parsing of multimodal data, including both text and/or images.</p>
|
|
3334
|
+
* @public
|
|
3335
|
+
*/
|
|
3336
|
+
parsingModality?: ParsingModality | undefined;
|
|
3309
3337
|
}
|
|
3310
3338
|
/**
|
|
3311
3339
|
* @public
|
|
3312
3340
|
* @enum
|
|
3313
3341
|
*/
|
|
3314
3342
|
export declare const ParsingStrategy: {
|
|
3343
|
+
readonly BEDROCK_DATA_AUTOMATION: "BEDROCK_DATA_AUTOMATION";
|
|
3315
3344
|
readonly BEDROCK_FOUNDATION_MODEL: "BEDROCK_FOUNDATION_MODEL";
|
|
3316
3345
|
};
|
|
3317
3346
|
/**
|
|
@@ -3319,25 +3348,11 @@ export declare const ParsingStrategy: {
|
|
|
3319
3348
|
*/
|
|
3320
3349
|
export type ParsingStrategy = (typeof ParsingStrategy)[keyof typeof ParsingStrategy];
|
|
3321
3350
|
/**
|
|
3322
|
-
* <p>Settings for parsing document contents.
|
|
3323
|
-
*
|
|
3324
|
-
*
|
|
3325
|
-
*
|
|
3326
|
-
*
|
|
3327
|
-
* specify the model or <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html">inference profile</a> to use by ARN. You can also override the default parsing prompt with instructions for how
|
|
3328
|
-
* to interpret images and tables in your documents. The following models are supported.</p>
|
|
3329
|
-
* <ul>
|
|
3330
|
-
* <li>
|
|
3331
|
-
* <p>Anthropic Claude 3 Sonnet - <code>anthropic.claude-3-sonnet-20240229-v1:0</code>
|
|
3332
|
-
* </p>
|
|
3333
|
-
* </li>
|
|
3334
|
-
* <li>
|
|
3335
|
-
* <p>Anthropic Claude 3 Haiku - <code>anthropic.claude-3-haiku-20240307-v1:0</code>
|
|
3336
|
-
* </p>
|
|
3337
|
-
* </li>
|
|
3338
|
-
* </ul>
|
|
3339
|
-
* <p>You can get the ARN of a model with the <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListFoundationModels.html">ListFoundationModels</a> action. Standard model usage
|
|
3340
|
-
* charges apply for the foundation model parsing strategy.</p>
|
|
3351
|
+
* <p>Settings for parsing document contents. If you exclude this field, the default parser converts the contents of each
|
|
3352
|
+
* document into text before splitting it into chunks. Specify the parsing strategy to use in the <code>parsingStrategy</code> field and include the relevant configuration, or omit it to use the Amazon Bedrock default parser. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-advanced-parsing.html">Parsing options for your data source</a>.</p>
|
|
3353
|
+
* <note>
|
|
3354
|
+
* <p>If you specify <code>BEDROCK_DATA_AUTOMATION</code> or <code>BEDROCK_FOUNDATION_MODEL</code> and it fails to parse a file, the Amazon Bedrock default parser will be used instead.</p>
|
|
3355
|
+
* </note>
|
|
3341
3356
|
* @public
|
|
3342
3357
|
*/
|
|
3343
3358
|
export interface ParsingConfiguration {
|
|
@@ -3347,10 +3362,15 @@ export interface ParsingConfiguration {
|
|
|
3347
3362
|
*/
|
|
3348
3363
|
parsingStrategy: ParsingStrategy | undefined;
|
|
3349
3364
|
/**
|
|
3350
|
-
* <p>
|
|
3365
|
+
* <p>If you specify <code>BEDROCK_FOUNDATION_MODEL</code> as the parsing strategy for ingesting your data source, use this object to modify configurations for using a foundation model to parse documents.</p>
|
|
3351
3366
|
* @public
|
|
3352
3367
|
*/
|
|
3353
3368
|
bedrockFoundationModelConfiguration?: BedrockFoundationModelConfiguration | undefined;
|
|
3369
|
+
/**
|
|
3370
|
+
* <p>If you specify <code>BEDROCK_DATA_AUTOMATION</code> as the parsing strategy for ingesting your data source, use this object to modify configurations for using the Amazon Bedrock Data Automation parser.</p>
|
|
3371
|
+
* @public
|
|
3372
|
+
*/
|
|
3373
|
+
bedrockDataAutomationConfiguration?: BedrockDataAutomationConfiguration | undefined;
|
|
3354
3374
|
}
|
|
3355
3375
|
/**
|
|
3356
3376
|
* <p>Contains details about how to ingest the documents in a data source.</p>
|
|
@@ -3368,7 +3388,7 @@ export interface VectorIngestionConfiguration {
|
|
|
3368
3388
|
*/
|
|
3369
3389
|
customTransformationConfiguration?: CustomTransformationConfiguration | undefined;
|
|
3370
3390
|
/**
|
|
3371
|
-
* <p>
|
|
3391
|
+
* <p>Configurations for a parser to use for parsing documents in your data source. If you exclude this field, the default parser will be used.</p>
|
|
3372
3392
|
* @public
|
|
3373
3393
|
*/
|
|
3374
3394
|
parsingConfiguration?: ParsingConfiguration | undefined;
|
|
@@ -7978,39 +7998,6 @@ export interface TextContentDoc {
|
|
|
7978
7998
|
*/
|
|
7979
7999
|
data: string | undefined;
|
|
7980
8000
|
}
|
|
7981
|
-
/**
|
|
7982
|
-
* @public
|
|
7983
|
-
* @enum
|
|
7984
|
-
*/
|
|
7985
|
-
export declare const InlineContentType: {
|
|
7986
|
-
readonly BYTE: "BYTE";
|
|
7987
|
-
readonly TEXT: "TEXT";
|
|
7988
|
-
};
|
|
7989
|
-
/**
|
|
7990
|
-
* @public
|
|
7991
|
-
*/
|
|
7992
|
-
export type InlineContentType = (typeof InlineContentType)[keyof typeof InlineContentType];
|
|
7993
|
-
/**
|
|
7994
|
-
* <p>Contains information about content defined inline to ingest into a data source. Choose a <code>type</code> and include the field that corresponds to it.</p>
|
|
7995
|
-
* @public
|
|
7996
|
-
*/
|
|
7997
|
-
export interface InlineContent {
|
|
7998
|
-
/**
|
|
7999
|
-
* <p>The type of inline content to define.</p>
|
|
8000
|
-
* @public
|
|
8001
|
-
*/
|
|
8002
|
-
type: InlineContentType | undefined;
|
|
8003
|
-
/**
|
|
8004
|
-
* <p>Contains information about content defined inline in bytes.</p>
|
|
8005
|
-
* @public
|
|
8006
|
-
*/
|
|
8007
|
-
byteContent?: ByteContentDoc | undefined;
|
|
8008
|
-
/**
|
|
8009
|
-
* <p>Contains information about content defined inline in text.</p>
|
|
8010
|
-
* @public
|
|
8011
|
-
*/
|
|
8012
|
-
textContent?: TextContentDoc | undefined;
|
|
8013
|
-
}
|
|
8014
8001
|
/**
|
|
8015
8002
|
* @internal
|
|
8016
8003
|
*/
|
|
@@ -8299,7 +8286,3 @@ export declare const ByteContentDocFilterSensitiveLog: (obj: ByteContentDoc) =>
|
|
|
8299
8286
|
* @internal
|
|
8300
8287
|
*/
|
|
8301
8288
|
export declare const TextContentDocFilterSensitiveLog: (obj: TextContentDoc) => any;
|
|
8302
|
-
/**
|
|
8303
|
-
* @internal
|
|
8304
|
-
*/
|
|
8305
|
-
export declare const InlineContentFilterSensitiveLog: (obj: InlineContent) => any;
|