@aws-sdk/client-bedrock-agentcore 3.1170.0 → 3.1171.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 +49 -0
- package/dist-cjs/index.js +701 -60
- package/dist-es/BedrockAgentCore.js +18 -0
- package/dist-es/commands/DeleteDatasetGenerationCommand.js +4 -0
- package/dist-es/commands/GetAgentInsightCommand.js +4 -0
- package/dist-es/commands/GetDatasetGenerationCommand.js +4 -0
- package/dist-es/commands/ListAgentInsightsCommand.js +4 -0
- package/dist-es/commands/ListDatasetGenerationsCommand.js +4 -0
- package/dist-es/commands/StartDatasetGenerationCommand.js +4 -0
- package/dist-es/commands/UpdateAgentInsightCommand.js +4 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/models/enums.js +146 -3
- package/dist-es/pagination/ListAgentInsightsPaginator.js +4 -0
- package/dist-es/pagination/ListDatasetGenerationsPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/schemas/schemas_0.js +456 -56
- package/dist-types/BedrockAgentCore.d.ts +64 -0
- package/dist-types/BedrockAgentCoreClient.d.ts +9 -2
- package/dist-types/commands/BatchCreateMemoryRecordsCommand.d.ts +1 -1
- package/dist-types/commands/BatchDeleteMemoryRecordsCommand.d.ts +1 -1
- package/dist-types/commands/BatchUpdateMemoryRecordsCommand.d.ts +1 -2
- package/dist-types/commands/DeleteDatasetGenerationCommand.d.ts +94 -0
- package/dist-types/commands/GetAgentInsightCommand.d.ts +136 -0
- package/dist-types/commands/GetBatchEvaluationCommand.d.ts +13 -0
- package/dist-types/commands/GetDatasetGenerationCommand.d.ts +220 -0
- package/dist-types/commands/InvokeHarnessCommand.d.ts +1 -1
- package/dist-types/commands/InvokeWebSearchCommand.d.ts +1 -1
- package/dist-types/commands/ListAgentInsightsCommand.d.ts +103 -0
- package/dist-types/commands/ListDatasetGenerationsCommand.d.ts +103 -0
- package/dist-types/commands/StartBatchEvaluationCommand.d.ts +12 -0
- package/dist-types/commands/StartDatasetGenerationCommand.d.ts +202 -0
- package/dist-types/commands/UpdateAgentInsightCommand.d.ts +93 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/models/enums.d.ts +256 -7
- package/dist-types/models/models_0.d.ts +2398 -2632
- package/dist-types/models/models_1.d.ts +1588 -2
- package/dist-types/pagination/ListAgentInsightsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListDatasetGenerationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/schemas/schemas_0.d.ts +55 -0
- package/dist-types/ts3.4/BedrockAgentCore.d.ts +134 -0
- package/dist-types/ts3.4/BedrockAgentCoreClient.d.ts +42 -0
- package/dist-types/ts3.4/commands/BatchCreateMemoryRecordsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/BatchDeleteMemoryRecordsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/BatchUpdateMemoryRecordsCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/DeleteDatasetGenerationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetAgentInsightCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetDatasetGenerationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/InvokeHarnessCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/InvokeWebSearchCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListAgentInsightsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListDatasetGenerationsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/StartDatasetGenerationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateAgentInsightCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/models/enums.d.ts +159 -4
- package/dist-types/ts3.4/models/models_0.d.ts +458 -756
- package/dist-types/ts3.4/models/models_1.d.ts +747 -3
- package/dist-types/ts3.4/pagination/ListAgentInsightsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListDatasetGenerationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +55 -0
- package/package.json +1 -1
|
@@ -1,6 +1,1592 @@
|
|
|
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, Role } from "./enums";
|
|
3
|
-
import type {
|
|
2
|
+
import type { BlockchainChainId, CryptoWalletNetwork, Currency, DescriptorType, EventFilterCondition, ExtractionJobStatus, ExtractionMode, HarnessConversationRole, HarnessHookDecision, HarnessHookEventType, HarnessStopReason, HarnessToolType, HarnessToolUseStatus, HarnessToolUseType, InstrumentBalanceToken, MemoryRecordOperatorType, MemoryRecordStatus, OAuthGrantType, OperatorType, PaymentInstrumentStatus, PaymentInstrumentType, PaymentSessionStatus, PaymentStatus, PaymentType, RecordExpiryAction, RegistryRecordStatus, Role } from "./enums";
|
|
3
|
+
import type { InternalServerException, RuntimeClientError, ValidationException } from "./errors";
|
|
4
|
+
import type { A2aDescriptor, ActorSummary, AgentSkillsDescriptor, HarnessAgentCoreBrowserConfig, HarnessMessage, HarnessModelConfiguration, HarnessSkill, HarnessSystemContentBlock, Unit } from "./models_0";
|
|
5
|
+
/**
|
|
6
|
+
* <p>Configuration for AgentCore Code Interpreter.</p>
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export interface HarnessAgentCoreCodeInterpreterConfig {
|
|
10
|
+
/**
|
|
11
|
+
* <p>If not populated, the built-in Code Interpreter ARN is used.</p>
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
codeInterpreterArn?: string | undefined;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* <p>Configuration for an OAuth 2.0 credential provider used to authenticate tool calls.</p>
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
export interface OAuthCredentialProvider {
|
|
21
|
+
/**
|
|
22
|
+
* <p>The ARN of the OAuth 2.0 credential provider in AgentCore Identity.</p>
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
providerArn: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* <p>The OAuth 2.0 scopes to request when obtaining an access token.</p>
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
30
|
+
scopes: string[] | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* <p>Additional custom parameters to include in the OAuth 2.0 token request.</p>
|
|
33
|
+
* @public
|
|
34
|
+
*/
|
|
35
|
+
customParameters?: Record<string, string> | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* <p>The OAuth 2.0 grant type to use for authentication.</p>
|
|
38
|
+
* @public
|
|
39
|
+
*/
|
|
40
|
+
grantType?: OAuthGrantType | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* <p>The default return URL for the OAuth 2.0 authorization flow.</p>
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
45
|
+
defaultReturnUrl?: string | undefined;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* <p>Authentication method for calling a Gateway.</p>
|
|
49
|
+
* @public
|
|
50
|
+
*/
|
|
51
|
+
export type HarnessGatewayOutboundAuth = HarnessGatewayOutboundAuth.AwsIamMember | HarnessGatewayOutboundAuth.NoneMember | HarnessGatewayOutboundAuth.OauthMember | HarnessGatewayOutboundAuth.$UnknownMember;
|
|
52
|
+
/**
|
|
53
|
+
* @public
|
|
54
|
+
*/
|
|
55
|
+
export declare namespace HarnessGatewayOutboundAuth {
|
|
56
|
+
/**
|
|
57
|
+
* <p>SigV4-sign requests using the agent's execution role.</p>
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
interface AwsIamMember {
|
|
61
|
+
awsIam: Unit;
|
|
62
|
+
none?: never;
|
|
63
|
+
oauth?: never;
|
|
64
|
+
$unknown?: never;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* <p>No authentication.</p>
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
70
|
+
interface NoneMember {
|
|
71
|
+
awsIam?: never;
|
|
72
|
+
none: Unit;
|
|
73
|
+
oauth?: never;
|
|
74
|
+
$unknown?: never;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* <p>OAuth 2.0 authentication via AgentCore Identity.</p> <p>The <code>AUTHORIZATION_CODE</code> grant type is not supported for outbound authentication from a harness to an AgentCore Gateway, even when <code>defaultReturnUrl</code> is specified.</p>
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
interface OauthMember {
|
|
81
|
+
awsIam?: never;
|
|
82
|
+
none?: never;
|
|
83
|
+
oauth: OAuthCredentialProvider;
|
|
84
|
+
$unknown?: never;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
interface $UnknownMember {
|
|
90
|
+
awsIam?: never;
|
|
91
|
+
none?: never;
|
|
92
|
+
oauth?: never;
|
|
93
|
+
$unknown: [string, any];
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* @deprecated unused in schema-serde mode.
|
|
97
|
+
*
|
|
98
|
+
*/
|
|
99
|
+
interface Visitor<T> {
|
|
100
|
+
awsIam: (value: Unit) => T;
|
|
101
|
+
none: (value: Unit) => T;
|
|
102
|
+
oauth: (value: OAuthCredentialProvider) => T;
|
|
103
|
+
_: (name: string, value: any) => T;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* <p>Configuration for AgentCore Gateway.</p>
|
|
108
|
+
* @public
|
|
109
|
+
*/
|
|
110
|
+
export interface HarnessAgentCoreGatewayConfig {
|
|
111
|
+
/**
|
|
112
|
+
* <p>The ARN of the desired AgentCore Gateway.</p>
|
|
113
|
+
* @public
|
|
114
|
+
*/
|
|
115
|
+
gatewayArn: string | undefined;
|
|
116
|
+
/**
|
|
117
|
+
* <p>How harness authenticates to this Gateway. Defaults to AWS_IAM (SigV4) if omitted.</p>
|
|
118
|
+
* @public
|
|
119
|
+
*/
|
|
120
|
+
outboundAuth?: HarnessGatewayOutboundAuth | undefined;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* <p>Configuration for an inline function tool. When the agent calls this tool, the tool call is returned to the caller for external execution.</p>
|
|
124
|
+
* @public
|
|
125
|
+
*/
|
|
126
|
+
export interface HarnessInlineFunctionConfig {
|
|
127
|
+
/**
|
|
128
|
+
* <p>Description of what the tool does, provided to the model.</p>
|
|
129
|
+
* @public
|
|
130
|
+
*/
|
|
131
|
+
description: string | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* <p>JSON Schema describing the tool's input parameters.</p>
|
|
134
|
+
* @public
|
|
135
|
+
*/
|
|
136
|
+
inputSchema: __DocumentType | undefined;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* <p>An IAM credential provider for authenticating requests. This structure contains the configuration for authenticating with a target endpoint using IAM credentials and SigV4 signing.</p>
|
|
140
|
+
* @public
|
|
141
|
+
*/
|
|
142
|
+
export interface IamCredentialProvider {
|
|
143
|
+
/**
|
|
144
|
+
* <p>The name of the Amazon Web Services service used for SigV4 signing. This value identifies the service to authenticate with when sending requests to the target endpoint.</p>
|
|
145
|
+
* @public
|
|
146
|
+
*/
|
|
147
|
+
service: string | undefined;
|
|
148
|
+
/**
|
|
149
|
+
* <p>The Amazon Web Services Region used for SigV4 signing. If not specified, defaults to the Region of the resource that makes the request.</p>
|
|
150
|
+
* @public
|
|
151
|
+
*/
|
|
152
|
+
region?: string | undefined;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* <p>Authentication method for calling a remote MCP server.</p>
|
|
156
|
+
* @public
|
|
157
|
+
*/
|
|
158
|
+
export type HarnessRemoteMcpOutboundAuth = HarnessRemoteMcpOutboundAuth.AwsIamMember | HarnessRemoteMcpOutboundAuth.NoneMember | HarnessRemoteMcpOutboundAuth.$UnknownMember;
|
|
159
|
+
/**
|
|
160
|
+
* @public
|
|
161
|
+
*/
|
|
162
|
+
export declare namespace HarnessRemoteMcpOutboundAuth {
|
|
163
|
+
/**
|
|
164
|
+
* <p>Sign requests to the remote MCP server with Signature Version 4 (SigV4) using the harness execution role. If you don't specify a Region, the harness Region is used.</p>
|
|
165
|
+
* @public
|
|
166
|
+
*/
|
|
167
|
+
interface AwsIamMember {
|
|
168
|
+
awsIam: IamCredentialProvider;
|
|
169
|
+
none?: never;
|
|
170
|
+
$unknown?: never;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* <p>No authentication.</p>
|
|
174
|
+
* @public
|
|
175
|
+
*/
|
|
176
|
+
interface NoneMember {
|
|
177
|
+
awsIam?: never;
|
|
178
|
+
none: Unit;
|
|
179
|
+
$unknown?: never;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* @public
|
|
183
|
+
*/
|
|
184
|
+
interface $UnknownMember {
|
|
185
|
+
awsIam?: never;
|
|
186
|
+
none?: never;
|
|
187
|
+
$unknown: [string, any];
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* @deprecated unused in schema-serde mode.
|
|
191
|
+
*
|
|
192
|
+
*/
|
|
193
|
+
interface Visitor<T> {
|
|
194
|
+
awsIam: (value: IamCredentialProvider) => T;
|
|
195
|
+
none: (value: Unit) => T;
|
|
196
|
+
_: (name: string, value: any) => T;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* <p>Configuration for connecting to a remote MCP server.</p>
|
|
201
|
+
* @public
|
|
202
|
+
*/
|
|
203
|
+
export interface HarnessRemoteMcpConfig {
|
|
204
|
+
/**
|
|
205
|
+
* <p>URL of the MCP endpoint.</p>
|
|
206
|
+
* @public
|
|
207
|
+
*/
|
|
208
|
+
url: string | undefined;
|
|
209
|
+
/**
|
|
210
|
+
* <p>Custom headers to include when connecting to the remote MCP server.</p>
|
|
211
|
+
* @public
|
|
212
|
+
*/
|
|
213
|
+
headers?: Record<string, string> | undefined;
|
|
214
|
+
/**
|
|
215
|
+
* <p>How the harness authenticates to this MCP server. Defaults to no authentication.</p>
|
|
216
|
+
* @public
|
|
217
|
+
*/
|
|
218
|
+
outboundAuth?: HarnessRemoteMcpOutboundAuth | undefined;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* <p>Configuration union for different tool types.</p>
|
|
222
|
+
* @public
|
|
223
|
+
*/
|
|
224
|
+
export type HarnessToolConfiguration = HarnessToolConfiguration.AgentCoreBrowserMember | HarnessToolConfiguration.AgentCoreCodeInterpreterMember | HarnessToolConfiguration.AgentCoreGatewayMember | HarnessToolConfiguration.InlineFunctionMember | HarnessToolConfiguration.RemoteMcpMember | HarnessToolConfiguration.$UnknownMember;
|
|
225
|
+
/**
|
|
226
|
+
* @public
|
|
227
|
+
*/
|
|
228
|
+
export declare namespace HarnessToolConfiguration {
|
|
229
|
+
/**
|
|
230
|
+
* <p>Configuration for remote MCP server.</p>
|
|
231
|
+
* @public
|
|
232
|
+
*/
|
|
233
|
+
interface RemoteMcpMember {
|
|
234
|
+
remoteMcp: HarnessRemoteMcpConfig;
|
|
235
|
+
agentCoreBrowser?: never;
|
|
236
|
+
agentCoreGateway?: never;
|
|
237
|
+
inlineFunction?: never;
|
|
238
|
+
agentCoreCodeInterpreter?: never;
|
|
239
|
+
$unknown?: never;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* <p>Configuration for AgentCore Browser.</p>
|
|
243
|
+
* @public
|
|
244
|
+
*/
|
|
245
|
+
interface AgentCoreBrowserMember {
|
|
246
|
+
remoteMcp?: never;
|
|
247
|
+
agentCoreBrowser: HarnessAgentCoreBrowserConfig;
|
|
248
|
+
agentCoreGateway?: never;
|
|
249
|
+
inlineFunction?: never;
|
|
250
|
+
agentCoreCodeInterpreter?: never;
|
|
251
|
+
$unknown?: never;
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* <p>Configuration for AgentCore Gateway.</p>
|
|
255
|
+
* @public
|
|
256
|
+
*/
|
|
257
|
+
interface AgentCoreGatewayMember {
|
|
258
|
+
remoteMcp?: never;
|
|
259
|
+
agentCoreBrowser?: never;
|
|
260
|
+
agentCoreGateway: HarnessAgentCoreGatewayConfig;
|
|
261
|
+
inlineFunction?: never;
|
|
262
|
+
agentCoreCodeInterpreter?: never;
|
|
263
|
+
$unknown?: never;
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* <p>Configuration for an inline function tool.</p>
|
|
267
|
+
* @public
|
|
268
|
+
*/
|
|
269
|
+
interface InlineFunctionMember {
|
|
270
|
+
remoteMcp?: never;
|
|
271
|
+
agentCoreBrowser?: never;
|
|
272
|
+
agentCoreGateway?: never;
|
|
273
|
+
inlineFunction: HarnessInlineFunctionConfig;
|
|
274
|
+
agentCoreCodeInterpreter?: never;
|
|
275
|
+
$unknown?: never;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* <p>Configuration for AgentCore Code Interpreter.</p>
|
|
279
|
+
* @public
|
|
280
|
+
*/
|
|
281
|
+
interface AgentCoreCodeInterpreterMember {
|
|
282
|
+
remoteMcp?: never;
|
|
283
|
+
agentCoreBrowser?: never;
|
|
284
|
+
agentCoreGateway?: never;
|
|
285
|
+
inlineFunction?: never;
|
|
286
|
+
agentCoreCodeInterpreter: HarnessAgentCoreCodeInterpreterConfig;
|
|
287
|
+
$unknown?: never;
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* @public
|
|
291
|
+
*/
|
|
292
|
+
interface $UnknownMember {
|
|
293
|
+
remoteMcp?: never;
|
|
294
|
+
agentCoreBrowser?: never;
|
|
295
|
+
agentCoreGateway?: never;
|
|
296
|
+
inlineFunction?: never;
|
|
297
|
+
agentCoreCodeInterpreter?: never;
|
|
298
|
+
$unknown: [string, any];
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* @deprecated unused in schema-serde mode.
|
|
302
|
+
*
|
|
303
|
+
*/
|
|
304
|
+
interface Visitor<T> {
|
|
305
|
+
remoteMcp: (value: HarnessRemoteMcpConfig) => T;
|
|
306
|
+
agentCoreBrowser: (value: HarnessAgentCoreBrowserConfig) => T;
|
|
307
|
+
agentCoreGateway: (value: HarnessAgentCoreGatewayConfig) => T;
|
|
308
|
+
inlineFunction: (value: HarnessInlineFunctionConfig) => T;
|
|
309
|
+
agentCoreCodeInterpreter: (value: HarnessAgentCoreCodeInterpreterConfig) => T;
|
|
310
|
+
_: (name: string, value: any) => T;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* <p>A tool available to the agent loop.</p>
|
|
315
|
+
* @public
|
|
316
|
+
*/
|
|
317
|
+
export interface HarnessTool {
|
|
318
|
+
/**
|
|
319
|
+
* <p>The type of tool.</p>
|
|
320
|
+
* @public
|
|
321
|
+
*/
|
|
322
|
+
type: HarnessToolType | undefined;
|
|
323
|
+
/**
|
|
324
|
+
* <p>Unique name for the tool. If not provided, a name will be inferred or generated.</p>
|
|
325
|
+
* @public
|
|
326
|
+
*/
|
|
327
|
+
name?: string | undefined;
|
|
328
|
+
/**
|
|
329
|
+
* <p>Tool-specific configuration.</p>
|
|
330
|
+
* @public
|
|
331
|
+
*/
|
|
332
|
+
config?: HarnessToolConfiguration | undefined;
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* @public
|
|
336
|
+
*/
|
|
337
|
+
export interface InvokeHarnessRequest {
|
|
338
|
+
/**
|
|
339
|
+
* <p>The ARN of the harness to invoke.</p>
|
|
340
|
+
* @public
|
|
341
|
+
*/
|
|
342
|
+
harnessArn: string | undefined;
|
|
343
|
+
/**
|
|
344
|
+
* <p>The endpoint name to invoke. If omitted, the DEFAULT endpoint is used.</p>
|
|
345
|
+
* @public
|
|
346
|
+
*/
|
|
347
|
+
qualifier?: string | undefined;
|
|
348
|
+
/**
|
|
349
|
+
* <p>The session ID for the invocation. Use the same session ID across requests to continue a conversation.</p>
|
|
350
|
+
* @public
|
|
351
|
+
*/
|
|
352
|
+
runtimeSessionId: string | undefined;
|
|
353
|
+
/**
|
|
354
|
+
* <p>An identifier for the end user making the request. This value is passed through to the runtime container.</p>
|
|
355
|
+
* @public
|
|
356
|
+
*/
|
|
357
|
+
runtimeUserId?: string | undefined;
|
|
358
|
+
/**
|
|
359
|
+
* <p>W3C trace context parent header containing version, trace ID, parent span ID, and trace flags.</p>
|
|
360
|
+
* @public
|
|
361
|
+
*/
|
|
362
|
+
traceParent?: string | undefined;
|
|
363
|
+
/**
|
|
364
|
+
* <p>W3C trace context state header for vendor-specific trace information.</p>
|
|
365
|
+
* @public
|
|
366
|
+
*/
|
|
367
|
+
traceState?: string | undefined;
|
|
368
|
+
/**
|
|
369
|
+
* <p>Trace ID for maintaining observability through the operation.</p>
|
|
370
|
+
* @public
|
|
371
|
+
*/
|
|
372
|
+
traceId?: string | undefined;
|
|
373
|
+
/**
|
|
374
|
+
* <p>W3C Baggage header for user-defined context propagation. Format: key1=value1,key2=value2</p>
|
|
375
|
+
* @public
|
|
376
|
+
*/
|
|
377
|
+
baggage?: string | undefined;
|
|
378
|
+
/**
|
|
379
|
+
* <p>The messages to send to the agent.</p>
|
|
380
|
+
* @public
|
|
381
|
+
*/
|
|
382
|
+
messages: HarnessMessage[] | undefined;
|
|
383
|
+
/**
|
|
384
|
+
* <p>The model configuration to use for this invocation. If specified, overrides the harness default.</p>
|
|
385
|
+
* @public
|
|
386
|
+
*/
|
|
387
|
+
model?: HarnessModelConfiguration | undefined;
|
|
388
|
+
/**
|
|
389
|
+
* <p>The system prompt to use for this invocation. If specified, overrides the harness default.</p>
|
|
390
|
+
* @public
|
|
391
|
+
*/
|
|
392
|
+
systemPrompt?: HarnessSystemContentBlock[] | undefined;
|
|
393
|
+
/**
|
|
394
|
+
* <p>The tools available to the agent for this invocation. If specified, overrides the harness default.</p>
|
|
395
|
+
* @public
|
|
396
|
+
*/
|
|
397
|
+
tools?: HarnessTool[] | undefined;
|
|
398
|
+
/**
|
|
399
|
+
* <p>The skills available to the agent for this invocation. If specified, overrides the harness default.</p>
|
|
400
|
+
* @public
|
|
401
|
+
*/
|
|
402
|
+
skills?: HarnessSkill[] | undefined;
|
|
403
|
+
/**
|
|
404
|
+
* <p>The tools that the agent is allowed to use for this invocation. If specified, overrides the harness default.</p>
|
|
405
|
+
* @public
|
|
406
|
+
*/
|
|
407
|
+
allowedTools?: string[] | undefined;
|
|
408
|
+
/**
|
|
409
|
+
* <p>The maximum number of iterations the agent loop can execute. If specified, overrides the harness default.</p>
|
|
410
|
+
* @public
|
|
411
|
+
*/
|
|
412
|
+
maxIterations?: number | undefined;
|
|
413
|
+
/**
|
|
414
|
+
* <p>The maximum number of tokens the agent can generate per iteration. If specified, overrides the harness default.</p>
|
|
415
|
+
* @public
|
|
416
|
+
*/
|
|
417
|
+
maxTokens?: number | undefined;
|
|
418
|
+
/**
|
|
419
|
+
* <p>The maximum duration in seconds for the agent loop execution. If specified, overrides the harness default.</p>
|
|
420
|
+
* @public
|
|
421
|
+
*/
|
|
422
|
+
timeoutSeconds?: number | undefined;
|
|
423
|
+
/**
|
|
424
|
+
* <p>The actor ID for memory operations. Overrides the actor ID configured on the harness.</p>
|
|
425
|
+
* @public
|
|
426
|
+
*/
|
|
427
|
+
actorId?: string | undefined;
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* <p>A delta update to a reasoning content block.</p>
|
|
431
|
+
* @public
|
|
432
|
+
*/
|
|
433
|
+
export type HarnessReasoningContentBlockDelta = HarnessReasoningContentBlockDelta.RedactedContentMember | HarnessReasoningContentBlockDelta.SignatureMember | HarnessReasoningContentBlockDelta.TextMember | HarnessReasoningContentBlockDelta.$UnknownMember;
|
|
434
|
+
/**
|
|
435
|
+
* @public
|
|
436
|
+
*/
|
|
437
|
+
export declare namespace HarnessReasoningContentBlockDelta {
|
|
438
|
+
/**
|
|
439
|
+
* <p>Reasoning text delta.</p>
|
|
440
|
+
* @public
|
|
441
|
+
*/
|
|
442
|
+
interface TextMember {
|
|
443
|
+
text: string;
|
|
444
|
+
redactedContent?: never;
|
|
445
|
+
signature?: never;
|
|
446
|
+
$unknown?: never;
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* <p>Redacted reasoning content.</p>
|
|
450
|
+
* @public
|
|
451
|
+
*/
|
|
452
|
+
interface RedactedContentMember {
|
|
453
|
+
text?: never;
|
|
454
|
+
redactedContent: Uint8Array;
|
|
455
|
+
signature?: never;
|
|
456
|
+
$unknown?: never;
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* <p>Signature for the reasoning content.</p>
|
|
460
|
+
* @public
|
|
461
|
+
*/
|
|
462
|
+
interface SignatureMember {
|
|
463
|
+
text?: never;
|
|
464
|
+
redactedContent?: never;
|
|
465
|
+
signature: string;
|
|
466
|
+
$unknown?: never;
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* @public
|
|
470
|
+
*/
|
|
471
|
+
interface $UnknownMember {
|
|
472
|
+
text?: never;
|
|
473
|
+
redactedContent?: never;
|
|
474
|
+
signature?: never;
|
|
475
|
+
$unknown: [string, any];
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* @deprecated unused in schema-serde mode.
|
|
479
|
+
*
|
|
480
|
+
*/
|
|
481
|
+
interface Visitor<T> {
|
|
482
|
+
text: (value: string) => T;
|
|
483
|
+
redactedContent: (value: Uint8Array) => T;
|
|
484
|
+
signature: (value: string) => T;
|
|
485
|
+
_: (name: string, value: any) => T;
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
/**
|
|
489
|
+
* <p>A delta update to a tool result content block.</p>
|
|
490
|
+
* @public
|
|
491
|
+
*/
|
|
492
|
+
export type HarnessToolResultBlockDelta = HarnessToolResultBlockDelta.JsonMember | HarnessToolResultBlockDelta.TextMember | HarnessToolResultBlockDelta.$UnknownMember;
|
|
493
|
+
/**
|
|
494
|
+
* @public
|
|
495
|
+
*/
|
|
496
|
+
export declare namespace HarnessToolResultBlockDelta {
|
|
497
|
+
/**
|
|
498
|
+
* <p>A text tool result delta.</p>
|
|
499
|
+
* @public
|
|
500
|
+
*/
|
|
501
|
+
interface TextMember {
|
|
502
|
+
text: string;
|
|
503
|
+
json?: never;
|
|
504
|
+
$unknown?: never;
|
|
505
|
+
}
|
|
506
|
+
/**
|
|
507
|
+
* <p>A JSON tool result delta.</p>
|
|
508
|
+
* @public
|
|
509
|
+
*/
|
|
510
|
+
interface JsonMember {
|
|
511
|
+
text?: never;
|
|
512
|
+
json: __DocumentType;
|
|
513
|
+
$unknown?: never;
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* @public
|
|
517
|
+
*/
|
|
518
|
+
interface $UnknownMember {
|
|
519
|
+
text?: never;
|
|
520
|
+
json?: never;
|
|
521
|
+
$unknown: [string, any];
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
* @deprecated unused in schema-serde mode.
|
|
525
|
+
*
|
|
526
|
+
*/
|
|
527
|
+
interface Visitor<T> {
|
|
528
|
+
text: (value: string) => T;
|
|
529
|
+
json: (value: __DocumentType) => T;
|
|
530
|
+
_: (name: string, value: any) => T;
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
/**
|
|
534
|
+
* <p>Delta payload for a tool result metadata.</p>
|
|
535
|
+
* @public
|
|
536
|
+
*/
|
|
537
|
+
export interface HarnessToolResultMetadataBlockDelta {
|
|
538
|
+
/**
|
|
539
|
+
* <p>The partial JSON-string fragment of the tool result metadata.</p>
|
|
540
|
+
* @public
|
|
541
|
+
*/
|
|
542
|
+
metadata: string | undefined;
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* <p>Delta payload for tool use input.</p>
|
|
546
|
+
* @public
|
|
547
|
+
*/
|
|
548
|
+
export interface HarnessToolUseBlockDelta {
|
|
549
|
+
/**
|
|
550
|
+
* <p>The partial JSON input for the tool call.</p>
|
|
551
|
+
* @public
|
|
552
|
+
*/
|
|
553
|
+
input: string | undefined;
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* <p>A delta update to a content block.</p>
|
|
557
|
+
* @public
|
|
558
|
+
*/
|
|
559
|
+
export type HarnessContentBlockDelta = HarnessContentBlockDelta.ReasoningContentMember | HarnessContentBlockDelta.TextMember | HarnessContentBlockDelta.ToolResultMember | HarnessContentBlockDelta.ToolResultMetadataMember | HarnessContentBlockDelta.ToolUseMember | HarnessContentBlockDelta.$UnknownMember;
|
|
560
|
+
/**
|
|
561
|
+
* @public
|
|
562
|
+
*/
|
|
563
|
+
export declare namespace HarnessContentBlockDelta {
|
|
564
|
+
/**
|
|
565
|
+
* <p>A text delta.</p>
|
|
566
|
+
* @public
|
|
567
|
+
*/
|
|
568
|
+
interface TextMember {
|
|
569
|
+
text: string;
|
|
570
|
+
toolUse?: never;
|
|
571
|
+
toolResult?: never;
|
|
572
|
+
reasoningContent?: never;
|
|
573
|
+
toolResultMetadata?: never;
|
|
574
|
+
$unknown?: never;
|
|
575
|
+
}
|
|
576
|
+
/**
|
|
577
|
+
* <p>A tool use input delta.</p>
|
|
578
|
+
* @public
|
|
579
|
+
*/
|
|
580
|
+
interface ToolUseMember {
|
|
581
|
+
text?: never;
|
|
582
|
+
toolUse: HarnessToolUseBlockDelta;
|
|
583
|
+
toolResult?: never;
|
|
584
|
+
reasoningContent?: never;
|
|
585
|
+
toolResultMetadata?: never;
|
|
586
|
+
$unknown?: never;
|
|
587
|
+
}
|
|
588
|
+
/**
|
|
589
|
+
* <p>A tool result delta.</p>
|
|
590
|
+
* @public
|
|
591
|
+
*/
|
|
592
|
+
interface ToolResultMember {
|
|
593
|
+
text?: never;
|
|
594
|
+
toolUse?: never;
|
|
595
|
+
toolResult: HarnessToolResultBlockDelta[];
|
|
596
|
+
reasoningContent?: never;
|
|
597
|
+
toolResultMetadata?: never;
|
|
598
|
+
$unknown?: never;
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* <p>A reasoning content delta.</p>
|
|
602
|
+
* @public
|
|
603
|
+
*/
|
|
604
|
+
interface ReasoningContentMember {
|
|
605
|
+
text?: never;
|
|
606
|
+
toolUse?: never;
|
|
607
|
+
toolResult?: never;
|
|
608
|
+
reasoningContent: HarnessReasoningContentBlockDelta;
|
|
609
|
+
toolResultMetadata?: never;
|
|
610
|
+
$unknown?: never;
|
|
611
|
+
}
|
|
612
|
+
/**
|
|
613
|
+
* <p>A tool result metadata delta.</p>
|
|
614
|
+
* @public
|
|
615
|
+
*/
|
|
616
|
+
interface ToolResultMetadataMember {
|
|
617
|
+
text?: never;
|
|
618
|
+
toolUse?: never;
|
|
619
|
+
toolResult?: never;
|
|
620
|
+
reasoningContent?: never;
|
|
621
|
+
toolResultMetadata: HarnessToolResultMetadataBlockDelta;
|
|
622
|
+
$unknown?: never;
|
|
623
|
+
}
|
|
624
|
+
/**
|
|
625
|
+
* @public
|
|
626
|
+
*/
|
|
627
|
+
interface $UnknownMember {
|
|
628
|
+
text?: never;
|
|
629
|
+
toolUse?: never;
|
|
630
|
+
toolResult?: never;
|
|
631
|
+
reasoningContent?: never;
|
|
632
|
+
toolResultMetadata?: never;
|
|
633
|
+
$unknown: [string, any];
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* @deprecated unused in schema-serde mode.
|
|
637
|
+
*
|
|
638
|
+
*/
|
|
639
|
+
interface Visitor<T> {
|
|
640
|
+
text: (value: string) => T;
|
|
641
|
+
toolUse: (value: HarnessToolUseBlockDelta) => T;
|
|
642
|
+
toolResult: (value: HarnessToolResultBlockDelta[]) => T;
|
|
643
|
+
reasoningContent: (value: HarnessReasoningContentBlockDelta) => T;
|
|
644
|
+
toolResultMetadata: (value: HarnessToolResultMetadataBlockDelta) => T;
|
|
645
|
+
_: (name: string, value: any) => T;
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* <p>Event containing a delta update to a content block.</p>
|
|
650
|
+
* @public
|
|
651
|
+
*/
|
|
652
|
+
export interface HarnessContentBlockDeltaEvent {
|
|
653
|
+
/**
|
|
654
|
+
* <p>The index of the content block being updated.</p>
|
|
655
|
+
* @public
|
|
656
|
+
*/
|
|
657
|
+
contentBlockIndex: number | undefined;
|
|
658
|
+
/**
|
|
659
|
+
* <p>The delta payload.</p>
|
|
660
|
+
* @public
|
|
661
|
+
*/
|
|
662
|
+
delta: HarnessContentBlockDelta | undefined;
|
|
663
|
+
}
|
|
664
|
+
/**
|
|
665
|
+
* <p>Start payload for a tool result content block.</p>
|
|
666
|
+
* @public
|
|
667
|
+
*/
|
|
668
|
+
export interface HarnessToolResultBlockStart {
|
|
669
|
+
/**
|
|
670
|
+
* <p>The tool use ID that this result corresponds to.</p>
|
|
671
|
+
* @public
|
|
672
|
+
*/
|
|
673
|
+
toolUseId: string | undefined;
|
|
674
|
+
/**
|
|
675
|
+
* <p>The status of the tool execution.</p>
|
|
676
|
+
* @public
|
|
677
|
+
*/
|
|
678
|
+
status?: HarnessToolUseStatus | undefined;
|
|
679
|
+
}
|
|
680
|
+
/**
|
|
681
|
+
* <p>Start payload for a tool use content block.</p>
|
|
682
|
+
* @public
|
|
683
|
+
*/
|
|
684
|
+
export interface HarnessToolUseBlockStart {
|
|
685
|
+
/**
|
|
686
|
+
* <p>The unique ID of this tool use.</p>
|
|
687
|
+
* @public
|
|
688
|
+
*/
|
|
689
|
+
toolUseId: string | undefined;
|
|
690
|
+
/**
|
|
691
|
+
* <p>The name of the tool being called.</p>
|
|
692
|
+
* @public
|
|
693
|
+
*/
|
|
694
|
+
name: string | undefined;
|
|
695
|
+
/**
|
|
696
|
+
* <p>The type of tool use.</p>
|
|
697
|
+
* @public
|
|
698
|
+
*/
|
|
699
|
+
type?: HarnessToolUseType | undefined;
|
|
700
|
+
/**
|
|
701
|
+
* <p>The name of the MCP server providing this tool.</p>
|
|
702
|
+
* @public
|
|
703
|
+
*/
|
|
704
|
+
serverName?: string | undefined;
|
|
705
|
+
}
|
|
706
|
+
/**
|
|
707
|
+
* <p>The start payload for a content block.</p>
|
|
708
|
+
* @public
|
|
709
|
+
*/
|
|
710
|
+
export type HarnessContentBlockStart = HarnessContentBlockStart.ToolResultMember | HarnessContentBlockStart.ToolUseMember | HarnessContentBlockStart.$UnknownMember;
|
|
711
|
+
/**
|
|
712
|
+
* @public
|
|
713
|
+
*/
|
|
714
|
+
export declare namespace HarnessContentBlockStart {
|
|
715
|
+
/**
|
|
716
|
+
* <p>Start of a tool use content block.</p>
|
|
717
|
+
* @public
|
|
718
|
+
*/
|
|
719
|
+
interface ToolUseMember {
|
|
720
|
+
toolUse: HarnessToolUseBlockStart;
|
|
721
|
+
toolResult?: never;
|
|
722
|
+
$unknown?: never;
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
* <p>Start of a tool result content block.</p>
|
|
726
|
+
* @public
|
|
727
|
+
*/
|
|
728
|
+
interface ToolResultMember {
|
|
729
|
+
toolUse?: never;
|
|
730
|
+
toolResult: HarnessToolResultBlockStart;
|
|
731
|
+
$unknown?: never;
|
|
732
|
+
}
|
|
733
|
+
/**
|
|
734
|
+
* @public
|
|
735
|
+
*/
|
|
736
|
+
interface $UnknownMember {
|
|
737
|
+
toolUse?: never;
|
|
738
|
+
toolResult?: never;
|
|
739
|
+
$unknown: [string, any];
|
|
740
|
+
}
|
|
741
|
+
/**
|
|
742
|
+
* @deprecated unused in schema-serde mode.
|
|
743
|
+
*
|
|
744
|
+
*/
|
|
745
|
+
interface Visitor<T> {
|
|
746
|
+
toolUse: (value: HarnessToolUseBlockStart) => T;
|
|
747
|
+
toolResult: (value: HarnessToolResultBlockStart) => T;
|
|
748
|
+
_: (name: string, value: any) => T;
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
* <p>Event indicating the start of a content block.</p>
|
|
753
|
+
* @public
|
|
754
|
+
*/
|
|
755
|
+
export interface HarnessContentBlockStartEvent {
|
|
756
|
+
/**
|
|
757
|
+
* <p>The index of the content block within the message.</p>
|
|
758
|
+
* @public
|
|
759
|
+
*/
|
|
760
|
+
contentBlockIndex: number | undefined;
|
|
761
|
+
/**
|
|
762
|
+
* <p>The content block start payload.</p>
|
|
763
|
+
* @public
|
|
764
|
+
*/
|
|
765
|
+
start: HarnessContentBlockStart | undefined;
|
|
766
|
+
}
|
|
767
|
+
/**
|
|
768
|
+
* <p>Event indicating the end of a content block.</p>
|
|
769
|
+
* @public
|
|
770
|
+
*/
|
|
771
|
+
export interface HarnessContentBlockStopEvent {
|
|
772
|
+
/**
|
|
773
|
+
* <p>The index of the content block that ended.</p>
|
|
774
|
+
* @public
|
|
775
|
+
*/
|
|
776
|
+
contentBlockIndex: number | undefined;
|
|
777
|
+
}
|
|
778
|
+
/**
|
|
779
|
+
* <p>A lifecycle hook event emitted in the invocation stream for visibility into hook decisions.</p>
|
|
780
|
+
* @public
|
|
781
|
+
*/
|
|
782
|
+
export interface HarnessHookEvent {
|
|
783
|
+
/**
|
|
784
|
+
* <p>The unique identifier for this hook event.</p>
|
|
785
|
+
* @public
|
|
786
|
+
*/
|
|
787
|
+
hookEventId: string | undefined;
|
|
788
|
+
/**
|
|
789
|
+
* <p>The name of the hook that ran.</p>
|
|
790
|
+
* @public
|
|
791
|
+
*/
|
|
792
|
+
name: string | undefined;
|
|
793
|
+
/**
|
|
794
|
+
* <p>The type of lifecycle hook event.</p>
|
|
795
|
+
* @public
|
|
796
|
+
*/
|
|
797
|
+
type: HarnessHookEventType | undefined;
|
|
798
|
+
/**
|
|
799
|
+
* <p>The decision applied to the hook event. This field is present only for blocking Lambda targets.</p>
|
|
800
|
+
* @public
|
|
801
|
+
*/
|
|
802
|
+
decision?: HarnessHookDecision | undefined;
|
|
803
|
+
/**
|
|
804
|
+
* <p>The optional reason for the applied decision.</p>
|
|
805
|
+
* @public
|
|
806
|
+
*/
|
|
807
|
+
reason?: string | undefined;
|
|
808
|
+
}
|
|
809
|
+
/**
|
|
810
|
+
* <p>Event indicating the start of a message.</p>
|
|
811
|
+
* @public
|
|
812
|
+
*/
|
|
813
|
+
export interface HarnessMessageStartEvent {
|
|
814
|
+
/**
|
|
815
|
+
* <p>The role of the message sender.</p>
|
|
816
|
+
* @public
|
|
817
|
+
*/
|
|
818
|
+
role: HarnessConversationRole | undefined;
|
|
819
|
+
}
|
|
820
|
+
/**
|
|
821
|
+
* <p>Event indicating the end of a message.</p>
|
|
822
|
+
* @public
|
|
823
|
+
*/
|
|
824
|
+
export interface HarnessMessageStopEvent {
|
|
825
|
+
/**
|
|
826
|
+
* <p>The reason the agent stopped generating.</p>
|
|
827
|
+
* @public
|
|
828
|
+
*/
|
|
829
|
+
stopReason: HarnessStopReason | undefined;
|
|
830
|
+
}
|
|
831
|
+
/**
|
|
832
|
+
* <p>Latency metrics for the invocation.</p>
|
|
833
|
+
* @public
|
|
834
|
+
*/
|
|
835
|
+
export interface HarnessStreamMetrics {
|
|
836
|
+
/**
|
|
837
|
+
* <p>The end-to-end latency of the invocation in milliseconds.</p>
|
|
838
|
+
* @public
|
|
839
|
+
*/
|
|
840
|
+
latencyMs: number | undefined;
|
|
841
|
+
}
|
|
842
|
+
/**
|
|
843
|
+
* <p>Token usage counts for the invocation.</p>
|
|
844
|
+
* @public
|
|
845
|
+
*/
|
|
846
|
+
export interface HarnessTokenUsage {
|
|
847
|
+
/**
|
|
848
|
+
* <p>The number of input tokens consumed.</p>
|
|
849
|
+
* @public
|
|
850
|
+
*/
|
|
851
|
+
inputTokens: number | undefined;
|
|
852
|
+
/**
|
|
853
|
+
* <p>The number of output tokens generated.</p>
|
|
854
|
+
* @public
|
|
855
|
+
*/
|
|
856
|
+
outputTokens: number | undefined;
|
|
857
|
+
/**
|
|
858
|
+
* <p>The total number of tokens consumed.</p>
|
|
859
|
+
* @public
|
|
860
|
+
*/
|
|
861
|
+
totalTokens: number | undefined;
|
|
862
|
+
/**
|
|
863
|
+
* <p>The number of input tokens read from cache.</p>
|
|
864
|
+
* @public
|
|
865
|
+
*/
|
|
866
|
+
cacheReadInputTokens?: number | undefined;
|
|
867
|
+
/**
|
|
868
|
+
* <p>The number of input tokens written to cache.</p>
|
|
869
|
+
* @public
|
|
870
|
+
*/
|
|
871
|
+
cacheWriteInputTokens?: number | undefined;
|
|
872
|
+
}
|
|
873
|
+
/**
|
|
874
|
+
* <p>Token usage and latency metrics for the invocation.</p>
|
|
875
|
+
* @public
|
|
876
|
+
*/
|
|
877
|
+
export interface HarnessMetadataEvent {
|
|
878
|
+
/**
|
|
879
|
+
* <p>Token usage counts.</p>
|
|
880
|
+
* @public
|
|
881
|
+
*/
|
|
882
|
+
usage: HarnessTokenUsage | undefined;
|
|
883
|
+
/**
|
|
884
|
+
* <p>Latency metrics.</p>
|
|
885
|
+
* @public
|
|
886
|
+
*/
|
|
887
|
+
metrics: HarnessStreamMetrics | undefined;
|
|
888
|
+
}
|
|
889
|
+
/**
|
|
890
|
+
* <p>The streaming events returned by a harness invocation.</p>
|
|
891
|
+
* @public
|
|
892
|
+
*/
|
|
893
|
+
export type InvokeHarnessStreamOutput = InvokeHarnessStreamOutput.ContentBlockDeltaMember | InvokeHarnessStreamOutput.ContentBlockStartMember | InvokeHarnessStreamOutput.ContentBlockStopMember | InvokeHarnessStreamOutput.HookEventMember | InvokeHarnessStreamOutput.InternalServerExceptionMember | InvokeHarnessStreamOutput.MessageStartMember | InvokeHarnessStreamOutput.MessageStopMember | InvokeHarnessStreamOutput.MetadataMember | InvokeHarnessStreamOutput.RuntimeClientErrorMember | InvokeHarnessStreamOutput.ValidationExceptionMember | InvokeHarnessStreamOutput.$UnknownMember;
|
|
894
|
+
/**
|
|
895
|
+
* @public
|
|
896
|
+
*/
|
|
897
|
+
export declare namespace InvokeHarnessStreamOutput {
|
|
898
|
+
/**
|
|
899
|
+
* <p>Indicates the start of a new message from the agent.</p>
|
|
900
|
+
* @public
|
|
901
|
+
*/
|
|
902
|
+
interface MessageStartMember {
|
|
903
|
+
messageStart: HarnessMessageStartEvent;
|
|
904
|
+
contentBlockStart?: never;
|
|
905
|
+
contentBlockDelta?: never;
|
|
906
|
+
contentBlockStop?: never;
|
|
907
|
+
messageStop?: never;
|
|
908
|
+
metadata?: never;
|
|
909
|
+
internalServerException?: never;
|
|
910
|
+
validationException?: never;
|
|
911
|
+
runtimeClientError?: never;
|
|
912
|
+
hookEvent?: never;
|
|
913
|
+
$unknown?: never;
|
|
914
|
+
}
|
|
915
|
+
/**
|
|
916
|
+
* <p>Indicates the start of a new content block.</p>
|
|
917
|
+
* @public
|
|
918
|
+
*/
|
|
919
|
+
interface ContentBlockStartMember {
|
|
920
|
+
messageStart?: never;
|
|
921
|
+
contentBlockStart: HarnessContentBlockStartEvent;
|
|
922
|
+
contentBlockDelta?: never;
|
|
923
|
+
contentBlockStop?: never;
|
|
924
|
+
messageStop?: never;
|
|
925
|
+
metadata?: never;
|
|
926
|
+
internalServerException?: never;
|
|
927
|
+
validationException?: never;
|
|
928
|
+
runtimeClientError?: never;
|
|
929
|
+
hookEvent?: never;
|
|
930
|
+
$unknown?: never;
|
|
931
|
+
}
|
|
932
|
+
/**
|
|
933
|
+
* <p>A delta update to the current content block.</p>
|
|
934
|
+
* @public
|
|
935
|
+
*/
|
|
936
|
+
interface ContentBlockDeltaMember {
|
|
937
|
+
messageStart?: never;
|
|
938
|
+
contentBlockStart?: never;
|
|
939
|
+
contentBlockDelta: HarnessContentBlockDeltaEvent;
|
|
940
|
+
contentBlockStop?: never;
|
|
941
|
+
messageStop?: never;
|
|
942
|
+
metadata?: never;
|
|
943
|
+
internalServerException?: never;
|
|
944
|
+
validationException?: never;
|
|
945
|
+
runtimeClientError?: never;
|
|
946
|
+
hookEvent?: never;
|
|
947
|
+
$unknown?: never;
|
|
948
|
+
}
|
|
949
|
+
/**
|
|
950
|
+
* <p>Indicates the end of the current content block.</p>
|
|
951
|
+
* @public
|
|
952
|
+
*/
|
|
953
|
+
interface ContentBlockStopMember {
|
|
954
|
+
messageStart?: never;
|
|
955
|
+
contentBlockStart?: never;
|
|
956
|
+
contentBlockDelta?: never;
|
|
957
|
+
contentBlockStop: HarnessContentBlockStopEvent;
|
|
958
|
+
messageStop?: never;
|
|
959
|
+
metadata?: never;
|
|
960
|
+
internalServerException?: never;
|
|
961
|
+
validationException?: never;
|
|
962
|
+
runtimeClientError?: never;
|
|
963
|
+
hookEvent?: never;
|
|
964
|
+
$unknown?: never;
|
|
965
|
+
}
|
|
966
|
+
/**
|
|
967
|
+
* <p>Indicates the end of the current message.</p>
|
|
968
|
+
* @public
|
|
969
|
+
*/
|
|
970
|
+
interface MessageStopMember {
|
|
971
|
+
messageStart?: never;
|
|
972
|
+
contentBlockStart?: never;
|
|
973
|
+
contentBlockDelta?: never;
|
|
974
|
+
contentBlockStop?: never;
|
|
975
|
+
messageStop: HarnessMessageStopEvent;
|
|
976
|
+
metadata?: never;
|
|
977
|
+
internalServerException?: never;
|
|
978
|
+
validationException?: never;
|
|
979
|
+
runtimeClientError?: never;
|
|
980
|
+
hookEvent?: never;
|
|
981
|
+
$unknown?: never;
|
|
982
|
+
}
|
|
983
|
+
/**
|
|
984
|
+
* <p>Token usage and latency metrics for the invocation.</p>
|
|
985
|
+
* @public
|
|
986
|
+
*/
|
|
987
|
+
interface MetadataMember {
|
|
988
|
+
messageStart?: never;
|
|
989
|
+
contentBlockStart?: never;
|
|
990
|
+
contentBlockDelta?: never;
|
|
991
|
+
contentBlockStop?: never;
|
|
992
|
+
messageStop?: never;
|
|
993
|
+
metadata: HarnessMetadataEvent;
|
|
994
|
+
internalServerException?: never;
|
|
995
|
+
validationException?: never;
|
|
996
|
+
runtimeClientError?: never;
|
|
997
|
+
hookEvent?: never;
|
|
998
|
+
$unknown?: never;
|
|
999
|
+
}
|
|
1000
|
+
/**
|
|
1001
|
+
* <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>
|
|
1002
|
+
* @public
|
|
1003
|
+
*/
|
|
1004
|
+
interface InternalServerExceptionMember {
|
|
1005
|
+
messageStart?: never;
|
|
1006
|
+
contentBlockStart?: never;
|
|
1007
|
+
contentBlockDelta?: never;
|
|
1008
|
+
contentBlockStop?: never;
|
|
1009
|
+
messageStop?: never;
|
|
1010
|
+
metadata?: never;
|
|
1011
|
+
internalServerException: InternalServerException;
|
|
1012
|
+
validationException?: never;
|
|
1013
|
+
runtimeClientError?: never;
|
|
1014
|
+
hookEvent?: never;
|
|
1015
|
+
$unknown?: never;
|
|
1016
|
+
}
|
|
1017
|
+
/**
|
|
1018
|
+
* <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>
|
|
1019
|
+
* @public
|
|
1020
|
+
*/
|
|
1021
|
+
interface ValidationExceptionMember {
|
|
1022
|
+
messageStart?: never;
|
|
1023
|
+
contentBlockStart?: never;
|
|
1024
|
+
contentBlockDelta?: never;
|
|
1025
|
+
contentBlockStop?: never;
|
|
1026
|
+
messageStop?: never;
|
|
1027
|
+
metadata?: never;
|
|
1028
|
+
internalServerException?: never;
|
|
1029
|
+
validationException: ValidationException;
|
|
1030
|
+
runtimeClientError?: never;
|
|
1031
|
+
hookEvent?: never;
|
|
1032
|
+
$unknown?: never;
|
|
1033
|
+
}
|
|
1034
|
+
/**
|
|
1035
|
+
* <p>An error returned by the runtime container during agent execution.</p>
|
|
1036
|
+
* @public
|
|
1037
|
+
*/
|
|
1038
|
+
interface RuntimeClientErrorMember {
|
|
1039
|
+
messageStart?: never;
|
|
1040
|
+
contentBlockStart?: never;
|
|
1041
|
+
contentBlockDelta?: never;
|
|
1042
|
+
contentBlockStop?: never;
|
|
1043
|
+
messageStop?: never;
|
|
1044
|
+
metadata?: never;
|
|
1045
|
+
internalServerException?: never;
|
|
1046
|
+
validationException?: never;
|
|
1047
|
+
runtimeClientError: RuntimeClientError;
|
|
1048
|
+
hookEvent?: never;
|
|
1049
|
+
$unknown?: never;
|
|
1050
|
+
}
|
|
1051
|
+
/**
|
|
1052
|
+
* <p>A lifecycle hook event emitted when a configured hook runs.</p>
|
|
1053
|
+
* @public
|
|
1054
|
+
*/
|
|
1055
|
+
interface HookEventMember {
|
|
1056
|
+
messageStart?: never;
|
|
1057
|
+
contentBlockStart?: never;
|
|
1058
|
+
contentBlockDelta?: never;
|
|
1059
|
+
contentBlockStop?: never;
|
|
1060
|
+
messageStop?: never;
|
|
1061
|
+
metadata?: never;
|
|
1062
|
+
internalServerException?: never;
|
|
1063
|
+
validationException?: never;
|
|
1064
|
+
runtimeClientError?: never;
|
|
1065
|
+
hookEvent: HarnessHookEvent;
|
|
1066
|
+
$unknown?: never;
|
|
1067
|
+
}
|
|
1068
|
+
/**
|
|
1069
|
+
* @public
|
|
1070
|
+
*/
|
|
1071
|
+
interface $UnknownMember {
|
|
1072
|
+
messageStart?: never;
|
|
1073
|
+
contentBlockStart?: never;
|
|
1074
|
+
contentBlockDelta?: never;
|
|
1075
|
+
contentBlockStop?: never;
|
|
1076
|
+
messageStop?: never;
|
|
1077
|
+
metadata?: never;
|
|
1078
|
+
internalServerException?: never;
|
|
1079
|
+
validationException?: never;
|
|
1080
|
+
runtimeClientError?: never;
|
|
1081
|
+
hookEvent?: never;
|
|
1082
|
+
$unknown: [string, any];
|
|
1083
|
+
}
|
|
1084
|
+
/**
|
|
1085
|
+
* @deprecated unused in schema-serde mode.
|
|
1086
|
+
*
|
|
1087
|
+
*/
|
|
1088
|
+
interface Visitor<T> {
|
|
1089
|
+
messageStart: (value: HarnessMessageStartEvent) => T;
|
|
1090
|
+
contentBlockStart: (value: HarnessContentBlockStartEvent) => T;
|
|
1091
|
+
contentBlockDelta: (value: HarnessContentBlockDeltaEvent) => T;
|
|
1092
|
+
contentBlockStop: (value: HarnessContentBlockStopEvent) => T;
|
|
1093
|
+
messageStop: (value: HarnessMessageStopEvent) => T;
|
|
1094
|
+
metadata: (value: HarnessMetadataEvent) => T;
|
|
1095
|
+
internalServerException: (value: InternalServerException) => T;
|
|
1096
|
+
validationException: (value: ValidationException) => T;
|
|
1097
|
+
runtimeClientError: (value: RuntimeClientError) => T;
|
|
1098
|
+
hookEvent: (value: HarnessHookEvent) => T;
|
|
1099
|
+
_: (name: string, value: any) => T;
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
/**
|
|
1103
|
+
* @public
|
|
1104
|
+
*/
|
|
1105
|
+
export interface InvokeHarnessResponse {
|
|
1106
|
+
/**
|
|
1107
|
+
* <p>The streaming output from the harness invocation.</p>
|
|
1108
|
+
* @public
|
|
1109
|
+
*/
|
|
1110
|
+
stream: AsyncIterable<InvokeHarnessStreamOutput> | undefined;
|
|
1111
|
+
}
|
|
1112
|
+
/**
|
|
1113
|
+
* <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>
|
|
1114
|
+
* @public
|
|
1115
|
+
*/
|
|
1116
|
+
export interface DomainFilter {
|
|
1117
|
+
/**
|
|
1118
|
+
* <p>The domains to return results from. Results from other domains are not returned.</p>
|
|
1119
|
+
* @public
|
|
1120
|
+
*/
|
|
1121
|
+
include?: string[] | undefined;
|
|
1122
|
+
/**
|
|
1123
|
+
* <p>The domains to never return results from.</p>
|
|
1124
|
+
* @public
|
|
1125
|
+
*/
|
|
1126
|
+
exclude?: string[] | undefined;
|
|
1127
|
+
}
|
|
1128
|
+
/**
|
|
1129
|
+
* <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>
|
|
1130
|
+
* @public
|
|
1131
|
+
*/
|
|
1132
|
+
export interface PublishedDateFilter {
|
|
1133
|
+
/**
|
|
1134
|
+
* <p>The earliest publication time of the results, inclusive.</p>
|
|
1135
|
+
* @public
|
|
1136
|
+
*/
|
|
1137
|
+
publishedAfter?: Date | undefined;
|
|
1138
|
+
/**
|
|
1139
|
+
* <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>
|
|
1140
|
+
* @public
|
|
1141
|
+
*/
|
|
1142
|
+
publishedBefore?: Date | undefined;
|
|
1143
|
+
}
|
|
1144
|
+
/**
|
|
1145
|
+
* <p>The filters to apply to a web search.</p>
|
|
1146
|
+
* @public
|
|
1147
|
+
*/
|
|
1148
|
+
export interface WebSearchFilters {
|
|
1149
|
+
/**
|
|
1150
|
+
* <p>The domains to include in or exclude from the results.</p>
|
|
1151
|
+
* @public
|
|
1152
|
+
*/
|
|
1153
|
+
domainFilter?: DomainFilter | undefined;
|
|
1154
|
+
/**
|
|
1155
|
+
* <p>The publication time range of the results.</p>
|
|
1156
|
+
* @public
|
|
1157
|
+
*/
|
|
1158
|
+
publishedDateFilter?: PublishedDateFilter | undefined;
|
|
1159
|
+
}
|
|
1160
|
+
/**
|
|
1161
|
+
* <p>Request for the <code>InvokeWebSearch</code> operation.</p>
|
|
1162
|
+
* @public
|
|
1163
|
+
*/
|
|
1164
|
+
export interface InvokeWebSearchInput {
|
|
1165
|
+
/**
|
|
1166
|
+
* <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>
|
|
1167
|
+
* @public
|
|
1168
|
+
*/
|
|
1169
|
+
webSearchId: string | undefined;
|
|
1170
|
+
/**
|
|
1171
|
+
* <p>The text to search for.</p>
|
|
1172
|
+
* @public
|
|
1173
|
+
*/
|
|
1174
|
+
searchQuery: string | undefined;
|
|
1175
|
+
/**
|
|
1176
|
+
* <p>The maximum number of results to return. Defaults to 25.</p>
|
|
1177
|
+
* @public
|
|
1178
|
+
*/
|
|
1179
|
+
maxResults?: number | undefined;
|
|
1180
|
+
/**
|
|
1181
|
+
* <p>The filters to apply to the search results.</p>
|
|
1182
|
+
* @public
|
|
1183
|
+
*/
|
|
1184
|
+
filters?: WebSearchFilters | undefined;
|
|
1185
|
+
}
|
|
1186
|
+
/**
|
|
1187
|
+
* <p>A web search result.</p>
|
|
1188
|
+
* @public
|
|
1189
|
+
*/
|
|
1190
|
+
export interface WebSearchResult {
|
|
1191
|
+
/**
|
|
1192
|
+
* <p>The title of the page.</p>
|
|
1193
|
+
* @public
|
|
1194
|
+
*/
|
|
1195
|
+
title?: string | undefined;
|
|
1196
|
+
/**
|
|
1197
|
+
* <p>The URL of the page.</p>
|
|
1198
|
+
* @public
|
|
1199
|
+
*/
|
|
1200
|
+
url?: string | undefined;
|
|
1201
|
+
/**
|
|
1202
|
+
* <p>A text extract from the page.</p>
|
|
1203
|
+
* @public
|
|
1204
|
+
*/
|
|
1205
|
+
text: string | undefined;
|
|
1206
|
+
/**
|
|
1207
|
+
* <p>The time the page was published. This field is absent when the publication time is not known.</p>
|
|
1208
|
+
* @public
|
|
1209
|
+
*/
|
|
1210
|
+
publishedAt?: Date | undefined;
|
|
1211
|
+
}
|
|
1212
|
+
/**
|
|
1213
|
+
* <p>Response for the <code>InvokeWebSearch</code> operation.</p>
|
|
1214
|
+
* @public
|
|
1215
|
+
*/
|
|
1216
|
+
export interface InvokeWebSearchOutput {
|
|
1217
|
+
/**
|
|
1218
|
+
* <p>The search results, in ranked order.</p>
|
|
1219
|
+
* @public
|
|
1220
|
+
*/
|
|
1221
|
+
results: WebSearchResult[] | undefined;
|
|
1222
|
+
}
|
|
1223
|
+
/**
|
|
1224
|
+
* <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>
|
|
1225
|
+
* @public
|
|
1226
|
+
*/
|
|
1227
|
+
export type RecordExpirySpecification = RecordExpirySpecification.ActionMember | RecordExpirySpecification.RecordExpiryDurationDaysMember | RecordExpirySpecification.$UnknownMember;
|
|
1228
|
+
/**
|
|
1229
|
+
* @public
|
|
1230
|
+
*/
|
|
1231
|
+
export declare namespace RecordExpirySpecification {
|
|
1232
|
+
/**
|
|
1233
|
+
* <p>The duration, in days, after which the records in this request expire. The minimum is 31 days.</p>
|
|
1234
|
+
* @public
|
|
1235
|
+
*/
|
|
1236
|
+
interface RecordExpiryDurationDaysMember {
|
|
1237
|
+
recordExpiryDurationDays: number;
|
|
1238
|
+
action?: never;
|
|
1239
|
+
$unknown?: never;
|
|
1240
|
+
}
|
|
1241
|
+
/**
|
|
1242
|
+
* <p>The action to apply to the existing record expiry configuration. Set to <code>REMOVE</code> to remove a previously configured expiry so that the records no longer expire. This value does not apply when creating records.</p>
|
|
1243
|
+
* @public
|
|
1244
|
+
*/
|
|
1245
|
+
interface ActionMember {
|
|
1246
|
+
recordExpiryDurationDays?: never;
|
|
1247
|
+
action: RecordExpiryAction;
|
|
1248
|
+
$unknown?: never;
|
|
1249
|
+
}
|
|
1250
|
+
/**
|
|
1251
|
+
* @public
|
|
1252
|
+
*/
|
|
1253
|
+
interface $UnknownMember {
|
|
1254
|
+
recordExpiryDurationDays?: never;
|
|
1255
|
+
action?: never;
|
|
1256
|
+
$unknown: [string, any];
|
|
1257
|
+
}
|
|
1258
|
+
/**
|
|
1259
|
+
* @deprecated unused in schema-serde mode.
|
|
1260
|
+
*
|
|
1261
|
+
*/
|
|
1262
|
+
interface Visitor<T> {
|
|
1263
|
+
recordExpiryDurationDays: (value: number) => T;
|
|
1264
|
+
action: (value: RecordExpiryAction) => T;
|
|
1265
|
+
_: (name: string, value: any) => T;
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
/**
|
|
1269
|
+
* <p>Contains the content of a memory record.</p>
|
|
1270
|
+
* @public
|
|
1271
|
+
*/
|
|
1272
|
+
export type MemoryContent = MemoryContent.TextMember | MemoryContent.$UnknownMember;
|
|
1273
|
+
/**
|
|
1274
|
+
* @public
|
|
1275
|
+
*/
|
|
1276
|
+
export declare namespace MemoryContent {
|
|
1277
|
+
/**
|
|
1278
|
+
* <p>The text content of the memory record.</p>
|
|
1279
|
+
* @public
|
|
1280
|
+
*/
|
|
1281
|
+
interface TextMember {
|
|
1282
|
+
text: string;
|
|
1283
|
+
$unknown?: never;
|
|
1284
|
+
}
|
|
1285
|
+
/**
|
|
1286
|
+
* @public
|
|
1287
|
+
*/
|
|
1288
|
+
interface $UnknownMember {
|
|
1289
|
+
text?: never;
|
|
1290
|
+
$unknown: [string, any];
|
|
1291
|
+
}
|
|
1292
|
+
/**
|
|
1293
|
+
* @deprecated unused in schema-serde mode.
|
|
1294
|
+
*
|
|
1295
|
+
*/
|
|
1296
|
+
interface Visitor<T> {
|
|
1297
|
+
text: (value: string) => T;
|
|
1298
|
+
_: (name: string, value: any) => T;
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
/**
|
|
1302
|
+
* <p>The value of a memory record metadata entry.</p>
|
|
1303
|
+
* @public
|
|
1304
|
+
*/
|
|
1305
|
+
export type MemoryRecordMetadataValue = MemoryRecordMetadataValue.DateTimeValueMember | MemoryRecordMetadataValue.NumberValueMember | MemoryRecordMetadataValue.StringListValueMember | MemoryRecordMetadataValue.StringValueMember | MemoryRecordMetadataValue.$UnknownMember;
|
|
1306
|
+
/**
|
|
1307
|
+
* @public
|
|
1308
|
+
*/
|
|
1309
|
+
export declare namespace MemoryRecordMetadataValue {
|
|
1310
|
+
/**
|
|
1311
|
+
* <p>A string value.</p>
|
|
1312
|
+
* @public
|
|
1313
|
+
*/
|
|
1314
|
+
interface StringValueMember {
|
|
1315
|
+
stringValue: string;
|
|
1316
|
+
stringListValue?: never;
|
|
1317
|
+
numberValue?: never;
|
|
1318
|
+
dateTimeValue?: never;
|
|
1319
|
+
$unknown?: never;
|
|
1320
|
+
}
|
|
1321
|
+
/**
|
|
1322
|
+
* <p>A list of string values.</p>
|
|
1323
|
+
* @public
|
|
1324
|
+
*/
|
|
1325
|
+
interface StringListValueMember {
|
|
1326
|
+
stringValue?: never;
|
|
1327
|
+
stringListValue: string[];
|
|
1328
|
+
numberValue?: never;
|
|
1329
|
+
dateTimeValue?: never;
|
|
1330
|
+
$unknown?: never;
|
|
1331
|
+
}
|
|
1332
|
+
/**
|
|
1333
|
+
* <p>A numeric value.</p>
|
|
1334
|
+
* @public
|
|
1335
|
+
*/
|
|
1336
|
+
interface NumberValueMember {
|
|
1337
|
+
stringValue?: never;
|
|
1338
|
+
stringListValue?: never;
|
|
1339
|
+
numberValue: number;
|
|
1340
|
+
dateTimeValue?: never;
|
|
1341
|
+
$unknown?: never;
|
|
1342
|
+
}
|
|
1343
|
+
/**
|
|
1344
|
+
* <p>A timestamp value in ISO 8601 UTC format.</p>
|
|
1345
|
+
* @public
|
|
1346
|
+
*/
|
|
1347
|
+
interface DateTimeValueMember {
|
|
1348
|
+
stringValue?: never;
|
|
1349
|
+
stringListValue?: never;
|
|
1350
|
+
numberValue?: never;
|
|
1351
|
+
dateTimeValue: Date;
|
|
1352
|
+
$unknown?: never;
|
|
1353
|
+
}
|
|
1354
|
+
/**
|
|
1355
|
+
* @public
|
|
1356
|
+
*/
|
|
1357
|
+
interface $UnknownMember {
|
|
1358
|
+
stringValue?: never;
|
|
1359
|
+
stringListValue?: never;
|
|
1360
|
+
numberValue?: never;
|
|
1361
|
+
dateTimeValue?: never;
|
|
1362
|
+
$unknown: [string, any];
|
|
1363
|
+
}
|
|
1364
|
+
/**
|
|
1365
|
+
* @deprecated unused in schema-serde mode.
|
|
1366
|
+
*
|
|
1367
|
+
*/
|
|
1368
|
+
interface Visitor<T> {
|
|
1369
|
+
stringValue: (value: string) => T;
|
|
1370
|
+
stringListValue: (value: string[]) => T;
|
|
1371
|
+
numberValue: (value: number) => T;
|
|
1372
|
+
dateTimeValue: (value: Date) => T;
|
|
1373
|
+
_: (name: string, value: any) => T;
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
/**
|
|
1377
|
+
* <p>Input structure to create a new memory record.</p>
|
|
1378
|
+
* @public
|
|
1379
|
+
*/
|
|
1380
|
+
export interface MemoryRecordCreateInput {
|
|
1381
|
+
/**
|
|
1382
|
+
* <p>A client-provided identifier for tracking this specific record creation request.</p>
|
|
1383
|
+
* @public
|
|
1384
|
+
*/
|
|
1385
|
+
requestIdentifier: string | undefined;
|
|
1386
|
+
/**
|
|
1387
|
+
* <p>A list of namespace identifiers that categorize or group the memory record.</p>
|
|
1388
|
+
* @public
|
|
1389
|
+
*/
|
|
1390
|
+
namespaces: string[] | undefined;
|
|
1391
|
+
/**
|
|
1392
|
+
* <p>The content to be stored within the memory record.</p>
|
|
1393
|
+
* @public
|
|
1394
|
+
*/
|
|
1395
|
+
content: MemoryContent | undefined;
|
|
1396
|
+
/**
|
|
1397
|
+
* <p>Time at which the memory record was created.</p>
|
|
1398
|
+
* @public
|
|
1399
|
+
*/
|
|
1400
|
+
timestamp: Date | undefined;
|
|
1401
|
+
/**
|
|
1402
|
+
* <p>The ID of the memory strategy that defines how this memory record is grouped.</p>
|
|
1403
|
+
* @public
|
|
1404
|
+
*/
|
|
1405
|
+
memoryStrategyId?: string | undefined;
|
|
1406
|
+
/**
|
|
1407
|
+
* <p>Metadata key-value pairs to be stored with the memory record.</p>
|
|
1408
|
+
* @public
|
|
1409
|
+
*/
|
|
1410
|
+
metadata?: Record<string, MemoryRecordMetadataValue> | undefined;
|
|
1411
|
+
}
|
|
1412
|
+
/**
|
|
1413
|
+
* @public
|
|
1414
|
+
*/
|
|
1415
|
+
export interface BatchCreateMemoryRecordsInput {
|
|
1416
|
+
/**
|
|
1417
|
+
* <p>The unique ID of the memory resource where records will be created.</p>
|
|
1418
|
+
* @public
|
|
1419
|
+
*/
|
|
1420
|
+
memoryId: string | undefined;
|
|
1421
|
+
/**
|
|
1422
|
+
* <p>A list of memory record creation inputs to be processed in the batch operation.</p>
|
|
1423
|
+
* @public
|
|
1424
|
+
*/
|
|
1425
|
+
records: MemoryRecordCreateInput[] | undefined;
|
|
1426
|
+
/**
|
|
1427
|
+
* <p>A unique, case-sensitive identifier to ensure idempotent processing of the batch request.</p>
|
|
1428
|
+
* @public
|
|
1429
|
+
*/
|
|
1430
|
+
clientToken?: string | undefined;
|
|
1431
|
+
/**
|
|
1432
|
+
* <p>The record expiry (long-term memory time-to-live) applied to every record created by this request. Set <code>recordExpiryDurationDays</code> to the number of days after which the records expire. Only the expiry provided here is applied; the records' strategy association has no effect on their expiry. If you do not provide this value, the records do not expire. The <code>REMOVE</code> action does not apply when creating records.</p>
|
|
1433
|
+
* @public
|
|
1434
|
+
*/
|
|
1435
|
+
recordExpirySpecification?: RecordExpirySpecification | undefined;
|
|
1436
|
+
}
|
|
1437
|
+
/**
|
|
1438
|
+
* <p>Output information returned after processing a memory record operation.</p>
|
|
1439
|
+
* @public
|
|
1440
|
+
*/
|
|
1441
|
+
export interface MemoryRecordOutput {
|
|
1442
|
+
/**
|
|
1443
|
+
* <p>The unique ID associated to the memory record.</p>
|
|
1444
|
+
* @public
|
|
1445
|
+
*/
|
|
1446
|
+
memoryRecordId: string | undefined;
|
|
1447
|
+
/**
|
|
1448
|
+
* <p>The status of the memory record operation (e.g., SUCCEEDED, FAILED).</p>
|
|
1449
|
+
* @public
|
|
1450
|
+
*/
|
|
1451
|
+
status: MemoryRecordStatus | undefined;
|
|
1452
|
+
/**
|
|
1453
|
+
* <p>The client-provided identifier that was used to track this record operation.</p>
|
|
1454
|
+
* @public
|
|
1455
|
+
*/
|
|
1456
|
+
requestIdentifier?: string | undefined;
|
|
1457
|
+
/**
|
|
1458
|
+
* <p>The error code returned when the memory record operation fails.</p>
|
|
1459
|
+
* @public
|
|
1460
|
+
*/
|
|
1461
|
+
errorCode?: number | undefined;
|
|
1462
|
+
/**
|
|
1463
|
+
* <p>A human-readable error message describing why the memory record operation failed.</p>
|
|
1464
|
+
* @public
|
|
1465
|
+
*/
|
|
1466
|
+
errorMessage?: string | undefined;
|
|
1467
|
+
}
|
|
1468
|
+
/**
|
|
1469
|
+
* @public
|
|
1470
|
+
*/
|
|
1471
|
+
export interface BatchCreateMemoryRecordsOutput {
|
|
1472
|
+
/**
|
|
1473
|
+
* <p>A list of memory records that were successfully created during the batch operation.</p>
|
|
1474
|
+
* @public
|
|
1475
|
+
*/
|
|
1476
|
+
successfulRecords: MemoryRecordOutput[] | undefined;
|
|
1477
|
+
/**
|
|
1478
|
+
* <p>A list of memory records that failed to be created, including error details for each failure.</p>
|
|
1479
|
+
* @public
|
|
1480
|
+
*/
|
|
1481
|
+
failedRecords: MemoryRecordOutput[] | undefined;
|
|
1482
|
+
}
|
|
1483
|
+
/**
|
|
1484
|
+
* <p>Input structure to delete an existing memory record.</p>
|
|
1485
|
+
* @public
|
|
1486
|
+
*/
|
|
1487
|
+
export interface MemoryRecordDeleteInput {
|
|
1488
|
+
/**
|
|
1489
|
+
* <p>The unique ID of the memory record to be deleted.</p>
|
|
1490
|
+
* @public
|
|
1491
|
+
*/
|
|
1492
|
+
memoryRecordId: string | undefined;
|
|
1493
|
+
/**
|
|
1494
|
+
* <p>The namespace of the memory record being deleted. This value is used for IAM condition key authorization.</p>
|
|
1495
|
+
* @public
|
|
1496
|
+
*/
|
|
1497
|
+
namespace?: string | undefined;
|
|
1498
|
+
}
|
|
1499
|
+
/**
|
|
1500
|
+
* @public
|
|
1501
|
+
*/
|
|
1502
|
+
export interface BatchDeleteMemoryRecordsInput {
|
|
1503
|
+
/**
|
|
1504
|
+
* <p>The unique ID of the memory resource where records will be deleted.</p>
|
|
1505
|
+
* @public
|
|
1506
|
+
*/
|
|
1507
|
+
memoryId: string | undefined;
|
|
1508
|
+
/**
|
|
1509
|
+
* <p>A list of memory record deletion inputs to be processed in the batch operation.</p>
|
|
1510
|
+
* @public
|
|
1511
|
+
*/
|
|
1512
|
+
records: MemoryRecordDeleteInput[] | undefined;
|
|
1513
|
+
}
|
|
1514
|
+
/**
|
|
1515
|
+
* @public
|
|
1516
|
+
*/
|
|
1517
|
+
export interface BatchDeleteMemoryRecordsOutput {
|
|
1518
|
+
/**
|
|
1519
|
+
* <p>A list of memory records that were successfully deleted during the batch operation.</p>
|
|
1520
|
+
* @public
|
|
1521
|
+
*/
|
|
1522
|
+
successfulRecords: MemoryRecordOutput[] | undefined;
|
|
1523
|
+
/**
|
|
1524
|
+
* <p>A list of memory records that failed to be deleted, including error details for each failure.</p>
|
|
1525
|
+
* @public
|
|
1526
|
+
*/
|
|
1527
|
+
failedRecords: MemoryRecordOutput[] | undefined;
|
|
1528
|
+
}
|
|
1529
|
+
/**
|
|
1530
|
+
* <p>Input structure to update an existing memory record.</p>
|
|
1531
|
+
* @public
|
|
1532
|
+
*/
|
|
1533
|
+
export interface MemoryRecordUpdateInput {
|
|
1534
|
+
/**
|
|
1535
|
+
* <p>The unique ID of the memory record to be updated.</p>
|
|
1536
|
+
* @public
|
|
1537
|
+
*/
|
|
1538
|
+
memoryRecordId: string | undefined;
|
|
1539
|
+
/**
|
|
1540
|
+
* <p>Time at which the memory record was updated</p>
|
|
1541
|
+
* @public
|
|
1542
|
+
*/
|
|
1543
|
+
timestamp: Date | undefined;
|
|
1544
|
+
/**
|
|
1545
|
+
* <p>The content to be stored within the memory record.</p>
|
|
1546
|
+
* @public
|
|
1547
|
+
*/
|
|
1548
|
+
content?: MemoryContent | undefined;
|
|
1549
|
+
/**
|
|
1550
|
+
* <p>The updated list of namespace identifiers for categorizing the memory record.</p>
|
|
1551
|
+
* @public
|
|
1552
|
+
*/
|
|
1553
|
+
namespaces?: string[] | undefined;
|
|
1554
|
+
/**
|
|
1555
|
+
* <p>The namespaces of the source memory record being updated. This value is used for IAM condition key authorization.</p>
|
|
1556
|
+
* @public
|
|
1557
|
+
*/
|
|
1558
|
+
sourceNamespaces?: string[] | undefined;
|
|
1559
|
+
/**
|
|
1560
|
+
* <p>The updated ID of the memory strategy that defines how this memory record is grouped.</p>
|
|
1561
|
+
* @public
|
|
1562
|
+
*/
|
|
1563
|
+
memoryStrategyId?: string | undefined;
|
|
1564
|
+
/**
|
|
1565
|
+
* <p>Metadata key-value pairs to be stored with the memory record.</p>
|
|
1566
|
+
* @public
|
|
1567
|
+
*/
|
|
1568
|
+
metadata?: Record<string, MemoryRecordMetadataValue> | undefined;
|
|
1569
|
+
}
|
|
1570
|
+
/**
|
|
1571
|
+
* @public
|
|
1572
|
+
*/
|
|
1573
|
+
export interface BatchUpdateMemoryRecordsInput {
|
|
1574
|
+
/**
|
|
1575
|
+
* <p>The unique ID of the memory resource where records will be updated.</p>
|
|
1576
|
+
* @public
|
|
1577
|
+
*/
|
|
1578
|
+
memoryId: string | undefined;
|
|
1579
|
+
/**
|
|
1580
|
+
* <p>A list of memory record update inputs to be processed in the batch operation.</p>
|
|
1581
|
+
* @public
|
|
1582
|
+
*/
|
|
1583
|
+
records: MemoryRecordUpdateInput[] | undefined;
|
|
1584
|
+
/**
|
|
1585
|
+
* <p>The record expiry (long-term memory time-to-live) applied to every record updated by this request. Set <code>recordExpiryDurationDays</code> to configure or overwrite the number of days after which the records expire, or set <code>action</code> to <code>REMOVE</code> to clear a previously configured expiry so that the records no longer expire.</p> <p>When you do not provide this value, the service determines each record's expiry from its current state:</p> <ul> <li> <p>If the record already has an expiry configured, the service resets and reapplies the expiry based on the last applied <code>recordExpiryDurationDays</code>.</p> </li> <li> <p>If the record does not have an expiry configured, no expiry is applied and the record remains non-expiring. This is the outcome regardless of whether the record's strategy configures an expiry.</p> </li> </ul> <p>Providing an explicit <code>recordExpiryDurationDays</code> always takes precedence: it overwrites an existing expiry, or sets one on a record that previously had none.</p>
|
|
1586
|
+
* @public
|
|
1587
|
+
*/
|
|
1588
|
+
recordExpirySpecification?: RecordExpirySpecification | undefined;
|
|
1589
|
+
}
|
|
4
1590
|
/**
|
|
5
1591
|
* @public
|
|
6
1592
|
*/
|