@aws-sdk/client-bedrock-agent 3.702.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 (71) hide show
  1. package/README.md +72 -0
  2. package/dist-cjs/index.js +772 -28
  3. package/dist-es/BedrockAgent.js +18 -0
  4. package/dist-es/commands/AssociateAgentCollaboratorCommand.js +23 -0
  5. package/dist-es/commands/DeleteKnowledgeBaseDocumentsCommand.js +22 -0
  6. package/dist-es/commands/DisassociateAgentCollaboratorCommand.js +22 -0
  7. package/dist-es/commands/GetAgentCollaboratorCommand.js +23 -0
  8. package/dist-es/commands/GetKnowledgeBaseDocumentsCommand.js +22 -0
  9. package/dist-es/commands/IngestKnowledgeBaseDocumentsCommand.js +23 -0
  10. package/dist-es/commands/ListAgentCollaboratorsCommand.js +23 -0
  11. package/dist-es/commands/ListKnowledgeBaseDocumentsCommand.js +22 -0
  12. package/dist-es/commands/UpdateAgentCollaboratorCommand.js +23 -0
  13. package/dist-es/commands/index.js +9 -0
  14. package/dist-es/models/models_0.js +75 -18
  15. package/dist-es/models/models_1.js +71 -1
  16. package/dist-es/pagination/ListAgentCollaboratorsPaginator.js +4 -0
  17. package/dist-es/pagination/ListKnowledgeBaseDocumentsPaginator.js +4 -0
  18. package/dist-es/pagination/index.js +2 -0
  19. package/dist-es/protocols/Aws_restJson1.js +392 -0
  20. package/dist-types/BedrockAgent.d.ts +63 -0
  21. package/dist-types/BedrockAgentClient.d.ts +11 -2
  22. package/dist-types/commands/AssociateAgentCollaboratorCommand.d.ts +113 -0
  23. package/dist-types/commands/AssociateAgentKnowledgeBaseCommand.d.ts +1 -1
  24. package/dist-types/commands/CreateAgentCommand.d.ts +4 -0
  25. package/dist-types/commands/CreateDataSourceCommand.d.ts +3 -3
  26. package/dist-types/commands/CreateKnowledgeBaseCommand.d.ts +1 -1
  27. package/dist-types/commands/DeleteKnowledgeBaseCommand.d.ts +1 -1
  28. package/dist-types/commands/DeleteKnowledgeBaseDocumentsCommand.d.ts +119 -0
  29. package/dist-types/commands/DisassociateAgentCollaboratorCommand.d.ts +89 -0
  30. package/dist-types/commands/DisassociateAgentKnowledgeBaseCommand.d.ts +1 -1
  31. package/dist-types/commands/GetAgentCollaboratorCommand.d.ts +101 -0
  32. package/dist-types/commands/GetAgentCommand.d.ts +2 -0
  33. package/dist-types/commands/GetAgentVersionCommand.d.ts +2 -0
  34. package/dist-types/commands/GetDataSourceCommand.d.ts +1 -1
  35. package/dist-types/commands/GetKnowledgeBaseDocumentsCommand.d.ts +118 -0
  36. package/dist-types/commands/IngestKnowledgeBaseDocumentsCommand.d.ts +161 -0
  37. package/dist-types/commands/ListAgentCollaboratorsCommand.d.ts +104 -0
  38. package/dist-types/commands/ListKnowledgeBaseDocumentsCommand.d.ts +110 -0
  39. package/dist-types/commands/UpdateAgentCollaboratorCommand.d.ts +113 -0
  40. package/dist-types/commands/UpdateAgentCommand.d.ts +4 -0
  41. package/dist-types/commands/UpdateDataSourceCommand.d.ts +2 -2
  42. package/dist-types/commands/index.d.ts +9 -0
  43. package/dist-types/models/models_0.d.ts +589 -475
  44. package/dist-types/models/models_1.d.ts +923 -1
  45. package/dist-types/pagination/ListAgentCollaboratorsPaginator.d.ts +7 -0
  46. package/dist-types/pagination/ListKnowledgeBaseDocumentsPaginator.d.ts +7 -0
  47. package/dist-types/pagination/index.d.ts +2 -0
  48. package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
  49. package/dist-types/ts3.4/BedrockAgent.d.ts +153 -0
  50. package/dist-types/ts3.4/BedrockAgentClient.d.ts +54 -0
  51. package/dist-types/ts3.4/commands/AssociateAgentCollaboratorCommand.d.ts +51 -0
  52. package/dist-types/ts3.4/commands/AssociateAgentKnowledgeBaseCommand.d.ts +1 -1
  53. package/dist-types/ts3.4/commands/CreateKnowledgeBaseCommand.d.ts +1 -1
  54. package/dist-types/ts3.4/commands/DeleteKnowledgeBaseCommand.d.ts +1 -1
  55. package/dist-types/ts3.4/commands/DeleteKnowledgeBaseDocumentsCommand.d.ts +51 -0
  56. package/dist-types/ts3.4/commands/DisassociateAgentCollaboratorCommand.d.ts +51 -0
  57. package/dist-types/ts3.4/commands/DisassociateAgentKnowledgeBaseCommand.d.ts +1 -1
  58. package/dist-types/ts3.4/commands/GetAgentCollaboratorCommand.d.ts +51 -0
  59. package/dist-types/ts3.4/commands/GetKnowledgeBaseDocumentsCommand.d.ts +51 -0
  60. package/dist-types/ts3.4/commands/IngestKnowledgeBaseDocumentsCommand.d.ts +51 -0
  61. package/dist-types/ts3.4/commands/ListAgentCollaboratorsCommand.d.ts +51 -0
  62. package/dist-types/ts3.4/commands/ListKnowledgeBaseDocumentsCommand.d.ts +51 -0
  63. package/dist-types/ts3.4/commands/UpdateAgentCollaboratorCommand.d.ts +51 -0
  64. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  65. package/dist-types/ts3.4/models/models_0.d.ts +185 -153
  66. package/dist-types/ts3.4/models/models_1.d.ts +270 -4
  67. package/dist-types/ts3.4/pagination/ListAgentCollaboratorsPaginator.d.ts +11 -0
  68. package/dist-types/ts3.4/pagination/ListKnowledgeBaseDocumentsPaginator.d.ts +11 -0
  69. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  70. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
  71. package/package.json +1 -1
@@ -769,6 +769,19 @@ export interface UpdateAgentActionGroupResponse {
769
769
  */
770
770
  agentActionGroup: AgentActionGroup | undefined;
771
771
  }
772
+ /**
773
+ * @public
774
+ * @enum
775
+ */
776
+ export declare const AgentCollaboration: {
777
+ readonly DISABLED: "DISABLED";
778
+ readonly SUPERVISOR: "SUPERVISOR";
779
+ readonly SUPERVISOR_ROUTER: "SUPERVISOR_ROUTER";
780
+ };
781
+ /**
782
+ * @public
783
+ */
784
+ export type AgentCollaboration = (typeof AgentCollaboration)[keyof typeof AgentCollaboration];
772
785
  /**
773
786
  * @public
774
787
  * @enum
@@ -1017,6 +1030,11 @@ export interface PromptConfiguration {
1017
1030
  * @public
1018
1031
  */
1019
1032
  parserMode?: CreationMode | undefined;
1033
+ /**
1034
+ * <p>The agent's foundation model.</p>
1035
+ * @public
1036
+ */
1037
+ foundationModel?: string | undefined;
1020
1038
  }
1021
1039
  /**
1022
1040
  * <p>Contains configurations to override prompts in different parts of an agent sequence. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html">Advanced prompts</a>.</p>
@@ -1178,6 +1196,11 @@ export interface Agent {
1178
1196
  * @public
1179
1197
  */
1180
1198
  memoryConfiguration?: MemoryConfiguration | undefined;
1199
+ /**
1200
+ * <p>The agent's collaboration settings.</p>
1201
+ * @public
1202
+ */
1203
+ agentCollaboration?: AgentCollaboration | undefined;
1181
1204
  }
1182
1205
  /**
1183
1206
  * <p>Contains details about the routing configuration of the alias.</p>
@@ -1356,6 +1379,331 @@ export interface AgentAliasSummary {
1356
1379
  */
1357
1380
  updatedAt: Date | undefined;
1358
1381
  }
1382
+ /**
1383
+ * <p>An agent descriptor.</p>
1384
+ * @public
1385
+ */
1386
+ export interface AgentDescriptor {
1387
+ /**
1388
+ * <p>The agent's alias ARN.</p>
1389
+ * @public
1390
+ */
1391
+ aliasArn?: string | undefined;
1392
+ }
1393
+ /**
1394
+ * @public
1395
+ * @enum
1396
+ */
1397
+ export declare const RelayConversationHistory: {
1398
+ readonly DISABLED: "DISABLED";
1399
+ readonly TO_COLLABORATOR: "TO_COLLABORATOR";
1400
+ };
1401
+ /**
1402
+ * @public
1403
+ */
1404
+ export type RelayConversationHistory = (typeof RelayConversationHistory)[keyof typeof RelayConversationHistory];
1405
+ /**
1406
+ * <p>An agent collaborator.</p>
1407
+ * @public
1408
+ */
1409
+ export interface AgentCollaborator {
1410
+ /**
1411
+ * <p>The collaborator's agent ID.</p>
1412
+ * @public
1413
+ */
1414
+ agentId: string | undefined;
1415
+ /**
1416
+ * <p>The collaborator's agent version.</p>
1417
+ * @public
1418
+ */
1419
+ agentVersion: string | undefined;
1420
+ /**
1421
+ * <p>The collaborator's agent descriptor.</p>
1422
+ * @public
1423
+ */
1424
+ agentDescriptor: AgentDescriptor | undefined;
1425
+ /**
1426
+ * <p>The collaborator's collaborator ID.</p>
1427
+ * @public
1428
+ */
1429
+ collaboratorId: string | undefined;
1430
+ /**
1431
+ * <p>The collaborator's instructions.</p>
1432
+ * @public
1433
+ */
1434
+ collaborationInstruction: string | undefined;
1435
+ /**
1436
+ * <p>The collaborator's collaborator name.</p>
1437
+ * @public
1438
+ */
1439
+ collaboratorName: string | undefined;
1440
+ /**
1441
+ * <p>When the collaborator was created.</p>
1442
+ * @public
1443
+ */
1444
+ createdAt: Date | undefined;
1445
+ /**
1446
+ * <p>When the collaborator was updated.</p>
1447
+ * @public
1448
+ */
1449
+ lastUpdatedAt: Date | undefined;
1450
+ /**
1451
+ * <p>The collaborator's relay conversation history.</p>
1452
+ * @public
1453
+ */
1454
+ relayConversationHistory?: RelayConversationHistory | undefined;
1455
+ /**
1456
+ * <p>The collaborator's client token.</p>
1457
+ * @public
1458
+ */
1459
+ clientToken?: string | undefined;
1460
+ }
1461
+ /**
1462
+ * @public
1463
+ */
1464
+ export interface AssociateAgentCollaboratorRequest {
1465
+ /**
1466
+ * <p>The agent's ID.</p>
1467
+ * @public
1468
+ */
1469
+ agentId: string | undefined;
1470
+ /**
1471
+ * <p>An agent version.</p>
1472
+ * @public
1473
+ */
1474
+ agentVersion: string | undefined;
1475
+ /**
1476
+ * <p>The alias of the collaborator agent.</p>
1477
+ * @public
1478
+ */
1479
+ agentDescriptor: AgentDescriptor | undefined;
1480
+ /**
1481
+ * <p>A name for the collaborator.</p>
1482
+ * @public
1483
+ */
1484
+ collaboratorName: string | undefined;
1485
+ /**
1486
+ * <p>Instruction for the collaborator.</p>
1487
+ * @public
1488
+ */
1489
+ collaborationInstruction: string | undefined;
1490
+ /**
1491
+ * <p>A relay conversation history for the collaborator.</p>
1492
+ * @public
1493
+ */
1494
+ relayConversationHistory?: RelayConversationHistory | undefined;
1495
+ /**
1496
+ * <p>A client token.</p>
1497
+ * @public
1498
+ */
1499
+ clientToken?: string | undefined;
1500
+ }
1501
+ /**
1502
+ * @public
1503
+ */
1504
+ export interface AssociateAgentCollaboratorResponse {
1505
+ /**
1506
+ * <p>Details about the collaborator.</p>
1507
+ * @public
1508
+ */
1509
+ agentCollaborator: AgentCollaborator | undefined;
1510
+ }
1511
+ /**
1512
+ * @public
1513
+ */
1514
+ export interface DisassociateAgentCollaboratorRequest {
1515
+ /**
1516
+ * <p>An agent ID.</p>
1517
+ * @public
1518
+ */
1519
+ agentId: string | undefined;
1520
+ /**
1521
+ * <p>The agent's version.</p>
1522
+ * @public
1523
+ */
1524
+ agentVersion: string | undefined;
1525
+ /**
1526
+ * <p>The collaborator's ID.</p>
1527
+ * @public
1528
+ */
1529
+ collaboratorId: string | undefined;
1530
+ }
1531
+ /**
1532
+ * @public
1533
+ */
1534
+ export interface DisassociateAgentCollaboratorResponse {
1535
+ }
1536
+ /**
1537
+ * @public
1538
+ */
1539
+ export interface GetAgentCollaboratorRequest {
1540
+ /**
1541
+ * <p>The agent's ID.</p>
1542
+ * @public
1543
+ */
1544
+ agentId: string | undefined;
1545
+ /**
1546
+ * <p>The agent's version.</p>
1547
+ * @public
1548
+ */
1549
+ agentVersion: string | undefined;
1550
+ /**
1551
+ * <p>The collaborator's ID.</p>
1552
+ * @public
1553
+ */
1554
+ collaboratorId: string | undefined;
1555
+ }
1556
+ /**
1557
+ * @public
1558
+ */
1559
+ export interface GetAgentCollaboratorResponse {
1560
+ /**
1561
+ * <p>Details about the collaborator.</p>
1562
+ * @public
1563
+ */
1564
+ agentCollaborator: AgentCollaborator | undefined;
1565
+ }
1566
+ /**
1567
+ * @public
1568
+ */
1569
+ export interface ListAgentCollaboratorsRequest {
1570
+ /**
1571
+ * <p>The agent's ID.</p>
1572
+ * @public
1573
+ */
1574
+ agentId: string | undefined;
1575
+ /**
1576
+ * <p>The agent's version.</p>
1577
+ * @public
1578
+ */
1579
+ agentVersion: string | undefined;
1580
+ /**
1581
+ * <p>The maximum number of agent collaborators to return in one page of results.</p>
1582
+ * @public
1583
+ */
1584
+ maxResults?: number | undefined;
1585
+ /**
1586
+ * <p>Specify the pagination token from a previous request to retrieve the next page of results.</p>
1587
+ * @public
1588
+ */
1589
+ nextToken?: string | undefined;
1590
+ }
1591
+ /**
1592
+ * <p>An agent collaborator summary.</p>
1593
+ * @public
1594
+ */
1595
+ export interface AgentCollaboratorSummary {
1596
+ /**
1597
+ * <p>The collaborator's agent ID.</p>
1598
+ * @public
1599
+ */
1600
+ agentId: string | undefined;
1601
+ /**
1602
+ * <p>The collaborator's agent version.</p>
1603
+ * @public
1604
+ */
1605
+ agentVersion: string | undefined;
1606
+ /**
1607
+ * <p>The collaborator's ID.</p>
1608
+ * @public
1609
+ */
1610
+ collaboratorId: string | undefined;
1611
+ /**
1612
+ * <p>The collaborator's agent descriptor.</p>
1613
+ * @public
1614
+ */
1615
+ agentDescriptor: AgentDescriptor | undefined;
1616
+ /**
1617
+ * <p>The collaborator's collaboration instruction.</p>
1618
+ * @public
1619
+ */
1620
+ collaborationInstruction: string | undefined;
1621
+ /**
1622
+ * <p>The collaborator's relay conversation history.</p>
1623
+ * @public
1624
+ */
1625
+ relayConversationHistory: RelayConversationHistory | undefined;
1626
+ /**
1627
+ * <p>The collaborator's name.</p>
1628
+ * @public
1629
+ */
1630
+ collaboratorName: string | undefined;
1631
+ /**
1632
+ * <p>When the collaborator was created.</p>
1633
+ * @public
1634
+ */
1635
+ createdAt: Date | undefined;
1636
+ /**
1637
+ * <p>When the collaborator was last updated.</p>
1638
+ * @public
1639
+ */
1640
+ lastUpdatedAt: Date | undefined;
1641
+ }
1642
+ /**
1643
+ * @public
1644
+ */
1645
+ export interface ListAgentCollaboratorsResponse {
1646
+ /**
1647
+ * <p>A list of collaborator summaries.</p>
1648
+ * @public
1649
+ */
1650
+ agentCollaboratorSummaries: AgentCollaboratorSummary[] | undefined;
1651
+ /**
1652
+ * <p>Specify the pagination token from a previous request to retrieve the next page of results.</p>
1653
+ * @public
1654
+ */
1655
+ nextToken?: string | undefined;
1656
+ }
1657
+ /**
1658
+ * @public
1659
+ */
1660
+ export interface UpdateAgentCollaboratorRequest {
1661
+ /**
1662
+ * <p>The agent's ID.</p>
1663
+ * @public
1664
+ */
1665
+ agentId: string | undefined;
1666
+ /**
1667
+ * <p>The agent's version.</p>
1668
+ * @public
1669
+ */
1670
+ agentVersion: string | undefined;
1671
+ /**
1672
+ * <p>The collaborator's ID.</p>
1673
+ * @public
1674
+ */
1675
+ collaboratorId: string | undefined;
1676
+ /**
1677
+ * <p>An agent descriptor for the agent collaborator.</p>
1678
+ * @public
1679
+ */
1680
+ agentDescriptor: AgentDescriptor | undefined;
1681
+ /**
1682
+ * <p>The collaborator's name.</p>
1683
+ * @public
1684
+ */
1685
+ collaboratorName: string | undefined;
1686
+ /**
1687
+ * <p>Instruction for the collaborator.</p>
1688
+ * @public
1689
+ */
1690
+ collaborationInstruction: string | undefined;
1691
+ /**
1692
+ * <p>A relay conversation history for the collaborator.</p>
1693
+ * @public
1694
+ */
1695
+ relayConversationHistory?: RelayConversationHistory | undefined;
1696
+ }
1697
+ /**
1698
+ * @public
1699
+ */
1700
+ export interface UpdateAgentCollaboratorResponse {
1701
+ /**
1702
+ * <p>Details about the collaborator.</p>
1703
+ * @public
1704
+ */
1705
+ agentCollaborator: AgentCollaborator | undefined;
1706
+ }
1359
1707
  /**
1360
1708
  * <p>Defines an agent node in your flow. You specify the agent to invoke at this point in the flow. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html">Node types in Amazon Bedrock works</a> in the Amazon Bedrock User Guide.</p>
1361
1709
  * @public
@@ -1544,6 +1892,11 @@ export interface CreateAgentRequest {
1544
1892
  * @public
1545
1893
  */
1546
1894
  memoryConfiguration?: MemoryConfiguration | undefined;
1895
+ /**
1896
+ * <p>The agent's collaboration role.</p>
1897
+ * @public
1898
+ */
1899
+ agentCollaboration?: AgentCollaboration | undefined;
1547
1900
  }
1548
1901
  /**
1549
1902
  * @public
@@ -1803,6 +2156,11 @@ export interface UpdateAgentRequest {
1803
2156
  * @public
1804
2157
  */
1805
2158
  memoryConfiguration?: MemoryConfiguration | undefined;
2159
+ /**
2160
+ * <p>The agent's collaboration role.</p>
2161
+ * @public
2162
+ */
2163
+ agentCollaboration?: AgentCollaboration | undefined;
1806
2164
  }
1807
2165
  /**
1808
2166
  * @public
@@ -1912,6 +2270,11 @@ export interface AgentVersion {
1912
2270
  * @public
1913
2271
  */
1914
2272
  memoryConfiguration?: MemoryConfiguration | undefined;
2273
+ /**
2274
+ * <p>The agent's collaboration settings.</p>
2275
+ * @public
2276
+ */
2277
+ agentCollaboration?: AgentCollaboration | undefined;
1915
2278
  }
1916
2279
  /**
1917
2280
  * <p>Contains details about a version of an agent.</p>
@@ -2490,6 +2853,7 @@ export interface SharePointDataSourceConfiguration {
2490
2853
  */
2491
2854
  export declare const DataSourceType: {
2492
2855
  readonly CONFLUENCE: "CONFLUENCE";
2856
+ readonly CUSTOM: "CUSTOM";
2493
2857
  readonly S3: "S3";
2494
2858
  readonly SALESFORCE: "SALESFORCE";
2495
2859
  readonly SHAREPOINT: "SHAREPOINT";
@@ -7320,626 +7684,332 @@ export interface StopIngestionJobResponse {
7320
7684
  ingestionJob: IngestionJob | undefined;
7321
7685
  }
7322
7686
  /**
7687
+ * <p>Contains information about the identifier of the document to ingest into a custom data source.</p>
7323
7688
  * @public
7324
7689
  */
7325
- export interface AssociateAgentKnowledgeBaseRequest {
7690
+ export interface CustomDocumentIdentifier {
7326
7691
  /**
7327
- * <p>The unique identifier of the agent with which you want to associate the knowledge base.</p>
7692
+ * <p>The identifier of the document to ingest into a custom data source.</p>
7328
7693
  * @public
7329
7694
  */
7330
- agentId: string | undefined;
7331
- /**
7332
- * <p>The version of the agent with which you want to associate the knowledge base.</p>
7333
- * @public
7334
- */
7335
- agentVersion: string | undefined;
7336
- /**
7337
- * <p>The unique identifier of the knowledge base to associate with the agent.</p>
7338
- * @public
7339
- */
7340
- knowledgeBaseId: string | undefined;
7341
- /**
7342
- * <p>A description of what the agent should use the knowledge base for.</p>
7343
- * @public
7344
- */
7345
- description: string | undefined;
7346
- /**
7347
- * <p>Specifies whether to use the knowledge base or not when sending an <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html">InvokeAgent</a> request.</p>
7348
- * @public
7349
- */
7350
- knowledgeBaseState?: KnowledgeBaseState | undefined;
7351
- }
7352
- /**
7353
- * @public
7354
- */
7355
- export interface AssociateAgentKnowledgeBaseResponse {
7356
- /**
7357
- * <p>Contains details about the knowledge base that has been associated with the agent.</p>
7358
- * @public
7359
- */
7360
- agentKnowledgeBase: AgentKnowledgeBase | undefined;
7695
+ id: string | undefined;
7361
7696
  }
7362
7697
  /**
7363
7698
  * @public
7364
7699
  * @enum
7365
7700
  */
7366
- export declare const KnowledgeBaseType: {
7367
- readonly VECTOR: "VECTOR";
7368
- };
7369
- /**
7370
- * @public
7371
- */
7372
- export type KnowledgeBaseType = (typeof KnowledgeBaseType)[keyof typeof KnowledgeBaseType];
7373
- /**
7374
- * @public
7375
- * @enum
7376
- */
7377
- export declare const EmbeddingDataType: {
7378
- readonly BINARY: "BINARY";
7379
- readonly FLOAT32: "FLOAT32";
7701
+ export declare const ContentDataSourceType: {
7702
+ readonly CUSTOM: "CUSTOM";
7703
+ readonly S3: "S3";
7380
7704
  };
7381
7705
  /**
7382
7706
  * @public
7383
7707
  */
7384
- export type EmbeddingDataType = (typeof EmbeddingDataType)[keyof typeof EmbeddingDataType];
7385
- /**
7386
- * <p>The vector configuration details for the Bedrock embeddings model.</p>
7387
- * @public
7388
- */
7389
- export interface BedrockEmbeddingModelConfiguration {
7390
- /**
7391
- * <p>The dimensions details for the vector configuration used on the Bedrock embeddings model.</p>
7392
- * @public
7393
- */
7394
- dimensions?: number | undefined;
7395
- /**
7396
- * <p>The data type for the vectors when using a model to convert text into vector
7397
- * embeddings. The model must support the specified data type for vector embeddings.
7398
- * Floating-point (float32) is the default data type, and is supported by most models
7399
- * for vector embeddings. See <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-supported.html">Supported embeddings
7400
- * models</a> for information on the available models and their vector data types.</p>
7401
- * @public
7402
- */
7403
- embeddingDataType?: EmbeddingDataType | undefined;
7404
- }
7708
+ export type ContentDataSourceType = (typeof ContentDataSourceType)[keyof typeof ContentDataSourceType];
7405
7709
  /**
7406
- * <p>The configuration details for the embeddings model.</p>
7710
+ * <p>Contains information that identifies the document.</p>
7407
7711
  * @public
7408
7712
  */
7409
- export interface EmbeddingModelConfiguration {
7713
+ export interface DocumentIdentifier {
7410
7714
  /**
7411
- * <p>The vector configuration details on the Bedrock embeddings model.</p>
7715
+ * <p>The type of data source connected to the knowledge base that contains the document.</p>
7412
7716
  * @public
7413
7717
  */
7414
- bedrockEmbeddingModelConfiguration?: BedrockEmbeddingModelConfiguration | undefined;
7415
- }
7416
- /**
7417
- * <p>Contains details about the model used to create vector embeddings for the knowledge base.</p>
7418
- * @public
7419
- */
7420
- export interface VectorKnowledgeBaseConfiguration {
7421
- /**
7422
- * <p>The Amazon Resource Name (ARN) of the model or inference profile used to create vector embeddings for the knowledge base.</p>
7423
- * @public
7424
- */
7425
- embeddingModelArn: string | undefined;
7426
- /**
7427
- * <p>The embeddings model configuration details for the vector model used in Knowledge Base.</p>
7428
- * @public
7429
- */
7430
- embeddingModelConfiguration?: EmbeddingModelConfiguration | undefined;
7431
- }
7432
- /**
7433
- * <p>Contains details about the vector embeddings configuration of the knowledge base.</p>
7434
- * @public
7435
- */
7436
- export interface KnowledgeBaseConfiguration {
7437
- /**
7438
- * <p>The type of data that the data source is converted into for the knowledge base.</p>
7439
- * @public
7440
- */
7441
- type: KnowledgeBaseType | undefined;
7442
- /**
7443
- * <p>Contains details about the model that's used to convert the data source into vector embeddings.</p>
7444
- * @public
7445
- */
7446
- vectorKnowledgeBaseConfiguration?: VectorKnowledgeBaseConfiguration | undefined;
7447
- }
7448
- /**
7449
- * <p>Contains the names of the fields to which to map information about the vector store.</p>
7450
- * @public
7451
- */
7452
- export interface MongoDbAtlasFieldMapping {
7453
- /**
7454
- * <p>The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.</p>
7455
- * @public
7456
- */
7457
- vectorField: string | undefined;
7458
- /**
7459
- * <p>The name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.</p>
7460
- * @public
7461
- */
7462
- textField: string | undefined;
7463
- /**
7464
- * <p>The name of the field in which Amazon Bedrock stores metadata about the vector store.</p>
7465
- * @public
7466
- */
7467
- metadataField: string | undefined;
7468
- }
7469
- /**
7470
- * <p>Contains details about the storage configuration of the knowledge base in MongoDB Atlas. </p>
7471
- * @public
7472
- */
7473
- export interface MongoDbAtlasConfiguration {
7474
- /**
7475
- * <p>The endpoint URL of your MongoDB Atlas cluster for your knowledge base.</p>
7476
- * @public
7477
- */
7478
- endpoint: string | undefined;
7479
- /**
7480
- * <p>The database name in your MongoDB Atlas cluster for your knowledge base.</p>
7481
- * @public
7482
- */
7483
- databaseName: string | undefined;
7484
- /**
7485
- * <p>The collection name of the knowledge base in MongoDB Atlas.</p>
7486
- * @public
7487
- */
7488
- collectionName: string | undefined;
7489
- /**
7490
- * <p>The name of the MongoDB Atlas vector search index.</p>
7491
- * @public
7492
- */
7493
- vectorIndexName: string | undefined;
7494
- /**
7495
- * <p>The Amazon Resource Name (ARN) of the secret that you created in Secrets Manager that contains user credentials for your MongoDB Atlas cluster.</p>
7496
- * @public
7497
- */
7498
- credentialsSecretArn: string | undefined;
7718
+ dataSourceType: ContentDataSourceType | undefined;
7499
7719
  /**
7500
- * <p>Contains the names of the fields to which to map information about the vector store.</p>
7720
+ * <p>Contains information that identifies the document in an S3 data source.</p>
7501
7721
  * @public
7502
7722
  */
7503
- fieldMapping: MongoDbAtlasFieldMapping | undefined;
7723
+ s3?: S3Location | undefined;
7504
7724
  /**
7505
- * <p>The name of the VPC endpoint service in your account that is connected to your MongoDB Atlas cluster.</p>
7725
+ * <p>Contains information that identifies the document in a custom data source.</p>
7506
7726
  * @public
7507
7727
  */
7508
- endpointServiceName?: string | undefined;
7728
+ custom?: CustomDocumentIdentifier | undefined;
7509
7729
  }
7510
7730
  /**
7511
- * <p>Contains the names of the fields to which to map information about the vector store.</p>
7512
7731
  * @public
7513
7732
  */
7514
- export interface OpenSearchServerlessFieldMapping {
7733
+ export interface DeleteKnowledgeBaseDocumentsRequest {
7515
7734
  /**
7516
- * <p>The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.</p>
7735
+ * <p>The unique identifier of the knowledge base that is connected to the data source.</p>
7517
7736
  * @public
7518
7737
  */
7519
- vectorField: string | undefined;
7520
- /**
7521
- * <p>The name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.</p>
7522
- * @public
7523
- */
7524
- textField: string | undefined;
7525
- /**
7526
- * <p>The name of the field in which Amazon Bedrock stores metadata about the vector store.</p>
7527
- * @public
7528
- */
7529
- metadataField: string | undefined;
7530
- }
7531
- /**
7532
- * <p>Contains details about the storage configuration of the knowledge base in Amazon OpenSearch Service. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-oss.html">Create a vector index in Amazon OpenSearch Service</a>.</p>
7533
- * @public
7534
- */
7535
- export interface OpenSearchServerlessConfiguration {
7738
+ knowledgeBaseId: string | undefined;
7536
7739
  /**
7537
- * <p>The Amazon Resource Name (ARN) of the OpenSearch Service vector store.</p>
7740
+ * <p>The unique identifier of the data source that contains the documents.</p>
7538
7741
  * @public
7539
7742
  */
7540
- collectionArn: string | undefined;
7743
+ dataSourceId: string | undefined;
7541
7744
  /**
7542
- * <p>The name of the vector store.</p>
7745
+ * <p>A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request,
7746
+ * Amazon Bedrock ignores the request, but does not return an error. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a>.</p>
7543
7747
  * @public
7544
7748
  */
7545
- vectorIndexName: string | undefined;
7749
+ clientToken?: string | undefined;
7546
7750
  /**
7547
- * <p>Contains the names of the fields to which to map information about the vector store.</p>
7751
+ * <p>A list of objects, each of which contains information to identify a document to delete.</p>
7548
7752
  * @public
7549
7753
  */
7550
- fieldMapping: OpenSearchServerlessFieldMapping | undefined;
7754
+ documentIdentifiers: DocumentIdentifier[] | undefined;
7551
7755
  }
7552
7756
  /**
7553
- * <p>Contains the names of the fields to which to map information about the vector store.</p>
7554
7757
  * @public
7758
+ * @enum
7555
7759
  */
7556
- export interface PineconeFieldMapping {
7557
- /**
7558
- * <p>The name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.</p>
7559
- * @public
7560
- */
7561
- textField: string | undefined;
7562
- /**
7563
- * <p>The name of the field in which Amazon Bedrock stores metadata about the vector store.</p>
7564
- * @public
7565
- */
7566
- metadataField: string | undefined;
7567
- }
7760
+ export declare const DocumentStatus: {
7761
+ readonly DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS";
7762
+ readonly DELETING: "DELETING";
7763
+ readonly FAILED: "FAILED";
7764
+ readonly IGNORED: "IGNORED";
7765
+ readonly INDEXED: "INDEXED";
7766
+ readonly IN_PROGRESS: "IN_PROGRESS";
7767
+ readonly METADATA_PARTIALLY_INDEXED: "METADATA_PARTIALLY_INDEXED";
7768
+ readonly METADATA_UPDATE_FAILED: "METADATA_UPDATE_FAILED";
7769
+ readonly NOT_FOUND: "NOT_FOUND";
7770
+ readonly PARTIALLY_INDEXED: "PARTIALLY_INDEXED";
7771
+ readonly PENDING: "PENDING";
7772
+ readonly STARTING: "STARTING";
7773
+ };
7568
7774
  /**
7569
- * <p>Contains details about the storage configuration of the knowledge base in Pinecone. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-pinecone.html">Create a vector index in Pinecone</a>.</p>
7570
7775
  * @public
7571
7776
  */
7572
- export interface PineconeConfiguration {
7573
- /**
7574
- * <p>The endpoint URL for your index management page.</p>
7575
- * @public
7576
- */
7577
- connectionString: string | undefined;
7578
- /**
7579
- * <p>The Amazon Resource Name (ARN) of the secret that you created in Secrets Manager that is linked to your Pinecone API key.</p>
7580
- * @public
7581
- */
7582
- credentialsSecretArn: string | undefined;
7583
- /**
7584
- * <p>The namespace to be used to write new data to your database.</p>
7585
- * @public
7586
- */
7587
- namespace?: string | undefined;
7588
- /**
7589
- * <p>Contains the names of the fields to which to map information about the vector store.</p>
7590
- * @public
7591
- */
7592
- fieldMapping: PineconeFieldMapping | undefined;
7593
- }
7777
+ export type DocumentStatus = (typeof DocumentStatus)[keyof typeof DocumentStatus];
7594
7778
  /**
7595
- * <p>Contains the names of the fields to which to map information about the vector store.</p>
7779
+ * <p>Contains the details for a document that was ingested or deleted.</p>
7596
7780
  * @public
7597
7781
  */
7598
- export interface RdsFieldMapping {
7599
- /**
7600
- * <p>The name of the field in which Amazon Bedrock stores the ID for each entry.</p>
7601
- * @public
7602
- */
7603
- primaryKeyField: string | undefined;
7604
- /**
7605
- * <p>The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.</p>
7606
- * @public
7607
- */
7608
- vectorField: string | undefined;
7609
- /**
7610
- * <p>The name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.</p>
7611
- * @public
7612
- */
7613
- textField: string | undefined;
7782
+ export interface KnowledgeBaseDocumentDetail {
7614
7783
  /**
7615
- * <p>The name of the field in which Amazon Bedrock stores metadata about the vector store.</p>
7784
+ * <p>The identifier of the knowledge base that the document was ingested into or deleted from.</p>
7616
7785
  * @public
7617
7786
  */
7618
- metadataField: string | undefined;
7619
- }
7620
- /**
7621
- * <p>Contains details about the storage configuration of the knowledge base in Amazon RDS. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-rds.html">Create a vector index in Amazon RDS</a>.</p>
7622
- * @public
7623
- */
7624
- export interface RdsConfiguration {
7787
+ knowledgeBaseId: string | undefined;
7625
7788
  /**
7626
- * <p>The Amazon Resource Name (ARN) of the vector store.</p>
7789
+ * <p>The identifier of the data source connected to the knowledge base that the document was ingested into or deleted from.</p>
7627
7790
  * @public
7628
7791
  */
7629
- resourceArn: string | undefined;
7792
+ dataSourceId: string | undefined;
7630
7793
  /**
7631
- * <p>The Amazon Resource Name (ARN) of the secret that you created in Secrets Manager that is linked to your Amazon RDS database.</p>
7794
+ * <p>The ingestion status of the document. The following statuses are possible:</p>
7795
+ * <ul>
7796
+ * <li>
7797
+ * <p>STARTED – You submitted the ingestion job containing the document.</p>
7798
+ * </li>
7799
+ * <li>
7800
+ * <p>PENDING – The document is waiting to be ingested.</p>
7801
+ * </li>
7802
+ * <li>
7803
+ * <p>IN_PROGRESS – The document is being ingested.</p>
7804
+ * </li>
7805
+ * <li>
7806
+ * <p>INDEXED – The document was successfully indexed.</p>
7807
+ * </li>
7808
+ * <li>
7809
+ * <p>PARTIALLY_INDEXED – The document was partially indexed.</p>
7810
+ * </li>
7811
+ * <li>
7812
+ * <p>METADATA_PARTIALLY_INDEXED – You submitted metadata for an existing document and it was partially indexed.</p>
7813
+ * </li>
7814
+ * <li>
7815
+ * <p>METADATA_UPDATE_FAILED – You submitted a metadata update for an existing document but it failed.</p>
7816
+ * </li>
7817
+ * <li>
7818
+ * <p>FAILED – The document failed to be ingested.</p>
7819
+ * </li>
7820
+ * <li>
7821
+ * <p>NOT_FOUND – The document wasn't found.</p>
7822
+ * </li>
7823
+ * <li>
7824
+ * <p>IGNORED – The document was ignored during ingestion.</p>
7825
+ * </li>
7826
+ * <li>
7827
+ * <p>DELETING – You submitted the delete job containing the document.</p>
7828
+ * </li>
7829
+ * <li>
7830
+ * <p>DELETE_IN_PROGRESS – The document is being deleted.</p>
7831
+ * </li>
7832
+ * </ul>
7632
7833
  * @public
7633
7834
  */
7634
- credentialsSecretArn: string | undefined;
7835
+ status: DocumentStatus | undefined;
7635
7836
  /**
7636
- * <p>The name of your Amazon RDS database.</p>
7837
+ * <p>Contains information that identifies the document.</p>
7637
7838
  * @public
7638
7839
  */
7639
- databaseName: string | undefined;
7840
+ identifier: DocumentIdentifier | undefined;
7640
7841
  /**
7641
- * <p>The name of the table in the database.</p>
7842
+ * <p>The reason for the status. Appears alongside the status <code>IGNORED</code>.</p>
7642
7843
  * @public
7643
7844
  */
7644
- tableName: string | undefined;
7845
+ statusReason?: string | undefined;
7645
7846
  /**
7646
- * <p>Contains the names of the fields to which to map information about the vector store.</p>
7847
+ * <p>The date and time at which the document was last updated.</p>
7647
7848
  * @public
7648
7849
  */
7649
- fieldMapping: RdsFieldMapping | undefined;
7850
+ updatedAt?: Date | undefined;
7650
7851
  }
7651
7852
  /**
7652
- * <p>Contains the names of the fields to which to map information about the vector store.</p>
7653
7853
  * @public
7654
7854
  */
7655
- export interface RedisEnterpriseCloudFieldMapping {
7656
- /**
7657
- * <p>The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.</p>
7658
- * @public
7659
- */
7660
- vectorField: string | undefined;
7855
+ export interface DeleteKnowledgeBaseDocumentsResponse {
7661
7856
  /**
7662
- * <p>The name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.</p>
7857
+ * <p>A list of objects, each of which contains information about the documents that were deleted.</p>
7663
7858
  * @public
7664
7859
  */
7665
- textField: string | undefined;
7666
- /**
7667
- * <p>The name of the field in which Amazon Bedrock stores metadata about the vector store.</p>
7668
- * @public
7669
- */
7670
- metadataField: string | undefined;
7860
+ documentDetails?: KnowledgeBaseDocumentDetail[] | undefined;
7671
7861
  }
7672
7862
  /**
7673
- * <p>Contains details about the storage configuration of the knowledge base in Redis Enterprise Cloud. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-oss.html">Create a vector index in Redis Enterprise Cloud</a>.</p>
7674
7863
  * @public
7675
7864
  */
7676
- export interface RedisEnterpriseCloudConfiguration {
7865
+ export interface GetKnowledgeBaseDocumentsRequest {
7677
7866
  /**
7678
- * <p>The endpoint URL of the Redis Enterprise Cloud database.</p>
7867
+ * <p>The unique identifier of the knowledge base that is connected to the data source.</p>
7679
7868
  * @public
7680
7869
  */
7681
- endpoint: string | undefined;
7682
- /**
7683
- * <p>The name of the vector index.</p>
7684
- * @public
7685
- */
7686
- vectorIndexName: string | undefined;
7687
- /**
7688
- * <p>The Amazon Resource Name (ARN) of the secret that you created in Secrets Manager that is linked to your Redis Enterprise Cloud database.</p>
7689
- * @public
7690
- */
7691
- credentialsSecretArn: string | undefined;
7692
- /**
7693
- * <p>Contains the names of the fields to which to map information about the vector store.</p>
7694
- * @public
7695
- */
7696
- fieldMapping: RedisEnterpriseCloudFieldMapping | undefined;
7697
- }
7698
- /**
7699
- * @public
7700
- * @enum
7701
- */
7702
- export declare const KnowledgeBaseStorageType: {
7703
- readonly MONGO_DB_ATLAS: "MONGO_DB_ATLAS";
7704
- readonly OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS";
7705
- readonly PINECONE: "PINECONE";
7706
- readonly RDS: "RDS";
7707
- readonly REDIS_ENTERPRISE_CLOUD: "REDIS_ENTERPRISE_CLOUD";
7708
- };
7709
- /**
7710
- * @public
7711
- */
7712
- export type KnowledgeBaseStorageType = (typeof KnowledgeBaseStorageType)[keyof typeof KnowledgeBaseStorageType];
7713
- /**
7714
- * <p>Contains the storage configuration of the knowledge base.</p>
7715
- * @public
7716
- */
7717
- export interface StorageConfiguration {
7718
- /**
7719
- * <p>The vector store service in which the knowledge base is stored.</p>
7720
- * @public
7721
- */
7722
- type: KnowledgeBaseStorageType | undefined;
7723
- /**
7724
- * <p>Contains the storage configuration of the knowledge base in Amazon OpenSearch Service.</p>
7725
- * @public
7726
- */
7727
- opensearchServerlessConfiguration?: OpenSearchServerlessConfiguration | undefined;
7728
- /**
7729
- * <p>Contains the storage configuration of the knowledge base in Pinecone.</p>
7730
- * @public
7731
- */
7732
- pineconeConfiguration?: PineconeConfiguration | undefined;
7733
- /**
7734
- * <p>Contains the storage configuration of the knowledge base in Redis Enterprise Cloud.</p>
7735
- * @public
7736
- */
7737
- redisEnterpriseCloudConfiguration?: RedisEnterpriseCloudConfiguration | undefined;
7870
+ knowledgeBaseId: string | undefined;
7738
7871
  /**
7739
- * <p>Contains details about the storage configuration of the knowledge base in Amazon RDS. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-rds.html">Create a vector index in Amazon RDS</a>.</p>
7872
+ * <p>The unique identifier of the data source that contains the documents.</p>
7740
7873
  * @public
7741
7874
  */
7742
- rdsConfiguration?: RdsConfiguration | undefined;
7875
+ dataSourceId: string | undefined;
7743
7876
  /**
7744
- * <p>Contains the storage configuration of the knowledge base in MongoDB Atlas.</p>
7877
+ * <p>A list of objects, each of which contains information to identify a document for which to retrieve information.</p>
7745
7878
  * @public
7746
7879
  */
7747
- mongoDbAtlasConfiguration?: MongoDbAtlasConfiguration | undefined;
7880
+ documentIdentifiers: DocumentIdentifier[] | undefined;
7748
7881
  }
7749
7882
  /**
7750
7883
  * @public
7751
7884
  */
7752
- export interface CreateKnowledgeBaseRequest {
7753
- /**
7754
- * <p>A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request,
7755
- * Amazon Bedrock ignores the request, but does not return an error. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a>.</p>
7756
- * @public
7757
- */
7758
- clientToken?: string | undefined;
7759
- /**
7760
- * <p>A name for the knowledge base.</p>
7761
- * @public
7762
- */
7763
- name: string | undefined;
7764
- /**
7765
- * <p>A description of the knowledge base.</p>
7766
- * @public
7767
- */
7768
- description?: string | undefined;
7769
- /**
7770
- * <p>The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.</p>
7771
- * @public
7772
- */
7773
- roleArn: string | undefined;
7774
- /**
7775
- * <p>Contains details about the embeddings model used for the knowledge base.</p>
7776
- * @public
7777
- */
7778
- knowledgeBaseConfiguration: KnowledgeBaseConfiguration | undefined;
7779
- /**
7780
- * <p>Contains details about the configuration of the vector database used for the knowledge base.</p>
7781
- * @public
7782
- */
7783
- storageConfiguration: StorageConfiguration | undefined;
7885
+ export interface GetKnowledgeBaseDocumentsResponse {
7784
7886
  /**
7785
- * <p>Specify the key-value pairs for the tags that you want to attach to your knowledge base in this object.</p>
7887
+ * <p>A list of objects, each of which contains information about the documents that were retrieved.</p>
7786
7888
  * @public
7787
7889
  */
7788
- tags?: Record<string, string> | undefined;
7890
+ documentDetails?: KnowledgeBaseDocumentDetail[] | undefined;
7789
7891
  }
7790
7892
  /**
7791
- * @public
7792
- * @enum
7793
- */
7794
- export declare const KnowledgeBaseStatus: {
7795
- readonly ACTIVE: "ACTIVE";
7796
- readonly CREATING: "CREATING";
7797
- readonly DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL";
7798
- readonly DELETING: "DELETING";
7799
- readonly FAILED: "FAILED";
7800
- readonly UPDATING: "UPDATING";
7801
- };
7802
- /**
7803
- * @public
7804
- */
7805
- export type KnowledgeBaseStatus = (typeof KnowledgeBaseStatus)[keyof typeof KnowledgeBaseStatus];
7806
- /**
7807
- * <p>Contains information about a knowledge base.</p>
7893
+ * <p>Contains information about content defined inline in bytes.</p>
7808
7894
  * @public
7809
7895
  */
7810
- export interface KnowledgeBase {
7896
+ export interface ByteContentDoc {
7811
7897
  /**
7812
- * <p>The unique identifier of the knowledge base.</p>
7813
- * @public
7814
- */
7815
- knowledgeBaseId: string | undefined;
7816
- /**
7817
- * <p>The name of the knowledge base.</p>
7818
- * @public
7819
- */
7820
- name: string | undefined;
7821
- /**
7822
- * <p>The Amazon Resource Name (ARN) of the knowledge base.</p>
7823
- * @public
7824
- */
7825
- knowledgeBaseArn: string | undefined;
7826
- /**
7827
- * <p>The description of the knowledge base.</p>
7828
- * @public
7829
- */
7830
- description?: string | undefined;
7831
- /**
7832
- * <p>The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.</p>
7833
- * @public
7834
- */
7835
- roleArn: string | undefined;
7836
- /**
7837
- * <p>Contains details about the embeddings configuration of the knowledge base.</p>
7838
- * @public
7839
- */
7840
- knowledgeBaseConfiguration: KnowledgeBaseConfiguration | undefined;
7841
- /**
7842
- * <p>Contains details about the storage configuration of the knowledge base.</p>
7843
- * @public
7844
- */
7845
- storageConfiguration: StorageConfiguration | undefined;
7846
- /**
7847
- * <p>The status of the knowledge base. The following statuses are possible:</p>
7898
+ * <p>The MIME type of the content. For a list of MIME types, see <a href="https://www.iana.org/assignments/media-types/media-types.xhtml">Media Types</a>. The following MIME types are supported:</p>
7848
7899
  * <ul>
7849
7900
  * <li>
7850
- * <p>CREATING – The knowledge base is being created.</p>
7901
+ * <p>text/plain</p>
7902
+ * </li>
7903
+ * <li>
7904
+ * <p>text/html</p>
7905
+ * </li>
7906
+ * <li>
7907
+ * <p>text/csv</p>
7908
+ * </li>
7909
+ * <li>
7910
+ * <p>text/vtt</p>
7911
+ * </li>
7912
+ * <li>
7913
+ * <p>message/rfc822</p>
7914
+ * </li>
7915
+ * <li>
7916
+ * <p>application/xhtml+xml</p>
7917
+ * </li>
7918
+ * <li>
7919
+ * <p>application/pdf</p>
7920
+ * </li>
7921
+ * <li>
7922
+ * <p>application/msword</p>
7923
+ * </li>
7924
+ * <li>
7925
+ * <p>application/vnd.ms-word.document.macroenabled.12</p>
7926
+ * </li>
7927
+ * <li>
7928
+ * <p>application/vnd.ms-word.template.macroenabled.12</p>
7929
+ * </li>
7930
+ * <li>
7931
+ * <p>application/vnd.ms-excel</p>
7932
+ * </li>
7933
+ * <li>
7934
+ * <p>application/vnd.ms-excel.addin.macroenabled.12</p>
7851
7935
  * </li>
7852
7936
  * <li>
7853
- * <p>ACTIVE – The knowledge base is ready to be queried.</p>
7937
+ * <p>application/vnd.ms-excel.sheet.macroenabled.12</p>
7854
7938
  * </li>
7855
7939
  * <li>
7856
- * <p>DELETING – The knowledge base is being deleted.</p>
7940
+ * <p>application/vnd.ms-excel.template.macroenabled.12</p>
7857
7941
  * </li>
7858
7942
  * <li>
7859
- * <p>UPDATING – The knowledge base is being updated.</p>
7943
+ * <p>application/vnd.ms-excel.sheet.binary.macroenabled.12</p>
7860
7944
  * </li>
7861
7945
  * <li>
7862
- * <p>FAILED – The knowledge base API operation failed.</p>
7946
+ * <p>application/vnd.ms-spreadsheetml</p>
7947
+ * </li>
7948
+ * <li>
7949
+ * <p>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</p>
7950
+ * </li>
7951
+ * <li>
7952
+ * <p>application/vnd.openxmlformats-officedocument.spreadsheetml.template</p>
7953
+ * </li>
7954
+ * <li>
7955
+ * <p>application/vnd.openxmlformats-officedocument.wordprocessingml.document</p>
7956
+ * </li>
7957
+ * <li>
7958
+ * <p>application/vnd.openxmlformats-officedocument.wordprocessingml.template</p>
7863
7959
  * </li>
7864
7960
  * </ul>
7865
7961
  * @public
7866
7962
  */
7867
- status: KnowledgeBaseStatus | undefined;
7868
- /**
7869
- * <p>The time the knowledge base was created.</p>
7870
- * @public
7871
- */
7872
- createdAt: Date | undefined;
7963
+ mimeType: string | undefined;
7873
7964
  /**
7874
- * <p>The time the knowledge base was last updated.</p>
7965
+ * <p>The base64-encoded string of the content.</p>
7875
7966
  * @public
7876
7967
  */
7877
- updatedAt: Date | undefined;
7878
- /**
7879
- * <p>A list of reasons that the API operation on the knowledge base failed.</p>
7880
- * @public
7881
- */
7882
- failureReasons?: string[] | undefined;
7968
+ data: Uint8Array | undefined;
7883
7969
  }
7884
7970
  /**
7971
+ * <p>Contains information about content defined inline in text.</p>
7885
7972
  * @public
7886
7973
  */
7887
- export interface CreateKnowledgeBaseResponse {
7974
+ export interface TextContentDoc {
7888
7975
  /**
7889
- * <p>Contains details about the knowledge base.</p>
7976
+ * <p>The text of the content.</p>
7890
7977
  * @public
7891
7978
  */
7892
- knowledgeBase: KnowledgeBase | undefined;
7979
+ data: string | undefined;
7893
7980
  }
7894
7981
  /**
7895
7982
  * @public
7983
+ * @enum
7896
7984
  */
7897
- export interface DeleteKnowledgeBaseRequest {
7898
- /**
7899
- * <p>The unique identifier of the knowledge base to delete.</p>
7900
- * @public
7901
- */
7902
- knowledgeBaseId: string | undefined;
7903
- }
7985
+ export declare const InlineContentType: {
7986
+ readonly BYTE: "BYTE";
7987
+ readonly TEXT: "TEXT";
7988
+ };
7904
7989
  /**
7905
7990
  * @public
7906
7991
  */
7907
- export interface DeleteKnowledgeBaseResponse {
7908
- /**
7909
- * <p>The unique identifier of the knowledge base that was deleted.</p>
7910
- * @public
7911
- */
7912
- knowledgeBaseId: string | undefined;
7913
- /**
7914
- * <p>The status of the knowledge base and whether it has been successfully deleted.</p>
7915
- * @public
7916
- */
7917
- status: KnowledgeBaseStatus | undefined;
7918
- }
7992
+ export type InlineContentType = (typeof InlineContentType)[keyof typeof InlineContentType];
7919
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>
7920
7995
  * @public
7921
7996
  */
7922
- export interface DisassociateAgentKnowledgeBaseRequest {
7997
+ export interface InlineContent {
7923
7998
  /**
7924
- * <p>The unique identifier of the agent from which to disassociate the knowledge base.</p>
7999
+ * <p>The type of inline content to define.</p>
7925
8000
  * @public
7926
8001
  */
7927
- agentId: string | undefined;
8002
+ type: InlineContentType | undefined;
7928
8003
  /**
7929
- * <p>The version of the agent from which to disassociate the knowledge base.</p>
8004
+ * <p>Contains information about content defined inline in bytes.</p>
7930
8005
  * @public
7931
8006
  */
7932
- agentVersion: string | undefined;
8007
+ byteContent?: ByteContentDoc | undefined;
7933
8008
  /**
7934
- * <p>The unique identifier of the knowledge base to disassociate.</p>
8009
+ * <p>Contains information about content defined inline in text.</p>
7935
8010
  * @public
7936
8011
  */
7937
- knowledgeBaseId: string | undefined;
7938
- }
7939
- /**
7940
- * @public
7941
- */
7942
- export interface DisassociateAgentKnowledgeBaseResponse {
8012
+ textContent?: TextContentDoc | undefined;
7943
8013
  }
7944
8014
  /**
7945
8015
  * @internal
@@ -7981,6 +8051,38 @@ export declare const PromptOverrideConfigurationFilterSensitiveLog: (obj: Prompt
7981
8051
  * @internal
7982
8052
  */
7983
8053
  export declare const AgentFilterSensitiveLog: (obj: Agent) => any;
8054
+ /**
8055
+ * @internal
8056
+ */
8057
+ export declare const AgentCollaboratorFilterSensitiveLog: (obj: AgentCollaborator) => any;
8058
+ /**
8059
+ * @internal
8060
+ */
8061
+ export declare const AssociateAgentCollaboratorRequestFilterSensitiveLog: (obj: AssociateAgentCollaboratorRequest) => any;
8062
+ /**
8063
+ * @internal
8064
+ */
8065
+ export declare const AssociateAgentCollaboratorResponseFilterSensitiveLog: (obj: AssociateAgentCollaboratorResponse) => any;
8066
+ /**
8067
+ * @internal
8068
+ */
8069
+ export declare const GetAgentCollaboratorResponseFilterSensitiveLog: (obj: GetAgentCollaboratorResponse) => any;
8070
+ /**
8071
+ * @internal
8072
+ */
8073
+ export declare const AgentCollaboratorSummaryFilterSensitiveLog: (obj: AgentCollaboratorSummary) => any;
8074
+ /**
8075
+ * @internal
8076
+ */
8077
+ export declare const ListAgentCollaboratorsResponseFilterSensitiveLog: (obj: ListAgentCollaboratorsResponse) => any;
8078
+ /**
8079
+ * @internal
8080
+ */
8081
+ export declare const UpdateAgentCollaboratorRequestFilterSensitiveLog: (obj: UpdateAgentCollaboratorRequest) => any;
8082
+ /**
8083
+ * @internal
8084
+ */
8085
+ export declare const UpdateAgentCollaboratorResponseFilterSensitiveLog: (obj: UpdateAgentCollaboratorResponse) => any;
7984
8086
  /**
7985
8087
  * @internal
7986
8088
  */
@@ -8189,3 +8291,15 @@ export declare const UpdateFlowRequestFilterSensitiveLog: (obj: UpdateFlowReques
8189
8291
  * @internal
8190
8292
  */
8191
8293
  export declare const UpdateFlowResponseFilterSensitiveLog: (obj: UpdateFlowResponse) => any;
8294
+ /**
8295
+ * @internal
8296
+ */
8297
+ export declare const ByteContentDocFilterSensitiveLog: (obj: ByteContentDoc) => any;
8298
+ /**
8299
+ * @internal
8300
+ */
8301
+ export declare const TextContentDocFilterSensitiveLog: (obj: TextContentDoc) => any;
8302
+ /**
8303
+ * @internal
8304
+ */
8305
+ export declare const InlineContentFilterSensitiveLog: (obj: InlineContent) => any;