From 808e71b35b5482bd424d07953cccbcd450657dfe Mon Sep 17 00:00:00 2001 From: awstools Date: Fri, 20 Dec 2024 19:13:28 +0000 Subject: [PATCH] feat(client-bedrock-agent): Support for custom user agent and max web pages crawled for web connector. Support app only credentials for SharePoint connector. Increase agents memory duration limit to 365 days. Support to specify max number of session summaries to include in agent invocation context. --- .../src/commands/CreateAgentCommand.ts | 10 ++- .../src/commands/CreateDataSourceCommand.ts | 8 ++- .../src/commands/GetAgentCommand.ts | 5 +- .../src/commands/GetAgentVersionCommand.ts | 5 +- .../src/commands/GetDataSourceCommand.ts | 4 +- .../src/commands/UpdateAgentCommand.ts | 10 ++- .../src/commands/UpdateDataSourceCommand.ts | 8 ++- .../src/models/models_0.ts | 59 ++++++++++------ .../src/models/models_1.ts | 22 +++++- .../src/protocols/Aws_restJson1.ts | 7 +- .../sdk-codegen/aws-models/bedrock-agent.json | 68 ++++++++++++++++++- 11 files changed, 171 insertions(+), 35 deletions(-) diff --git a/clients/client-bedrock-agent/src/commands/CreateAgentCommand.ts b/clients/client-bedrock-agent/src/commands/CreateAgentCommand.ts index 6a8fb4fd98da..a51f56667bfe 100644 --- a/clients/client-bedrock-agent/src/commands/CreateAgentCommand.ts +++ b/clients/client-bedrock-agent/src/commands/CreateAgentCommand.ts @@ -92,7 +92,7 @@ export interface CreateAgentCommandOutput extends CreateAgentResponse, __Metadat * promptOverrideConfiguration: { // PromptOverrideConfiguration * promptConfigurations: [ // PromptConfigurations // required * { // PromptConfiguration - * promptType: "PRE_PROCESSING" || "ORCHESTRATION" || "POST_PROCESSING" || "KNOWLEDGE_BASE_RESPONSE_GENERATION", + * promptType: "PRE_PROCESSING" || "ORCHESTRATION" || "POST_PROCESSING" || "KNOWLEDGE_BASE_RESPONSE_GENERATION" || "MEMORY_SUMMARIZATION", * promptCreationMode: "DEFAULT" || "OVERRIDDEN", * promptState: "ENABLED" || "DISABLED", * basePromptTemplate: "STRING_VALUE", @@ -120,6 +120,9 @@ export interface CreateAgentCommandOutput extends CreateAgentResponse, __Metadat * "SESSION_SUMMARY", * ], * storageDays: Number("int"), + * sessionSummaryConfiguration: { // SessionSummaryConfiguration + * maxRecentSessions: Number("int"), + * }, * }, * agentCollaboration: "SUPERVISOR" || "SUPERVISOR_ROUTER" || "DISABLED", * }; @@ -157,7 +160,7 @@ export interface CreateAgentCommandOutput extends CreateAgentResponse, __Metadat * // promptOverrideConfiguration: { // PromptOverrideConfiguration * // promptConfigurations: [ // PromptConfigurations // required * // { // PromptConfiguration - * // promptType: "PRE_PROCESSING" || "ORCHESTRATION" || "POST_PROCESSING" || "KNOWLEDGE_BASE_RESPONSE_GENERATION", + * // promptType: "PRE_PROCESSING" || "ORCHESTRATION" || "POST_PROCESSING" || "KNOWLEDGE_BASE_RESPONSE_GENERATION" || "MEMORY_SUMMARIZATION", * // promptCreationMode: "DEFAULT" || "OVERRIDDEN", * // promptState: "ENABLED" || "DISABLED", * // basePromptTemplate: "STRING_VALUE", @@ -185,6 +188,9 @@ export interface CreateAgentCommandOutput extends CreateAgentResponse, __Metadat * // "SESSION_SUMMARY", * // ], * // storageDays: Number("int"), + * // sessionSummaryConfiguration: { // SessionSummaryConfiguration + * // maxRecentSessions: Number("int"), + * // }, * // }, * // agentCollaboration: "SUPERVISOR" || "SUPERVISOR_ROUTER" || "DISABLED", * // }, diff --git a/clients/client-bedrock-agent/src/commands/CreateDataSourceCommand.ts b/clients/client-bedrock-agent/src/commands/CreateDataSourceCommand.ts index cb8dc2ab4703..14784829e9f3 100644 --- a/clients/client-bedrock-agent/src/commands/CreateDataSourceCommand.ts +++ b/clients/client-bedrock-agent/src/commands/CreateDataSourceCommand.ts @@ -70,6 +70,7 @@ export interface CreateDataSourceCommandOutput extends CreateDataSourceResponse, * crawlerConfiguration: { // WebCrawlerConfiguration * crawlerLimits: { // WebCrawlerLimits * rateLimit: Number("int"), + * maxPages: Number("int"), * }, * inclusionFilters: [ // FilterList * "STRING_VALUE", @@ -78,6 +79,7 @@ export interface CreateDataSourceCommandOutput extends CreateDataSourceResponse, * "STRING_VALUE", * ], * scope: "HOST_ONLY" || "SUBDOMAINS", + * userAgent: "STRING_VALUE", * }, * }, * confluenceConfiguration: { // ConfluenceDataSourceConfiguration @@ -137,7 +139,7 @@ export interface CreateDataSourceCommandOutput extends CreateDataSourceResponse, * "STRING_VALUE", * ], * hostType: "ONLINE", // required - * authType: "OAUTH2_CLIENT_CREDENTIALS", // required + * authType: "OAUTH2_CLIENT_CREDENTIALS" || "OAUTH2_SHAREPOINT_APP_ONLY_CLIENT_CREDENTIALS", // required * credentialsSecretArn: "STRING_VALUE", // required * }, * crawlerConfiguration: { // SharePointCrawlerConfiguration @@ -244,6 +246,7 @@ export interface CreateDataSourceCommandOutput extends CreateDataSourceResponse, * // crawlerConfiguration: { // WebCrawlerConfiguration * // crawlerLimits: { // WebCrawlerLimits * // rateLimit: Number("int"), + * // maxPages: Number("int"), * // }, * // inclusionFilters: [ // FilterList * // "STRING_VALUE", @@ -252,6 +255,7 @@ export interface CreateDataSourceCommandOutput extends CreateDataSourceResponse, * // "STRING_VALUE", * // ], * // scope: "HOST_ONLY" || "SUBDOMAINS", + * // userAgent: "STRING_VALUE", * // }, * // }, * // confluenceConfiguration: { // ConfluenceDataSourceConfiguration @@ -311,7 +315,7 @@ export interface CreateDataSourceCommandOutput extends CreateDataSourceResponse, * // "STRING_VALUE", * // ], * // hostType: "ONLINE", // required - * // authType: "OAUTH2_CLIENT_CREDENTIALS", // required + * // authType: "OAUTH2_CLIENT_CREDENTIALS" || "OAUTH2_SHAREPOINT_APP_ONLY_CLIENT_CREDENTIALS", // required * // credentialsSecretArn: "STRING_VALUE", // required * // }, * // crawlerConfiguration: { // SharePointCrawlerConfiguration diff --git a/clients/client-bedrock-agent/src/commands/GetAgentCommand.ts b/clients/client-bedrock-agent/src/commands/GetAgentCommand.ts index 23723b8a729f..2cc523a6c965 100644 --- a/clients/client-bedrock-agent/src/commands/GetAgentCommand.ts +++ b/clients/client-bedrock-agent/src/commands/GetAgentCommand.ts @@ -72,7 +72,7 @@ export interface GetAgentCommandOutput extends GetAgentResponse, __MetadataBeare * // promptOverrideConfiguration: { // PromptOverrideConfiguration * // promptConfigurations: [ // PromptConfigurations // required * // { // PromptConfiguration - * // promptType: "PRE_PROCESSING" || "ORCHESTRATION" || "POST_PROCESSING" || "KNOWLEDGE_BASE_RESPONSE_GENERATION", + * // promptType: "PRE_PROCESSING" || "ORCHESTRATION" || "POST_PROCESSING" || "KNOWLEDGE_BASE_RESPONSE_GENERATION" || "MEMORY_SUMMARIZATION", * // promptCreationMode: "DEFAULT" || "OVERRIDDEN", * // promptState: "ENABLED" || "DISABLED", * // basePromptTemplate: "STRING_VALUE", @@ -100,6 +100,9 @@ export interface GetAgentCommandOutput extends GetAgentResponse, __MetadataBeare * // "SESSION_SUMMARY", * // ], * // storageDays: Number("int"), + * // sessionSummaryConfiguration: { // SessionSummaryConfiguration + * // maxRecentSessions: Number("int"), + * // }, * // }, * // agentCollaboration: "SUPERVISOR" || "SUPERVISOR_ROUTER" || "DISABLED", * // }, diff --git a/clients/client-bedrock-agent/src/commands/GetAgentVersionCommand.ts b/clients/client-bedrock-agent/src/commands/GetAgentVersionCommand.ts index 1b76c33078e2..0771bcddd748 100644 --- a/clients/client-bedrock-agent/src/commands/GetAgentVersionCommand.ts +++ b/clients/client-bedrock-agent/src/commands/GetAgentVersionCommand.ts @@ -69,7 +69,7 @@ export interface GetAgentVersionCommandOutput extends GetAgentVersionResponse, _ * // promptOverrideConfiguration: { // PromptOverrideConfiguration * // promptConfigurations: [ // PromptConfigurations // required * // { // PromptConfiguration - * // promptType: "PRE_PROCESSING" || "ORCHESTRATION" || "POST_PROCESSING" || "KNOWLEDGE_BASE_RESPONSE_GENERATION", + * // promptType: "PRE_PROCESSING" || "ORCHESTRATION" || "POST_PROCESSING" || "KNOWLEDGE_BASE_RESPONSE_GENERATION" || "MEMORY_SUMMARIZATION", * // promptCreationMode: "DEFAULT" || "OVERRIDDEN", * // promptState: "ENABLED" || "DISABLED", * // basePromptTemplate: "STRING_VALUE", @@ -97,6 +97,9 @@ export interface GetAgentVersionCommandOutput extends GetAgentVersionResponse, _ * // "SESSION_SUMMARY", * // ], * // storageDays: Number("int"), + * // sessionSummaryConfiguration: { // SessionSummaryConfiguration + * // maxRecentSessions: Number("int"), + * // }, * // }, * // agentCollaboration: "SUPERVISOR" || "SUPERVISOR_ROUTER" || "DISABLED", * // }, diff --git a/clients/client-bedrock-agent/src/commands/GetDataSourceCommand.ts b/clients/client-bedrock-agent/src/commands/GetDataSourceCommand.ts index ecf000b0103a..a276b810019b 100644 --- a/clients/client-bedrock-agent/src/commands/GetDataSourceCommand.ts +++ b/clients/client-bedrock-agent/src/commands/GetDataSourceCommand.ts @@ -74,6 +74,7 @@ export interface GetDataSourceCommandOutput extends GetDataSourceResponse, __Met * // crawlerConfiguration: { // WebCrawlerConfiguration * // crawlerLimits: { // WebCrawlerLimits * // rateLimit: Number("int"), + * // maxPages: Number("int"), * // }, * // inclusionFilters: [ // FilterList * // "STRING_VALUE", @@ -82,6 +83,7 @@ export interface GetDataSourceCommandOutput extends GetDataSourceResponse, __Met * // "STRING_VALUE", * // ], * // scope: "HOST_ONLY" || "SUBDOMAINS", + * // userAgent: "STRING_VALUE", * // }, * // }, * // confluenceConfiguration: { // ConfluenceDataSourceConfiguration @@ -141,7 +143,7 @@ export interface GetDataSourceCommandOutput extends GetDataSourceResponse, __Met * // "STRING_VALUE", * // ], * // hostType: "ONLINE", // required - * // authType: "OAUTH2_CLIENT_CREDENTIALS", // required + * // authType: "OAUTH2_CLIENT_CREDENTIALS" || "OAUTH2_SHAREPOINT_APP_ONLY_CLIENT_CREDENTIALS", // required * // credentialsSecretArn: "STRING_VALUE", // required * // }, * // crawlerConfiguration: { // SharePointCrawlerConfiguration diff --git a/clients/client-bedrock-agent/src/commands/UpdateAgentCommand.ts b/clients/client-bedrock-agent/src/commands/UpdateAgentCommand.ts index 6f8cc7f2e9ca..781e1d61665b 100644 --- a/clients/client-bedrock-agent/src/commands/UpdateAgentCommand.ts +++ b/clients/client-bedrock-agent/src/commands/UpdateAgentCommand.ts @@ -58,7 +58,7 @@ export interface UpdateAgentCommandOutput extends UpdateAgentResponse, __Metadat * promptOverrideConfiguration: { // PromptOverrideConfiguration * promptConfigurations: [ // PromptConfigurations // required * { // PromptConfiguration - * promptType: "PRE_PROCESSING" || "ORCHESTRATION" || "POST_PROCESSING" || "KNOWLEDGE_BASE_RESPONSE_GENERATION", + * promptType: "PRE_PROCESSING" || "ORCHESTRATION" || "POST_PROCESSING" || "KNOWLEDGE_BASE_RESPONSE_GENERATION" || "MEMORY_SUMMARIZATION", * promptCreationMode: "DEFAULT" || "OVERRIDDEN", * promptState: "ENABLED" || "DISABLED", * basePromptTemplate: "STRING_VALUE", @@ -86,6 +86,9 @@ export interface UpdateAgentCommandOutput extends UpdateAgentResponse, __Metadat * "SESSION_SUMMARY", * ], * storageDays: Number("int"), + * sessionSummaryConfiguration: { // SessionSummaryConfiguration + * maxRecentSessions: Number("int"), + * }, * }, * agentCollaboration: "SUPERVISOR" || "SUPERVISOR_ROUTER" || "DISABLED", * }; @@ -123,7 +126,7 @@ export interface UpdateAgentCommandOutput extends UpdateAgentResponse, __Metadat * // promptOverrideConfiguration: { // PromptOverrideConfiguration * // promptConfigurations: [ // PromptConfigurations // required * // { // PromptConfiguration - * // promptType: "PRE_PROCESSING" || "ORCHESTRATION" || "POST_PROCESSING" || "KNOWLEDGE_BASE_RESPONSE_GENERATION", + * // promptType: "PRE_PROCESSING" || "ORCHESTRATION" || "POST_PROCESSING" || "KNOWLEDGE_BASE_RESPONSE_GENERATION" || "MEMORY_SUMMARIZATION", * // promptCreationMode: "DEFAULT" || "OVERRIDDEN", * // promptState: "ENABLED" || "DISABLED", * // basePromptTemplate: "STRING_VALUE", @@ -151,6 +154,9 @@ export interface UpdateAgentCommandOutput extends UpdateAgentResponse, __Metadat * // "SESSION_SUMMARY", * // ], * // storageDays: Number("int"), + * // sessionSummaryConfiguration: { // SessionSummaryConfiguration + * // maxRecentSessions: Number("int"), + * // }, * // }, * // agentCollaboration: "SUPERVISOR" || "SUPERVISOR_ROUTER" || "DISABLED", * // }, diff --git a/clients/client-bedrock-agent/src/commands/UpdateDataSourceCommand.ts b/clients/client-bedrock-agent/src/commands/UpdateDataSourceCommand.ts index f98c876ac072..ab3cd9be781d 100644 --- a/clients/client-bedrock-agent/src/commands/UpdateDataSourceCommand.ts +++ b/clients/client-bedrock-agent/src/commands/UpdateDataSourceCommand.ts @@ -70,6 +70,7 @@ export interface UpdateDataSourceCommandOutput extends UpdateDataSourceResponse, * crawlerConfiguration: { // WebCrawlerConfiguration * crawlerLimits: { // WebCrawlerLimits * rateLimit: Number("int"), + * maxPages: Number("int"), * }, * inclusionFilters: [ // FilterList * "STRING_VALUE", @@ -78,6 +79,7 @@ export interface UpdateDataSourceCommandOutput extends UpdateDataSourceResponse, * "STRING_VALUE", * ], * scope: "HOST_ONLY" || "SUBDOMAINS", + * userAgent: "STRING_VALUE", * }, * }, * confluenceConfiguration: { // ConfluenceDataSourceConfiguration @@ -137,7 +139,7 @@ export interface UpdateDataSourceCommandOutput extends UpdateDataSourceResponse, * "STRING_VALUE", * ], * hostType: "ONLINE", // required - * authType: "OAUTH2_CLIENT_CREDENTIALS", // required + * authType: "OAUTH2_CLIENT_CREDENTIALS" || "OAUTH2_SHAREPOINT_APP_ONLY_CLIENT_CREDENTIALS", // required * credentialsSecretArn: "STRING_VALUE", // required * }, * crawlerConfiguration: { // SharePointCrawlerConfiguration @@ -244,6 +246,7 @@ export interface UpdateDataSourceCommandOutput extends UpdateDataSourceResponse, * // crawlerConfiguration: { // WebCrawlerConfiguration * // crawlerLimits: { // WebCrawlerLimits * // rateLimit: Number("int"), + * // maxPages: Number("int"), * // }, * // inclusionFilters: [ // FilterList * // "STRING_VALUE", @@ -252,6 +255,7 @@ export interface UpdateDataSourceCommandOutput extends UpdateDataSourceResponse, * // "STRING_VALUE", * // ], * // scope: "HOST_ONLY" || "SUBDOMAINS", + * // userAgent: "STRING_VALUE", * // }, * // }, * // confluenceConfiguration: { // ConfluenceDataSourceConfiguration @@ -311,7 +315,7 @@ export interface UpdateDataSourceCommandOutput extends UpdateDataSourceResponse, * // "STRING_VALUE", * // ], * // hostType: "ONLINE", // required - * // authType: "OAUTH2_CLIENT_CREDENTIALS", // required + * // authType: "OAUTH2_CLIENT_CREDENTIALS" || "OAUTH2_SHAREPOINT_APP_ONLY_CLIENT_CREDENTIALS", // required * // credentialsSecretArn: "STRING_VALUE", // required * // }, * // crawlerConfiguration: { // SharePointCrawlerConfiguration diff --git a/clients/client-bedrock-agent/src/models/models_0.ts b/clients/client-bedrock-agent/src/models/models_0.ts index a260e5b79ade..e56d85dd8c54 100644 --- a/clients/client-bedrock-agent/src/models/models_0.ts +++ b/clients/client-bedrock-agent/src/models/models_0.ts @@ -1061,6 +1061,18 @@ export const MemoryType = { */ export type MemoryType = (typeof MemoryType)[keyof typeof MemoryType]; +/** + *

Configuration for SESSION_SUMMARY memory type enabled for the agent.

+ * @public + */ +export interface SessionSummaryConfiguration { + /** + *

Maximum number of recent session summaries to include in the agent's prompt context.

+ * @public + */ + maxRecentSessions?: number | undefined; +} + /** *

Details of the memory configuration.

* @public @@ -1077,6 +1089,12 @@ export interface MemoryConfiguration { * @public */ storageDays?: number | undefined; + + /** + *

Contains the configuration for SESSION_SUMMARY memory type enabled for the agent.

+ * @public + */ + sessionSummaryConfiguration?: SessionSummaryConfiguration | undefined; } /** @@ -1163,6 +1181,7 @@ export type PromptState = (typeof PromptState)[keyof typeof PromptState]; */ export const PromptType = { KNOWLEDGE_BASE_RESPONSE_GENERATION: "KNOWLEDGE_BASE_RESPONSE_GENERATION", + MEMORY_SUMMARIZATION: "MEMORY_SUMMARIZATION", ORCHESTRATION: "ORCHESTRATION", POST_PROCESSING: "POST_PROCESSING", PRE_PROCESSING: "PRE_PROCESSING", @@ -3235,6 +3254,7 @@ export interface SharePointCrawlerConfiguration { */ export const SharePointAuthType = { OAUTH2_CLIENT_CREDENTIALS: "OAUTH2_CLIENT_CREDENTIALS", + OAUTH2_SHAREPOINT_APP_ONLY_CLIENT_CREDENTIALS: "OAUTH2_SHAREPOINT_APP_ONLY_CLIENT_CREDENTIALS", } as const; /** @@ -3351,6 +3371,15 @@ export interface WebCrawlerLimits { * @public */ rateLimit?: number | undefined; + + /** + *

+ * The max number of web pages crawled from your source URLs, up to 25,000 pages. If + * the web pages exceed this limit, the data source sync will fail and no web pages will be ingested. + *

+ * @public + */ + maxPages?: number | undefined; } /** @@ -3408,6 +3437,15 @@ export interface WebCrawlerConfiguration { * @public */ scope?: WebScopeType | undefined; + + /** + *

A string used for identifying the crawler or a bot when it accesses a web server. By default, + * this is set to bedrockbot_UUID for your crawler. You can optionally append a custom + * string to bedrockbot_UUID to allowlist a specific user agent permitted to access your source URLs. + *

+ * @public + */ + userAgent?: string | undefined; } /** @@ -9194,18 +9232,6 @@ export interface ByteContentDoc { data: Uint8Array | undefined; } -/** - *

Contains information about content defined inline in text.

- * @public - */ -export interface TextContentDoc { - /** - *

The text of the content.

- * @public - */ - data: string | undefined; -} - /** * @internal */ @@ -9521,6 +9547,7 @@ export const WebCrawlerConfigurationFilterSensitiveLog = (obj: WebCrawlerConfigu ...obj, ...(obj.inclusionFilters && { inclusionFilters: SENSITIVE_STRING }), ...(obj.exclusionFilters && { exclusionFilters: SENSITIVE_STRING }), + ...(obj.userAgent && { userAgent: SENSITIVE_STRING }), }); /** @@ -9897,11 +9924,3 @@ export const ByteContentDocFilterSensitiveLog = (obj: ByteContentDoc): any => ({ ...obj, ...(obj.data && { data: SENSITIVE_STRING }), }); - -/** - * @internal - */ -export const TextContentDocFilterSensitiveLog = (obj: TextContentDoc): any => ({ - ...obj, - ...(obj.data && { data: SENSITIVE_STRING }), -}); diff --git a/clients/client-bedrock-agent/src/models/models_1.ts b/clients/client-bedrock-agent/src/models/models_1.ts index 3d9a1f911cf3..f338964524d1 100644 --- a/clients/client-bedrock-agent/src/models/models_1.ts +++ b/clients/client-bedrock-agent/src/models/models_1.ts @@ -24,10 +24,20 @@ import { PromptTemplateConfigurationFilterSensitiveLog, PromptTemplateType, S3Location, - TextContentDoc, - TextContentDocFilterSensitiveLog, } from "./models_0"; +/** + *

Contains information about content defined inline in text.

+ * @public + */ +export interface TextContentDoc { + /** + *

The text of the content.

+ * @public + */ + data: string | undefined; +} + /** * @public * @enum @@ -2671,6 +2681,14 @@ export interface ListAgentVersionsResponse { nextToken?: string | undefined; } +/** + * @internal + */ +export const TextContentDocFilterSensitiveLog = (obj: TextContentDoc): any => ({ + ...obj, + ...(obj.data && { data: SENSITIVE_STRING }), +}); + /** * @internal */ diff --git a/clients/client-bedrock-agent/src/protocols/Aws_restJson1.ts b/clients/client-bedrock-agent/src/protocols/Aws_restJson1.ts index 847da8763921..e339f7ab8655 100644 --- a/clients/client-bedrock-agent/src/protocols/Aws_restJson1.ts +++ b/clients/client-bedrock-agent/src/protocols/Aws_restJson1.ts @@ -289,6 +289,7 @@ import { SemanticChunkingConfiguration, ServerSideEncryptionConfiguration, ServiceQuotaExceededException, + SessionSummaryConfiguration, SharePointCrawlerConfiguration, SharePointDataSourceConfiguration, SharePointSourceConfiguration, @@ -297,7 +298,6 @@ import { StorageFlowNodeS3Configuration, StorageFlowNodeServiceConfiguration, SystemContentBlock, - TextContentDoc, TextPromptTemplateConfiguration, ThrottlingException, Tool, @@ -365,6 +365,7 @@ import { StorageConfiguration, SupplementalDataStorageConfiguration, SupplementalDataStorageLocation, + TextContentDoc, VectorKnowledgeBaseConfiguration, } from "../models/models_1"; @@ -4367,6 +4368,8 @@ const se_PromptVariantList = (input: PromptVariant[], context: __SerdeContext): // se_ServerSideEncryptionConfiguration omitted. +// se_SessionSummaryConfiguration omitted. + // se_SharePointCrawlerConfiguration omitted. // se_SharePointDataSourceConfiguration omitted. @@ -5637,6 +5640,8 @@ const de_PromptVariantList = (output: any, context: __SerdeContext): PromptVaria // de_ServerSideEncryptionConfiguration omitted. +// de_SessionSummaryConfiguration omitted. + // de_SharePointCrawlerConfiguration omitted. // de_SharePointDataSourceConfiguration omitted. diff --git a/codegen/sdk-codegen/aws-models/bedrock-agent.json b/codegen/sdk-codegen/aws-models/bedrock-agent.json index e77db32ab7bd..3af3e281a232 100644 --- a/codegen/sdk-codegen/aws-models/bedrock-agent.json +++ b/codegen/sdk-codegen/aws-models/bedrock-agent.json @@ -11759,6 +11759,14 @@ "smithy.api#documentation": "

Details about a malformed input expression in a node.

" } }, + "com.amazonaws.bedrockagent#MaxRecentSessions": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 1 + } + } + }, "com.amazonaws.bedrockagent#MaxResults": { "type": "integer", "traits": { @@ -11793,6 +11801,12 @@ "smithy.api#default": 30, "smithy.api#documentation": "

The number of days the agent is configured to retain the conversational context.

" } + }, + "sessionSummaryConfiguration": { + "target": "com.amazonaws.bedrockagent#SessionSummaryConfiguration", + "traits": { + "smithy.api#documentation": "

Contains the configuration for SESSION_SUMMARY memory type enabled for the agent.

" + } } }, "traits": { @@ -13455,6 +13469,12 @@ "traits": { "smithy.api#enumValue": "KNOWLEDGE_BASE_RESPONSE_GENERATION" } + }, + "MEMORY_SUMMARIZATION": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "MEMORY_SUMMARIZATION" + } } } }, @@ -14628,6 +14648,21 @@ "smithy.api#httpError": 402 } }, + "com.amazonaws.bedrockagent#SessionSummaryConfiguration": { + "type": "structure", + "members": { + "maxRecentSessions": { + "target": "com.amazonaws.bedrockagent#MaxRecentSessions", + "traits": { + "smithy.api#default": null, + "smithy.api#documentation": "

Maximum number of recent session summaries to include in the agent's prompt context.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Configuration for SESSION_SUMMARY memory type enabled for the agent.

" + } + }, "com.amazonaws.bedrockagent#SessionTTL": { "type": "integer", "traits": { @@ -14645,6 +14680,12 @@ "traits": { "smithy.api#enumValue": "OAUTH2_CLIENT_CREDENTIALS" } + }, + "OAUTH2_SHAREPOINT_APP_ONLY_CLIENT_CREDENTIALS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "OAUTH2_SHAREPOINT_APP_ONLY_CLIENT_CREDENTIALS" + } } } }, @@ -15080,7 +15121,7 @@ "smithy.api#default": 30, "smithy.api#range": { "min": 0, - "max": 30 + "max": 365 } } }, @@ -17192,6 +17233,16 @@ "smithy.api#documentation": "

The configuration of web URLs that you want to crawl. \n You should be authorized to crawl the URLs.

" } }, + "com.amazonaws.bedrockagent#UserAgent": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 15, + "max": 40 + }, + "smithy.api#sensitive": {} + } + }, "com.amazonaws.bedrockagent#ValidateFlowDefinition": { "type": "operation", "input": { @@ -17405,6 +17456,12 @@ "traits": { "smithy.api#documentation": "

The scope of what is crawled for your URLs.

\n

You can choose to crawl only web pages that belong to the same host or primary \n domain. For example, only web pages that contain the seed URL \n \"https://docs.aws.amazon.com/bedrock/latest/userguide/\" and no other domains. \n You can choose to include sub domains in addition to the host or primary domain. \n For example, web pages that contain \"aws.amazon.com\" can also include sub domain \n \"docs.aws.amazon.com\".

" } + }, + "userAgent": { + "target": "com.amazonaws.bedrockagent#UserAgent", + "traits": { + "smithy.api#documentation": "

A string used for identifying the crawler or a bot when it accesses a web server. By default, \n this is set to bedrockbot_UUID for your crawler. You can optionally append a custom \n string to bedrockbot_UUID to allowlist a specific user agent permitted to access your source URLs. \n

" + } } }, "traits": { @@ -17423,6 +17480,15 @@ "max": 300 } } + }, + "maxPages": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

\n The max number of web pages crawled from your source URLs, up to 25,000 pages. If \n the web pages exceed this limit, the data source sync will fail and no web pages will be ingested.\n

", + "smithy.api#range": { + "min": 1 + } + } } }, "traits": {