@aws-sdk/client-bedrock-agentcore 3.1164.0 → 3.1165.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/README.md +7 -0
- package/dist-cjs/index.js +96 -5
- package/dist-es/BedrockAgentCore.js +2 -0
- package/dist-es/commands/InvokeWebSearchCommand.js +4 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/errors.js +16 -0
- package/dist-es/schemas/schemas_0.js +67 -5
- package/dist-types/BedrockAgentCore.d.ts +7 -0
- package/dist-types/BedrockAgentCoreClient.d.ts +3 -2
- package/dist-types/commands/InvokeWebSearchCommand.d.ts +146 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/errors.d.ts +19 -0
- package/dist-types/models/models_0.d.ts +112 -164
- package/dist-types/models/models_1.d.ts +165 -2
- package/dist-types/schemas/schemas_0.d.ts +8 -0
- package/dist-types/ts3.4/BedrockAgentCore.d.ts +17 -0
- package/dist-types/ts3.4/BedrockAgentCoreClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/InvokeWebSearchCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/errors.d.ts +8 -0
- package/dist-types/ts3.4/models/models_0.d.ts +27 -78
- package/dist-types/ts3.4/models/models_1.d.ts +78 -5
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +8 -0
- package/package.json +8 -8
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { InvokeWebSearchInput, InvokeWebSearchOutput } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link InvokeWebSearchCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface InvokeWebSearchCommandInput extends InvokeWebSearchInput {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link InvokeWebSearchCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface InvokeWebSearchCommandOutput extends InvokeWebSearchOutput, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const InvokeWebSearchCommand_base: {
|
|
22
|
+
new (input: InvokeWebSearchCommandInput): import("@smithy/core/client").CommandImpl<InvokeWebSearchCommandInput, InvokeWebSearchCommandOutput, import("..").BedrockAgentCoreClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: InvokeWebSearchCommandInput): import("@smithy/core/client").CommandImpl<InvokeWebSearchCommandInput, InvokeWebSearchCommandOutput, import("..").BedrockAgentCoreClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Searches the web and returns a ranked list of results. Each result includes a text extract from the page.</p> <p>You can filter the results by domain and by publication date.</p> <p>To use this operation, you must have the <code>bedrock-agentcore:InvokeWebSearch</code> permission on the resource <code>arn:$\{Partition\}:bedrock-agentcore:$\{Region\}:aws:tool/web-search.v1</code>.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BedrockAgentCoreClient, InvokeWebSearchCommand } from "@aws-sdk/client-bedrock-agentcore"; // ES Modules import
|
|
32
|
+
* // const { BedrockAgentCoreClient, InvokeWebSearchCommand } = require("@aws-sdk/client-bedrock-agentcore"); // CommonJS import
|
|
33
|
+
* // import type { BedrockAgentCoreClientConfig } from "@aws-sdk/client-bedrock-agentcore";
|
|
34
|
+
* const config = {}; // type is BedrockAgentCoreClientConfig
|
|
35
|
+
* const client = new BedrockAgentCoreClient(config);
|
|
36
|
+
* const input = { // InvokeWebSearchInput
|
|
37
|
+
* webSearchId: "STRING_VALUE", // required
|
|
38
|
+
* searchQuery: "STRING_VALUE", // required
|
|
39
|
+
* maxResults: Number("int"),
|
|
40
|
+
* filters: { // WebSearchFilters
|
|
41
|
+
* domainFilter: { // DomainFilter
|
|
42
|
+
* include: [ // DomainList
|
|
43
|
+
* "STRING_VALUE",
|
|
44
|
+
* ],
|
|
45
|
+
* exclude: [
|
|
46
|
+
* "STRING_VALUE",
|
|
47
|
+
* ],
|
|
48
|
+
* },
|
|
49
|
+
* publishedDateFilter: { // PublishedDateFilter
|
|
50
|
+
* publishedAfter: new Date("TIMESTAMP"),
|
|
51
|
+
* publishedBefore: new Date("TIMESTAMP"),
|
|
52
|
+
* },
|
|
53
|
+
* },
|
|
54
|
+
* };
|
|
55
|
+
* const command = new InvokeWebSearchCommand(input);
|
|
56
|
+
* const response = await client.send(command);
|
|
57
|
+
* // { // InvokeWebSearchOutput
|
|
58
|
+
* // results: [ // WebSearchResultList // required
|
|
59
|
+
* // { // WebSearchResult
|
|
60
|
+
* // title: "STRING_VALUE",
|
|
61
|
+
* // url: "STRING_VALUE",
|
|
62
|
+
* // text: "STRING_VALUE", // required
|
|
63
|
+
* // publishedAt: new Date("TIMESTAMP"),
|
|
64
|
+
* // },
|
|
65
|
+
* // ],
|
|
66
|
+
* // };
|
|
67
|
+
*
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
70
|
+
* @param InvokeWebSearchCommandInput - {@link InvokeWebSearchCommandInput}
|
|
71
|
+
* @returns {@link InvokeWebSearchCommandOutput}
|
|
72
|
+
* @see {@link InvokeWebSearchCommandInput} for command's `input` shape.
|
|
73
|
+
* @see {@link InvokeWebSearchCommandOutput} for command's `response` shape.
|
|
74
|
+
* @see {@link BedrockAgentCoreClientResolvedConfig | config} for BedrockAgentCoreClient's `config` shape.
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
77
|
+
* <p>The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link InternalServerException} (server fault)
|
|
80
|
+
* <p>The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
83
|
+
* <p>The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.</p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
86
|
+
* <p>The service can't handle the request right now. Retry the request. If the response includes <code>retryAfterSeconds</code>, wait that many seconds before you retry.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
89
|
+
* <p>The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link ValidationException} (client fault)
|
|
92
|
+
* <p>The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link BedrockAgentCoreServiceException}
|
|
95
|
+
* <p>Base exception class for all service exceptions from BedrockAgentCore service.</p>
|
|
96
|
+
*
|
|
97
|
+
*
|
|
98
|
+
* @example Search the web for recent pages from one domain
|
|
99
|
+
* ```javascript
|
|
100
|
+
* //
|
|
101
|
+
* const input = {
|
|
102
|
+
* filters: {
|
|
103
|
+
* domainFilter: {
|
|
104
|
+
* include: [
|
|
105
|
+
* "example.com"
|
|
106
|
+
* ]
|
|
107
|
+
* },
|
|
108
|
+
* publishedDateFilter: {
|
|
109
|
+
* publishedAfter: "2026-01-01T00:00:00Z"
|
|
110
|
+
* }
|
|
111
|
+
* },
|
|
112
|
+
* maxResults: 1,
|
|
113
|
+
* searchQuery: "Amazon Bedrock AgentCore web search",
|
|
114
|
+
* webSearchId: "web-search.v1"
|
|
115
|
+
* };
|
|
116
|
+
* const command = new InvokeWebSearchCommand(input);
|
|
117
|
+
* const response = await client.send(command);
|
|
118
|
+
* /* response is
|
|
119
|
+
* {
|
|
120
|
+
* results: [
|
|
121
|
+
* {
|
|
122
|
+
* publishedAt: "2026-03-15T08:00:00Z",
|
|
123
|
+
* text: "Web search lets an agent find current information on the public web and cite its sources.",
|
|
124
|
+
* title: "Getting started with web search",
|
|
125
|
+
* url: "https://docs.example.com/web-search/getting-started"
|
|
126
|
+
* }
|
|
127
|
+
* ]
|
|
128
|
+
* }
|
|
129
|
+
* *\/
|
|
130
|
+
* ```
|
|
131
|
+
*
|
|
132
|
+
* @public
|
|
133
|
+
*/
|
|
134
|
+
export declare class InvokeWebSearchCommand extends InvokeWebSearchCommand_base {
|
|
135
|
+
/** @internal type navigation helper, not in runtime. */
|
|
136
|
+
protected static __types: {
|
|
137
|
+
api: {
|
|
138
|
+
input: InvokeWebSearchInput;
|
|
139
|
+
output: InvokeWebSearchOutput;
|
|
140
|
+
};
|
|
141
|
+
sdk: {
|
|
142
|
+
input: InvokeWebSearchCommandInput;
|
|
143
|
+
output: InvokeWebSearchCommandOutput;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
}
|
|
@@ -38,6 +38,7 @@ export * from "./InvokeAgentRuntimeCommandCommand";
|
|
|
38
38
|
export * from "./InvokeBrowserCommand";
|
|
39
39
|
export * from "./InvokeCodeInterpreterCommand";
|
|
40
40
|
export * from "./InvokeHarnessCommand";
|
|
41
|
+
export * from "./InvokeWebSearchCommand";
|
|
41
42
|
export * from "./ListABTestsCommand";
|
|
42
43
|
export * from "./ListActorsCommand";
|
|
43
44
|
export * from "./ListBatchEvaluationsCommand";
|
|
@@ -148,6 +148,25 @@ export declare class DuplicateIdException extends __BaseException {
|
|
|
148
148
|
*/
|
|
149
149
|
constructor(opts: __ExceptionOptionType<DuplicateIdException, __BaseException>);
|
|
150
150
|
}
|
|
151
|
+
/**
|
|
152
|
+
* <p>The service can't handle the request right now. Retry the request. If the response includes <code>retryAfterSeconds</code>, wait that many seconds before you retry.</p>
|
|
153
|
+
* @public
|
|
154
|
+
*/
|
|
155
|
+
export declare class ServiceUnavailableException extends __BaseException {
|
|
156
|
+
static readonly shapeId: string;
|
|
157
|
+
readonly name: "ServiceUnavailableException";
|
|
158
|
+
readonly $fault: "server";
|
|
159
|
+
$retryable: {};
|
|
160
|
+
/**
|
|
161
|
+
* <p>The number of seconds to wait before you retry the request.</p>
|
|
162
|
+
* @public
|
|
163
|
+
*/
|
|
164
|
+
retryAfterSeconds?: number | undefined;
|
|
165
|
+
/**
|
|
166
|
+
* @internal
|
|
167
|
+
*/
|
|
168
|
+
constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
|
|
169
|
+
}
|
|
151
170
|
/**
|
|
152
171
|
* <p>The service encountered an internal error. Try your request again later.</p>
|
|
153
172
|
* @public
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DocumentType as __DocumentType, StreamingBlobTypes } from "@smithy/types";
|
|
2
|
-
import type { ABTestExecutionStatus, ABTestStatus, AutomationStreamStatus, BatchEvaluationStatus, BrowserActionStatus, BrowserEnterprisePolicyType, BrowserSessionStatus, CapacityProviderSessionStatus, CloudWatchLogsFilterOperator, CodeInterpreterSessionStatus, CommandExecutionStatus, ContentBlockType, FindingTargetType, HarnessBedrockApiFormat, HarnessConversationRole, HarnessHookDecision, HarnessHookEventType, HarnessOpenAiApiFormat, HarnessStopReason, HarnessToolType, HarnessToolUseStatus, HarnessToolUseType, InsightsFailureCategory, InsightType, LanguageRuntime, MemoryRecordStatus, MouseButton, Oauth2FlowType, OAuthGrantType, PaymentHttpMethodType, ProgrammingLanguage, RecommendationStatus, RecommendationType, RecordExpiryAction, ResourceContentType, ResultDestination,
|
|
2
|
+
import type { ABTestExecutionStatus, ABTestStatus, AutomationStreamStatus, BatchEvaluationStatus, BrowserActionStatus, BrowserEnterprisePolicyType, BrowserSessionStatus, CapacityProviderSessionStatus, CloudWatchLogsFilterOperator, CodeInterpreterSessionStatus, CommandExecutionStatus, ContentBlockType, FindingTargetType, HarnessBedrockApiFormat, HarnessConversationRole, HarnessHookDecision, HarnessHookEventType, HarnessOpenAiApiFormat, HarnessStopReason, HarnessToolType, HarnessToolUseStatus, HarnessToolUseType, InsightsFailureCategory, InsightType, LanguageRuntime, MemoryRecordStatus, MouseButton, Oauth2FlowType, OAuthGrantType, PaymentHttpMethodType, ProgrammingLanguage, RecommendationStatus, RecommendationType, RecordExpiryAction, ResourceContentType, ResultDestination, ScreenshotFormat, SessionStatus, TaskStatus, ToolName } from "./enums";
|
|
3
3
|
import type { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, RuntimeClientError, ServiceQuotaExceededException, ThrottlingException, ValidationException } from "./errors";
|
|
4
4
|
/**
|
|
5
5
|
* <p> The agent card definition for A2A descriptors, including the schema version and inline content that describes the agent's capabilities.</p>
|
|
@@ -8276,6 +8276,117 @@ export interface InvokeHarnessResponse {
|
|
|
8276
8276
|
*/
|
|
8277
8277
|
stream: AsyncIterable<InvokeHarnessStreamOutput> | undefined;
|
|
8278
8278
|
}
|
|
8279
|
+
/**
|
|
8280
|
+
* <p>The domains to include in or exclude from the results. A root domain also matches its subdomains. For example, <code>example.com</code> also matches <code>docs.example.com</code>.</p>
|
|
8281
|
+
* @public
|
|
8282
|
+
*/
|
|
8283
|
+
export interface DomainFilter {
|
|
8284
|
+
/**
|
|
8285
|
+
* <p>The domains to return results from. Results from other domains are not returned.</p>
|
|
8286
|
+
* @public
|
|
8287
|
+
*/
|
|
8288
|
+
include?: string[] | undefined;
|
|
8289
|
+
/**
|
|
8290
|
+
* <p>The domains to never return results from.</p>
|
|
8291
|
+
* @public
|
|
8292
|
+
*/
|
|
8293
|
+
exclude?: string[] | undefined;
|
|
8294
|
+
}
|
|
8295
|
+
/**
|
|
8296
|
+
* <p>A publication time range for the results. Both bounds are optional, and both are inclusive. If <code>publishedAfter</code> is later than <code>publishedBefore</code>, the request fails with a <code>ValidationException</code>.</p>
|
|
8297
|
+
* @public
|
|
8298
|
+
*/
|
|
8299
|
+
export interface PublishedDateFilter {
|
|
8300
|
+
/**
|
|
8301
|
+
* <p>The earliest publication time of the results, inclusive.</p>
|
|
8302
|
+
* @public
|
|
8303
|
+
*/
|
|
8304
|
+
publishedAfter?: Date | undefined;
|
|
8305
|
+
/**
|
|
8306
|
+
* <p>The latest publication time of the results, inclusive. A date without a time, such as one passed to the AWS CLI, means midnight UTC. To include a whole day, use the last second of that day, for example <code>2026-01-31T23:59:59Z</code>.</p>
|
|
8307
|
+
* @public
|
|
8308
|
+
*/
|
|
8309
|
+
publishedBefore?: Date | undefined;
|
|
8310
|
+
}
|
|
8311
|
+
/**
|
|
8312
|
+
* <p>The filters to apply to a web search.</p>
|
|
8313
|
+
* @public
|
|
8314
|
+
*/
|
|
8315
|
+
export interface WebSearchFilters {
|
|
8316
|
+
/**
|
|
8317
|
+
* <p>The domains to include in or exclude from the results.</p>
|
|
8318
|
+
* @public
|
|
8319
|
+
*/
|
|
8320
|
+
domainFilter?: DomainFilter | undefined;
|
|
8321
|
+
/**
|
|
8322
|
+
* <p>The publication time range of the results.</p>
|
|
8323
|
+
* @public
|
|
8324
|
+
*/
|
|
8325
|
+
publishedDateFilter?: PublishedDateFilter | undefined;
|
|
8326
|
+
}
|
|
8327
|
+
/**
|
|
8328
|
+
* <p>Request for the <code>InvokeWebSearch</code> operation.</p>
|
|
8329
|
+
* @public
|
|
8330
|
+
*/
|
|
8331
|
+
export interface InvokeWebSearchInput {
|
|
8332
|
+
/**
|
|
8333
|
+
* <p>The identifier of the web search tool to invoke. The Amazon Web Services-managed web search tool is <code>web-search.v1</code>.</p>
|
|
8334
|
+
* @public
|
|
8335
|
+
*/
|
|
8336
|
+
webSearchId: string | undefined;
|
|
8337
|
+
/**
|
|
8338
|
+
* <p>The text to search for.</p>
|
|
8339
|
+
* @public
|
|
8340
|
+
*/
|
|
8341
|
+
searchQuery: string | undefined;
|
|
8342
|
+
/**
|
|
8343
|
+
* <p>The maximum number of results to return. Defaults to 25.</p>
|
|
8344
|
+
* @public
|
|
8345
|
+
*/
|
|
8346
|
+
maxResults?: number | undefined;
|
|
8347
|
+
/**
|
|
8348
|
+
* <p>The filters to apply to the search results.</p>
|
|
8349
|
+
* @public
|
|
8350
|
+
*/
|
|
8351
|
+
filters?: WebSearchFilters | undefined;
|
|
8352
|
+
}
|
|
8353
|
+
/**
|
|
8354
|
+
* <p>A web search result.</p>
|
|
8355
|
+
* @public
|
|
8356
|
+
*/
|
|
8357
|
+
export interface WebSearchResult {
|
|
8358
|
+
/**
|
|
8359
|
+
* <p>The title of the page.</p>
|
|
8360
|
+
* @public
|
|
8361
|
+
*/
|
|
8362
|
+
title?: string | undefined;
|
|
8363
|
+
/**
|
|
8364
|
+
* <p>The URL of the page.</p>
|
|
8365
|
+
* @public
|
|
8366
|
+
*/
|
|
8367
|
+
url?: string | undefined;
|
|
8368
|
+
/**
|
|
8369
|
+
* <p>A text extract from the page.</p>
|
|
8370
|
+
* @public
|
|
8371
|
+
*/
|
|
8372
|
+
text: string | undefined;
|
|
8373
|
+
/**
|
|
8374
|
+
* <p>The time the page was published. This field is absent when the publication time is not known.</p>
|
|
8375
|
+
* @public
|
|
8376
|
+
*/
|
|
8377
|
+
publishedAt?: Date | undefined;
|
|
8378
|
+
}
|
|
8379
|
+
/**
|
|
8380
|
+
* <p>Response for the <code>InvokeWebSearch</code> operation.</p>
|
|
8381
|
+
* @public
|
|
8382
|
+
*/
|
|
8383
|
+
export interface InvokeWebSearchOutput {
|
|
8384
|
+
/**
|
|
8385
|
+
* <p>The search results, in ranked order.</p>
|
|
8386
|
+
* @public
|
|
8387
|
+
*/
|
|
8388
|
+
results: WebSearchResult[] | undefined;
|
|
8389
|
+
}
|
|
8279
8390
|
/**
|
|
8280
8391
|
* <p>Specifies the record expiry (long-term memory time-to-live) applied to the records in a batch request. Provide exactly one of <code>recordExpiryDurationDays</code> or <code>action</code>. Set <code>recordExpiryDurationDays</code> to configure or update the expiry, or set <code>action</code> to <code>REMOVE</code> to remove a previously configured expiry.</p>
|
|
8281
8392
|
* @public
|
|
@@ -8674,166 +8785,3 @@ export interface Branch {
|
|
|
8674
8785
|
*/
|
|
8675
8786
|
name: string | undefined;
|
|
8676
8787
|
}
|
|
8677
|
-
/**
|
|
8678
|
-
* <p>The configuration for extraction behavior. Use this structure to specify namespace variable keys and their values for namespace substitution during long-term memory extraction.</p>
|
|
8679
|
-
* @public
|
|
8680
|
-
*/
|
|
8681
|
-
export interface ExtractionConfig {
|
|
8682
|
-
/**
|
|
8683
|
-
* <p>A map of <code>namespaceKeys</code> to their values. The service substitutes these values into <code>namespaceTemplates</code> during long-term memory extraction to control namespace hierarchy.</p>
|
|
8684
|
-
* @public
|
|
8685
|
-
*/
|
|
8686
|
-
namespaceVariables?: Record<string, string> | undefined;
|
|
8687
|
-
}
|
|
8688
|
-
/**
|
|
8689
|
-
* <p>Value associated with the <code>eventMetadata</code> key.</p>
|
|
8690
|
-
* @public
|
|
8691
|
-
*/
|
|
8692
|
-
export type MetadataValue = MetadataValue.StringValueMember | MetadataValue.$UnknownMember;
|
|
8693
|
-
/**
|
|
8694
|
-
* @public
|
|
8695
|
-
*/
|
|
8696
|
-
export declare namespace MetadataValue {
|
|
8697
|
-
/**
|
|
8698
|
-
* <p>Value associated with the <code>eventMetadata</code> key.</p>
|
|
8699
|
-
* @public
|
|
8700
|
-
*/
|
|
8701
|
-
interface StringValueMember {
|
|
8702
|
-
stringValue: string;
|
|
8703
|
-
$unknown?: never;
|
|
8704
|
-
}
|
|
8705
|
-
/**
|
|
8706
|
-
* @public
|
|
8707
|
-
*/
|
|
8708
|
-
interface $UnknownMember {
|
|
8709
|
-
stringValue?: never;
|
|
8710
|
-
$unknown: [string, any];
|
|
8711
|
-
}
|
|
8712
|
-
/**
|
|
8713
|
-
* @deprecated unused in schema-serde mode.
|
|
8714
|
-
*
|
|
8715
|
-
*/
|
|
8716
|
-
interface Visitor<T> {
|
|
8717
|
-
stringValue: (value: string) => T;
|
|
8718
|
-
_: (name: string, value: any) => T;
|
|
8719
|
-
}
|
|
8720
|
-
}
|
|
8721
|
-
/**
|
|
8722
|
-
* <p>Contains the content of a memory item.</p>
|
|
8723
|
-
* @public
|
|
8724
|
-
*/
|
|
8725
|
-
export type Content = Content.TextMember | Content.$UnknownMember;
|
|
8726
|
-
/**
|
|
8727
|
-
* @public
|
|
8728
|
-
*/
|
|
8729
|
-
export declare namespace Content {
|
|
8730
|
-
/**
|
|
8731
|
-
* <p>The text content of the memory item.</p>
|
|
8732
|
-
* @public
|
|
8733
|
-
*/
|
|
8734
|
-
interface TextMember {
|
|
8735
|
-
text: string;
|
|
8736
|
-
$unknown?: never;
|
|
8737
|
-
}
|
|
8738
|
-
/**
|
|
8739
|
-
* @public
|
|
8740
|
-
*/
|
|
8741
|
-
interface $UnknownMember {
|
|
8742
|
-
text?: never;
|
|
8743
|
-
$unknown: [string, any];
|
|
8744
|
-
}
|
|
8745
|
-
/**
|
|
8746
|
-
* @deprecated unused in schema-serde mode.
|
|
8747
|
-
*
|
|
8748
|
-
*/
|
|
8749
|
-
interface Visitor<T> {
|
|
8750
|
-
text: (value: string) => T;
|
|
8751
|
-
_: (name: string, value: any) => T;
|
|
8752
|
-
}
|
|
8753
|
-
}
|
|
8754
|
-
/**
|
|
8755
|
-
* <p>Contains conversational content for an event payload.</p>
|
|
8756
|
-
* @public
|
|
8757
|
-
*/
|
|
8758
|
-
export interface Conversational {
|
|
8759
|
-
/**
|
|
8760
|
-
* <p>The content of the conversation message.</p>
|
|
8761
|
-
* @public
|
|
8762
|
-
*/
|
|
8763
|
-
content: Content | undefined;
|
|
8764
|
-
/**
|
|
8765
|
-
* <p>The role of the participant in the conversation (for example, "user" or "assistant").</p>
|
|
8766
|
-
* @public
|
|
8767
|
-
*/
|
|
8768
|
-
role: Role | undefined;
|
|
8769
|
-
}
|
|
8770
|
-
/**
|
|
8771
|
-
* <p>Contains non-conversational, JSON-formatted content for an event payload. JSON payloads are extracted into long-term memory.</p>
|
|
8772
|
-
* @public
|
|
8773
|
-
*/
|
|
8774
|
-
export interface MemoryJsonData {
|
|
8775
|
-
/**
|
|
8776
|
-
* <p>The JSON content of the payload. Accepts any JSON value, including objects, arrays, strings, numbers, booleans, and null. The maximum size is 100 KB.</p>
|
|
8777
|
-
* @public
|
|
8778
|
-
*/
|
|
8779
|
-
content: __DocumentType | undefined;
|
|
8780
|
-
}
|
|
8781
|
-
/**
|
|
8782
|
-
* <p>Contains the payload content for an event.</p>
|
|
8783
|
-
* @public
|
|
8784
|
-
*/
|
|
8785
|
-
export type PayloadType = PayloadType.BlobMember | PayloadType.ConversationalMember | PayloadType.JsonMember | PayloadType.$UnknownMember;
|
|
8786
|
-
/**
|
|
8787
|
-
* @public
|
|
8788
|
-
*/
|
|
8789
|
-
export declare namespace PayloadType {
|
|
8790
|
-
/**
|
|
8791
|
-
* <p>The conversational content of the payload.</p>
|
|
8792
|
-
* @public
|
|
8793
|
-
*/
|
|
8794
|
-
interface ConversationalMember {
|
|
8795
|
-
conversational: Conversational;
|
|
8796
|
-
blob?: never;
|
|
8797
|
-
json?: never;
|
|
8798
|
-
$unknown?: never;
|
|
8799
|
-
}
|
|
8800
|
-
/**
|
|
8801
|
-
* <p>The binary content of the payload.</p>
|
|
8802
|
-
* @public
|
|
8803
|
-
*/
|
|
8804
|
-
interface BlobMember {
|
|
8805
|
-
conversational?: never;
|
|
8806
|
-
blob: __DocumentType;
|
|
8807
|
-
json?: never;
|
|
8808
|
-
$unknown?: never;
|
|
8809
|
-
}
|
|
8810
|
-
/**
|
|
8811
|
-
* <p>The JSON content of the payload. Use this type to store non-conversational, JSON-formatted data, such as behavioral events, activity logs, or system events.</p>
|
|
8812
|
-
* @public
|
|
8813
|
-
*/
|
|
8814
|
-
interface JsonMember {
|
|
8815
|
-
conversational?: never;
|
|
8816
|
-
blob?: never;
|
|
8817
|
-
json: MemoryJsonData;
|
|
8818
|
-
$unknown?: never;
|
|
8819
|
-
}
|
|
8820
|
-
/**
|
|
8821
|
-
* @public
|
|
8822
|
-
*/
|
|
8823
|
-
interface $UnknownMember {
|
|
8824
|
-
conversational?: never;
|
|
8825
|
-
blob?: never;
|
|
8826
|
-
json?: never;
|
|
8827
|
-
$unknown: [string, any];
|
|
8828
|
-
}
|
|
8829
|
-
/**
|
|
8830
|
-
* @deprecated unused in schema-serde mode.
|
|
8831
|
-
*
|
|
8832
|
-
*/
|
|
8833
|
-
interface Visitor<T> {
|
|
8834
|
-
conversational: (value: Conversational) => T;
|
|
8835
|
-
blob: (value: __DocumentType) => T;
|
|
8836
|
-
json: (value: MemoryJsonData) => T;
|
|
8837
|
-
_: (name: string, value: any) => T;
|
|
8838
|
-
}
|
|
8839
|
-
}
|
|
@@ -1,6 +1,169 @@
|
|
|
1
1
|
import type { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
|
-
import type { BlockchainChainId, CryptoWalletNetwork, Currency, DescriptorType, EventFilterCondition, ExtractionJobStatus, ExtractionMode, InstrumentBalanceToken, MemoryRecordOperatorType, OperatorType, PaymentInstrumentStatus, PaymentInstrumentType, PaymentSessionStatus, PaymentStatus, PaymentType, RegistryRecordStatus } from "./enums";
|
|
3
|
-
import type { A2aDescriptor, ActorSummary, AgentSkillsDescriptor, Branch,
|
|
2
|
+
import type { BlockchainChainId, CryptoWalletNetwork, Currency, DescriptorType, EventFilterCondition, ExtractionJobStatus, ExtractionMode, InstrumentBalanceToken, MemoryRecordOperatorType, OperatorType, PaymentInstrumentStatus, PaymentInstrumentType, PaymentSessionStatus, PaymentStatus, PaymentType, RegistryRecordStatus, Role } from "./enums";
|
|
3
|
+
import type { A2aDescriptor, ActorSummary, AgentSkillsDescriptor, Branch, MemoryContent, MemoryRecordMetadataValue } from "./models_0";
|
|
4
|
+
/**
|
|
5
|
+
* <p>The configuration for extraction behavior. Use this structure to specify namespace variable keys and their values for namespace substitution during long-term memory extraction.</p>
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export interface ExtractionConfig {
|
|
9
|
+
/**
|
|
10
|
+
* <p>A map of <code>namespaceKeys</code> to their values. The service substitutes these values into <code>namespaceTemplates</code> during long-term memory extraction to control namespace hierarchy.</p>
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
namespaceVariables?: Record<string, string> | undefined;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* <p>Value associated with the <code>eventMetadata</code> key.</p>
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export type MetadataValue = MetadataValue.StringValueMember | MetadataValue.$UnknownMember;
|
|
20
|
+
/**
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
export declare namespace MetadataValue {
|
|
24
|
+
/**
|
|
25
|
+
* <p>Value associated with the <code>eventMetadata</code> key.</p>
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
interface StringValueMember {
|
|
29
|
+
stringValue: string;
|
|
30
|
+
$unknown?: never;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @public
|
|
34
|
+
*/
|
|
35
|
+
interface $UnknownMember {
|
|
36
|
+
stringValue?: never;
|
|
37
|
+
$unknown: [string, any];
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated unused in schema-serde mode.
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
interface Visitor<T> {
|
|
44
|
+
stringValue: (value: string) => T;
|
|
45
|
+
_: (name: string, value: any) => T;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* <p>Contains the content of a memory item.</p>
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
52
|
+
export type Content = Content.TextMember | Content.$UnknownMember;
|
|
53
|
+
/**
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
export declare namespace Content {
|
|
57
|
+
/**
|
|
58
|
+
* <p>The text content of the memory item.</p>
|
|
59
|
+
* @public
|
|
60
|
+
*/
|
|
61
|
+
interface TextMember {
|
|
62
|
+
text: string;
|
|
63
|
+
$unknown?: never;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
|
+
interface $UnknownMember {
|
|
69
|
+
text?: never;
|
|
70
|
+
$unknown: [string, any];
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @deprecated unused in schema-serde mode.
|
|
74
|
+
*
|
|
75
|
+
*/
|
|
76
|
+
interface Visitor<T> {
|
|
77
|
+
text: (value: string) => T;
|
|
78
|
+
_: (name: string, value: any) => T;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* <p>Contains conversational content for an event payload.</p>
|
|
83
|
+
* @public
|
|
84
|
+
*/
|
|
85
|
+
export interface Conversational {
|
|
86
|
+
/**
|
|
87
|
+
* <p>The content of the conversation message.</p>
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
content: Content | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* <p>The role of the participant in the conversation (for example, "user" or "assistant").</p>
|
|
93
|
+
* @public
|
|
94
|
+
*/
|
|
95
|
+
role: Role | undefined;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* <p>Contains non-conversational, JSON-formatted content for an event payload. JSON payloads are extracted into long-term memory.</p>
|
|
99
|
+
* @public
|
|
100
|
+
*/
|
|
101
|
+
export interface MemoryJsonData {
|
|
102
|
+
/**
|
|
103
|
+
* <p>The JSON content of the payload. Accepts any JSON value, including objects, arrays, strings, numbers, booleans, and null. The maximum size is 100 KB.</p>
|
|
104
|
+
* @public
|
|
105
|
+
*/
|
|
106
|
+
content: __DocumentType | undefined;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* <p>Contains the payload content for an event.</p>
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
112
|
+
export type PayloadType = PayloadType.BlobMember | PayloadType.ConversationalMember | PayloadType.JsonMember | PayloadType.$UnknownMember;
|
|
113
|
+
/**
|
|
114
|
+
* @public
|
|
115
|
+
*/
|
|
116
|
+
export declare namespace PayloadType {
|
|
117
|
+
/**
|
|
118
|
+
* <p>The conversational content of the payload.</p>
|
|
119
|
+
* @public
|
|
120
|
+
*/
|
|
121
|
+
interface ConversationalMember {
|
|
122
|
+
conversational: Conversational;
|
|
123
|
+
blob?: never;
|
|
124
|
+
json?: never;
|
|
125
|
+
$unknown?: never;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* <p>The binary content of the payload.</p>
|
|
129
|
+
* @public
|
|
130
|
+
*/
|
|
131
|
+
interface BlobMember {
|
|
132
|
+
conversational?: never;
|
|
133
|
+
blob: __DocumentType;
|
|
134
|
+
json?: never;
|
|
135
|
+
$unknown?: never;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* <p>The JSON content of the payload. Use this type to store non-conversational, JSON-formatted data, such as behavioral events, activity logs, or system events.</p>
|
|
139
|
+
* @public
|
|
140
|
+
*/
|
|
141
|
+
interface JsonMember {
|
|
142
|
+
conversational?: never;
|
|
143
|
+
blob?: never;
|
|
144
|
+
json: MemoryJsonData;
|
|
145
|
+
$unknown?: never;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* @public
|
|
149
|
+
*/
|
|
150
|
+
interface $UnknownMember {
|
|
151
|
+
conversational?: never;
|
|
152
|
+
blob?: never;
|
|
153
|
+
json?: never;
|
|
154
|
+
$unknown: [string, any];
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* @deprecated unused in schema-serde mode.
|
|
158
|
+
*
|
|
159
|
+
*/
|
|
160
|
+
interface Visitor<T> {
|
|
161
|
+
conversational: (value: Conversational) => T;
|
|
162
|
+
blob: (value: __DocumentType) => T;
|
|
163
|
+
json: (value: MemoryJsonData) => T;
|
|
164
|
+
_: (name: string, value: any) => T;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
4
167
|
/**
|
|
5
168
|
* @public
|
|
6
169
|
*/
|