aws-sdk-bedrockagentcore 1.70.0 → 1.71.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockagentcore/client.rb +609 -1
- data/lib/aws-sdk-bedrockagentcore/client_api.rb +531 -0
- data/lib/aws-sdk-bedrockagentcore/types.rb +1525 -7
- data/lib/aws-sdk-bedrockagentcore.rb +1 -1
- data/sig/client.rbs +198 -0
- data/sig/params.rbs +12 -0
- data/sig/types.rbs +423 -0
- metadata +1 -1
|
@@ -218,6 +218,196 @@ module Aws::BedrockAgentCore
|
|
|
218
218
|
include Aws::Structure
|
|
219
219
|
end
|
|
220
220
|
|
|
221
|
+
# The configuration for invoking an agent hosted on AgentCore Runtime.
|
|
222
|
+
# Each scenario runs in its own runtime session, and the turns of a
|
|
223
|
+
# scenario are sent in order within that session. The batch evaluation
|
|
224
|
+
# uses your credentials to read the agent runtime endpoint and the
|
|
225
|
+
# dataset, invoke the agent runtime, and read the resulting traces. You
|
|
226
|
+
# must have permission for these actions.
|
|
227
|
+
#
|
|
228
|
+
# @!attribute [rw] agent_runtime_endpoint_arn
|
|
229
|
+
# The Amazon Resource Name (ARN) of the agent runtime endpoint to
|
|
230
|
+
# invoke. Specify an endpoint in the same account and Region as the
|
|
231
|
+
# batch evaluation. The service requires the endpoint and its agent
|
|
232
|
+
# runtime version to be ready. The agent runtime must use the HTTP
|
|
233
|
+
# protocol and IAM inbound authorization.
|
|
234
|
+
# @return [String]
|
|
235
|
+
#
|
|
236
|
+
# @!attribute [rw] request_template
|
|
237
|
+
# A JSON object template for the request payload sent to the agent for
|
|
238
|
+
# each turn. The template must contain the placeholder
|
|
239
|
+
# `{{turn.input}}` exactly once, as the complete value of a JSON
|
|
240
|
+
# string and not as a field name. The service replaces the placeholder
|
|
241
|
+
# with the input of the turn. If the input isn't a string, the
|
|
242
|
+
# service inserts it as a JSON value. If you don't specify a
|
|
243
|
+
# template, the service uses `{"prompt": "{{turn.input}}"}`.
|
|
244
|
+
# @return [String]
|
|
245
|
+
#
|
|
246
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/AgentCoreRuntimeInvocation AWS API Documentation
|
|
247
|
+
#
|
|
248
|
+
class AgentCoreRuntimeInvocation < Struct.new(
|
|
249
|
+
:agent_runtime_endpoint_arn,
|
|
250
|
+
:request_template)
|
|
251
|
+
SENSITIVE = []
|
|
252
|
+
include Aws::Structure
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# The details of the agent hosted on AgentCore Runtime that a batch
|
|
256
|
+
# evaluation invoked.
|
|
257
|
+
#
|
|
258
|
+
# @!attribute [rw] agent_runtime_endpoint_arn
|
|
259
|
+
# The Amazon Resource Name (ARN) of the agent runtime endpoint that
|
|
260
|
+
# the batch evaluation invoked.
|
|
261
|
+
# @return [String]
|
|
262
|
+
#
|
|
263
|
+
# @!attribute [rw] agent_runtime_version
|
|
264
|
+
# The version of the agent runtime that the endpoint pointed to when
|
|
265
|
+
# the batch evaluation started. If you update the endpoint after the
|
|
266
|
+
# batch evaluation starts, each later turn uses the version that the
|
|
267
|
+
# endpoint points to when the turn runs.
|
|
268
|
+
# @return [String]
|
|
269
|
+
#
|
|
270
|
+
# @!attribute [rw] request_template
|
|
271
|
+
# The request payload template that the batch evaluation used for each
|
|
272
|
+
# turn. If the request didn't specify a template, this is the default
|
|
273
|
+
# template.
|
|
274
|
+
# @return [String]
|
|
275
|
+
#
|
|
276
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/AgentCoreRuntimeInvocationDetails AWS API Documentation
|
|
277
|
+
#
|
|
278
|
+
class AgentCoreRuntimeInvocationDetails < Struct.new(
|
|
279
|
+
:agent_runtime_endpoint_arn,
|
|
280
|
+
:agent_runtime_version,
|
|
281
|
+
:request_template)
|
|
282
|
+
SENSITIVE = []
|
|
283
|
+
include Aws::Structure
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
# Contains summary information about an Amazon Bedrock AgentCore Agent
|
|
287
|
+
# Insight, including its label, description, and creation time. This
|
|
288
|
+
# structure is returned by `ListAgentInsights`; use `GetAgentInsight` to
|
|
289
|
+
# retrieve the sample sessions and root causes for a specific insight.
|
|
290
|
+
#
|
|
291
|
+
# @!attribute [rw] type
|
|
292
|
+
# The type of insight.
|
|
293
|
+
# @return [String]
|
|
294
|
+
#
|
|
295
|
+
# @!attribute [rw] name
|
|
296
|
+
# A generated display label for the Agent Insight. This is a
|
|
297
|
+
# human-readable summary of the detected pattern, not an identifier.
|
|
298
|
+
# @return [String]
|
|
299
|
+
#
|
|
300
|
+
# @!attribute [rw] description
|
|
301
|
+
# A generated description of the Agent Insight that explains the
|
|
302
|
+
# detected pattern and its observed behavior across sessions.
|
|
303
|
+
# @return [String]
|
|
304
|
+
#
|
|
305
|
+
# @!attribute [rw] created_at
|
|
306
|
+
# The date and time when the Agent Insight was first created.
|
|
307
|
+
# @return [Time]
|
|
308
|
+
#
|
|
309
|
+
# @!attribute [rw] affected_session_count
|
|
310
|
+
# The number of sessions affected by the insight pattern.
|
|
311
|
+
# @return [Integer]
|
|
312
|
+
#
|
|
313
|
+
# @!attribute [rw] agent_insight_id
|
|
314
|
+
# The unique identifier of the Agent Insight.
|
|
315
|
+
# @return [String]
|
|
316
|
+
#
|
|
317
|
+
# @!attribute [rw] application_name
|
|
318
|
+
# The application that the Agent Insight belongs to.
|
|
319
|
+
# @return [String]
|
|
320
|
+
#
|
|
321
|
+
# @!attribute [rw] batch_evaluation_id
|
|
322
|
+
# The Batch Evaluation that produced this Insight, when applicable.
|
|
323
|
+
# @return [String]
|
|
324
|
+
#
|
|
325
|
+
# @!attribute [rw] customer_metadata_status
|
|
326
|
+
# Specifies whether customer-encrypted metadata is available for the
|
|
327
|
+
# Agent Insight.
|
|
328
|
+
# @return [String]
|
|
329
|
+
#
|
|
330
|
+
# @!attribute [rw] updated_at
|
|
331
|
+
# The date and time when the Agent Insight was last updated.
|
|
332
|
+
# @return [Time]
|
|
333
|
+
#
|
|
334
|
+
# @!attribute [rw] archive_status
|
|
335
|
+
# Specifies whether the Agent Insight is active or archived. Valid
|
|
336
|
+
# values:
|
|
337
|
+
#
|
|
338
|
+
# * `ACTIVE` - The insight is currently active.
|
|
339
|
+
#
|
|
340
|
+
# * `ARCHIVED` - The insight has been archived.
|
|
341
|
+
# @return [String]
|
|
342
|
+
#
|
|
343
|
+
# @!attribute [rw] last_seen_at
|
|
344
|
+
# The most recent date and time when the insight pattern was observed.
|
|
345
|
+
# @return [Time]
|
|
346
|
+
#
|
|
347
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/AgentInsightSummary AWS API Documentation
|
|
348
|
+
#
|
|
349
|
+
class AgentInsightSummary < Struct.new(
|
|
350
|
+
:type,
|
|
351
|
+
:name,
|
|
352
|
+
:description,
|
|
353
|
+
:created_at,
|
|
354
|
+
:affected_session_count,
|
|
355
|
+
:agent_insight_id,
|
|
356
|
+
:application_name,
|
|
357
|
+
:batch_evaluation_id,
|
|
358
|
+
:customer_metadata_status,
|
|
359
|
+
:updated_at,
|
|
360
|
+
:archive_status,
|
|
361
|
+
:last_seen_at)
|
|
362
|
+
SENSITIVE = [:name, :description]
|
|
363
|
+
include Aws::Structure
|
|
364
|
+
end
|
|
365
|
+
|
|
366
|
+
# The agent that the batch evaluation invokes with each scenario in the
|
|
367
|
+
# dataset.
|
|
368
|
+
#
|
|
369
|
+
# @note AgentInvocationConfig is a union - when making an API calls you must set exactly one of the members.
|
|
370
|
+
#
|
|
371
|
+
# @!attribute [rw] agent_core_runtime
|
|
372
|
+
# The configuration for invoking an agent hosted on AgentCore Runtime.
|
|
373
|
+
# @return [Types::AgentCoreRuntimeInvocation]
|
|
374
|
+
#
|
|
375
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/AgentInvocationConfig AWS API Documentation
|
|
376
|
+
#
|
|
377
|
+
class AgentInvocationConfig < Struct.new(
|
|
378
|
+
:agent_core_runtime,
|
|
379
|
+
:unknown)
|
|
380
|
+
SENSITIVE = []
|
|
381
|
+
include Aws::Structure
|
|
382
|
+
include Aws::Structure::Union
|
|
383
|
+
|
|
384
|
+
class AgentCoreRuntime < AgentInvocationConfig; end
|
|
385
|
+
class Unknown < AgentInvocationConfig; end
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
# The agent that a batch evaluation invoked with each scenario in the
|
|
389
|
+
# dataset.
|
|
390
|
+
#
|
|
391
|
+
# @note AgentInvocationDetails is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of AgentInvocationDetails corresponding to the set member.
|
|
392
|
+
#
|
|
393
|
+
# @!attribute [rw] agent_core_runtime
|
|
394
|
+
# The details of the agent hosted on AgentCore Runtime that the batch
|
|
395
|
+
# evaluation invoked.
|
|
396
|
+
# @return [Types::AgentCoreRuntimeInvocationDetails]
|
|
397
|
+
#
|
|
398
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/AgentInvocationDetails AWS API Documentation
|
|
399
|
+
#
|
|
400
|
+
class AgentInvocationDetails < Struct.new(
|
|
401
|
+
:agent_core_runtime,
|
|
402
|
+
:unknown)
|
|
403
|
+
SENSITIVE = []
|
|
404
|
+
include Aws::Structure
|
|
405
|
+
include Aws::Structure::Union
|
|
406
|
+
|
|
407
|
+
class AgentCoreRuntime < AgentInvocationDetails; end
|
|
408
|
+
class Unknown < AgentInvocationDetails; end
|
|
409
|
+
end
|
|
410
|
+
|
|
221
411
|
# The agent skills descriptor configuration for a registry record.
|
|
222
412
|
#
|
|
223
413
|
# @!attribute [rw] skill_md
|
|
@@ -480,6 +670,22 @@ module Aws::BedrockAgentCore
|
|
|
480
670
|
include Aws::Structure
|
|
481
671
|
end
|
|
482
672
|
|
|
673
|
+
# A batch evaluation source for a dataset generation. The generation
|
|
674
|
+
# reads the sessions the batch evaluation evaluated, so there is no time
|
|
675
|
+
# window.
|
|
676
|
+
#
|
|
677
|
+
# @!attribute [rw] batch_evaluation_arn
|
|
678
|
+
# The Amazon Resource Name (ARN) of the batch evaluation.
|
|
679
|
+
# @return [String]
|
|
680
|
+
#
|
|
681
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/BatchEvaluationSourceConfig AWS API Documentation
|
|
682
|
+
#
|
|
683
|
+
class BatchEvaluationSourceConfig < Struct.new(
|
|
684
|
+
:batch_evaluation_arn)
|
|
685
|
+
SENSITIVE = []
|
|
686
|
+
include Aws::Structure
|
|
687
|
+
end
|
|
688
|
+
|
|
483
689
|
# Summary representation for list responses.
|
|
484
690
|
#
|
|
485
691
|
# @!attribute [rw] batch_evaluation_id
|
|
@@ -1065,6 +1271,46 @@ module Aws::BedrockAgentCore
|
|
|
1065
1271
|
include Aws::Structure
|
|
1066
1272
|
end
|
|
1067
1273
|
|
|
1274
|
+
# A CloudWatch Logs source for a dataset generation. Specify either
|
|
1275
|
+
# `logGroupNames` or `logGroupNamePrefixes`.
|
|
1276
|
+
#
|
|
1277
|
+
# @!attribute [rw] log_group_names
|
|
1278
|
+
# The names of the log groups to read, from 1 to 5. You can't specify
|
|
1279
|
+
# this together with `logGroupNamePrefixes`.
|
|
1280
|
+
# @return [Array<String>]
|
|
1281
|
+
#
|
|
1282
|
+
# @!attribute [rw] log_group_name_prefixes
|
|
1283
|
+
# Prefixes of the names of the log groups to read, from 1 to 5. You
|
|
1284
|
+
# can't specify this together with `logGroupNames`.
|
|
1285
|
+
# @return [Array<String>]
|
|
1286
|
+
#
|
|
1287
|
+
# @!attribute [rw] service_names
|
|
1288
|
+
# The service name of the agent, which matches the `service.name`
|
|
1289
|
+
# resource attribute in its traces. Specify exactly one.
|
|
1290
|
+
# @return [Array<String>]
|
|
1291
|
+
#
|
|
1292
|
+
# @!attribute [rw] start_time
|
|
1293
|
+
# The start of the time window to read sessions from. The default is 7
|
|
1294
|
+
# days before `endTime`.
|
|
1295
|
+
# @return [Time]
|
|
1296
|
+
#
|
|
1297
|
+
# @!attribute [rw] end_time
|
|
1298
|
+
# The end of the time window to read sessions from. The default is the
|
|
1299
|
+
# time the generation starts.
|
|
1300
|
+
# @return [Time]
|
|
1301
|
+
#
|
|
1302
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/CloudWatchLogsSourceConfig AWS API Documentation
|
|
1303
|
+
#
|
|
1304
|
+
class CloudWatchLogsSourceConfig < Struct.new(
|
|
1305
|
+
:log_group_names,
|
|
1306
|
+
:log_group_name_prefixes,
|
|
1307
|
+
:service_names,
|
|
1308
|
+
:start_time,
|
|
1309
|
+
:end_time)
|
|
1310
|
+
SENSITIVE = []
|
|
1311
|
+
include Aws::Structure
|
|
1312
|
+
end
|
|
1313
|
+
|
|
1068
1314
|
# Configuration for reading agent traces from CloudWatch Logs for
|
|
1069
1315
|
# recommendation analysis.
|
|
1070
1316
|
#
|
|
@@ -1983,6 +2229,27 @@ module Aws::BedrockAgentCore
|
|
|
1983
2229
|
include Aws::Structure
|
|
1984
2230
|
end
|
|
1985
2231
|
|
|
2232
|
+
# A custom data identifier, defined by a regular expression.
|
|
2233
|
+
#
|
|
2234
|
+
# @!attribute [rw] name
|
|
2235
|
+
# The name of the custom data identifier. It can't be the same as the
|
|
2236
|
+
# name of a managed data identifier.
|
|
2237
|
+
# @return [String]
|
|
2238
|
+
#
|
|
2239
|
+
# @!attribute [rw] regex
|
|
2240
|
+
# The regular expression that matches the data to mask. Lookahead and
|
|
2241
|
+
# lookbehind aren't supported.
|
|
2242
|
+
# @return [String]
|
|
2243
|
+
#
|
|
2244
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/CustomDataIdentifier AWS API Documentation
|
|
2245
|
+
#
|
|
2246
|
+
class CustomDataIdentifier < Struct.new(
|
|
2247
|
+
:name,
|
|
2248
|
+
:regex)
|
|
2249
|
+
SENSITIVE = []
|
|
2250
|
+
include Aws::Structure
|
|
2251
|
+
end
|
|
2252
|
+
|
|
1986
2253
|
# A custom descriptor configuration for a registry record.
|
|
1987
2254
|
#
|
|
1988
2255
|
# @!attribute [rw] inline_content
|
|
@@ -2026,6 +2293,143 @@ module Aws::BedrockAgentCore
|
|
|
2026
2293
|
class Unknown < DataSourceConfig; end
|
|
2027
2294
|
end
|
|
2028
2295
|
|
|
2296
|
+
# Identifies the dataset and the version of it that a batch evaluation
|
|
2297
|
+
# ran.
|
|
2298
|
+
#
|
|
2299
|
+
# @!attribute [rw] dataset_id
|
|
2300
|
+
# The unique identifier of the dataset.
|
|
2301
|
+
# @return [String]
|
|
2302
|
+
#
|
|
2303
|
+
# @!attribute [rw] dataset_version
|
|
2304
|
+
# The version of the dataset that the batch evaluation ran. If the
|
|
2305
|
+
# request didn't specify a version, this is the latest published
|
|
2306
|
+
# version when the batch evaluation started.
|
|
2307
|
+
# @return [String]
|
|
2308
|
+
#
|
|
2309
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/DatasetDetails AWS API Documentation
|
|
2310
|
+
#
|
|
2311
|
+
class DatasetDetails < Struct.new(
|
|
2312
|
+
:dataset_id,
|
|
2313
|
+
:dataset_version)
|
|
2314
|
+
SENSITIVE = []
|
|
2315
|
+
include Aws::Structure
|
|
2316
|
+
end
|
|
2317
|
+
|
|
2318
|
+
# The configuration for running the scenarios in a dataset against an
|
|
2319
|
+
# agent as part of a batch evaluation.
|
|
2320
|
+
#
|
|
2321
|
+
# @!attribute [rw] dataset
|
|
2322
|
+
# The dataset whose scenarios are sent to the agent. The dataset must
|
|
2323
|
+
# use the predefined evaluation schema, and the version that runs must
|
|
2324
|
+
# contain between 1 and 1,000 scenarios.
|
|
2325
|
+
# @return [Types::DatasetSource]
|
|
2326
|
+
#
|
|
2327
|
+
# @!attribute [rw] agent_invocation
|
|
2328
|
+
# Specifies the agent runtime endpoint and the request template that
|
|
2329
|
+
# the batch evaluation uses to invoke the agent for each scenario in
|
|
2330
|
+
# the dataset.
|
|
2331
|
+
# @return [Types::AgentInvocationConfig]
|
|
2332
|
+
#
|
|
2333
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/DatasetExecutionConfig AWS API Documentation
|
|
2334
|
+
#
|
|
2335
|
+
class DatasetExecutionConfig < Struct.new(
|
|
2336
|
+
:dataset,
|
|
2337
|
+
:agent_invocation)
|
|
2338
|
+
SENSITIVE = []
|
|
2339
|
+
include Aws::Structure
|
|
2340
|
+
end
|
|
2341
|
+
|
|
2342
|
+
# The details of the dataset and agent that a batch evaluation ran.
|
|
2343
|
+
#
|
|
2344
|
+
# @!attribute [rw] dataset
|
|
2345
|
+
# The dataset and the version of it that the batch evaluation ran.
|
|
2346
|
+
# @return [Types::DatasetDetails]
|
|
2347
|
+
#
|
|
2348
|
+
# @!attribute [rw] agent_invocation
|
|
2349
|
+
# The agent that the batch evaluation invoked.
|
|
2350
|
+
# @return [Types::AgentInvocationDetails]
|
|
2351
|
+
#
|
|
2352
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/DatasetExecutionDetails AWS API Documentation
|
|
2353
|
+
#
|
|
2354
|
+
class DatasetExecutionDetails < Struct.new(
|
|
2355
|
+
:dataset,
|
|
2356
|
+
:agent_invocation)
|
|
2357
|
+
SENSITIVE = []
|
|
2358
|
+
include Aws::Structure
|
|
2359
|
+
end
|
|
2360
|
+
|
|
2361
|
+
# A summary of a dataset generation. To get its counts and the request
|
|
2362
|
+
# it was started with, call `GetDatasetGeneration`.
|
|
2363
|
+
#
|
|
2364
|
+
# @!attribute [rw] generation_id
|
|
2365
|
+
# The unique identifier of the dataset generation.
|
|
2366
|
+
# @return [String]
|
|
2367
|
+
#
|
|
2368
|
+
# @!attribute [rw] dataset_id
|
|
2369
|
+
# The unique identifier of the dataset.
|
|
2370
|
+
# @return [String]
|
|
2371
|
+
#
|
|
2372
|
+
# @!attribute [rw] name
|
|
2373
|
+
# The name of the dataset generation.
|
|
2374
|
+
# @return [String]
|
|
2375
|
+
#
|
|
2376
|
+
# @!attribute [rw] description
|
|
2377
|
+
# The description of the dataset generation.
|
|
2378
|
+
# @return [String]
|
|
2379
|
+
#
|
|
2380
|
+
# @!attribute [rw] scenario_type
|
|
2381
|
+
# The type of scenario the generation produces.
|
|
2382
|
+
# @return [String]
|
|
2383
|
+
#
|
|
2384
|
+
# @!attribute [rw] status
|
|
2385
|
+
# The status of the dataset generation.
|
|
2386
|
+
# @return [String]
|
|
2387
|
+
#
|
|
2388
|
+
# @!attribute [rw] created_at
|
|
2389
|
+
# The time at which the dataset generation started.
|
|
2390
|
+
# @return [Time]
|
|
2391
|
+
#
|
|
2392
|
+
# @!attribute [rw] completed_at
|
|
2393
|
+
# The time at which the dataset generation finished. Present only when
|
|
2394
|
+
# the generation has finished.
|
|
2395
|
+
# @return [Time]
|
|
2396
|
+
#
|
|
2397
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/DatasetGenerationSummary AWS API Documentation
|
|
2398
|
+
#
|
|
2399
|
+
class DatasetGenerationSummary < Struct.new(
|
|
2400
|
+
:generation_id,
|
|
2401
|
+
:dataset_id,
|
|
2402
|
+
:name,
|
|
2403
|
+
:description,
|
|
2404
|
+
:scenario_type,
|
|
2405
|
+
:status,
|
|
2406
|
+
:created_at,
|
|
2407
|
+
:completed_at)
|
|
2408
|
+
SENSITIVE = []
|
|
2409
|
+
include Aws::Structure
|
|
2410
|
+
end
|
|
2411
|
+
|
|
2412
|
+
# Identifies the dataset and the version of it to run.
|
|
2413
|
+
#
|
|
2414
|
+
# @!attribute [rw] dataset_id
|
|
2415
|
+
# The unique identifier of the dataset.
|
|
2416
|
+
# @return [String]
|
|
2417
|
+
#
|
|
2418
|
+
# @!attribute [rw] dataset_version
|
|
2419
|
+
# The number of a published version of the dataset. You can't run the
|
|
2420
|
+
# `DRAFT` version. If you don't specify a version, the batch
|
|
2421
|
+
# evaluation uses the latest published version.
|
|
2422
|
+
# @return [String]
|
|
2423
|
+
#
|
|
2424
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/DatasetSource AWS API Documentation
|
|
2425
|
+
#
|
|
2426
|
+
class DatasetSource < Struct.new(
|
|
2427
|
+
:dataset_id,
|
|
2428
|
+
:dataset_version)
|
|
2429
|
+
SENSITIVE = []
|
|
2430
|
+
include Aws::Structure
|
|
2431
|
+
end
|
|
2432
|
+
|
|
2029
2433
|
# @!attribute [rw] ab_test_id
|
|
2030
2434
|
# The unique identifier of the A/B test to delete.
|
|
2031
2435
|
# @return [String]
|
|
@@ -2137,6 +2541,40 @@ module Aws::BedrockAgentCore
|
|
|
2137
2541
|
include Aws::Structure
|
|
2138
2542
|
end
|
|
2139
2543
|
|
|
2544
|
+
# @!attribute [rw] dataset_id
|
|
2545
|
+
# The unique identifier of the dataset.
|
|
2546
|
+
# @return [String]
|
|
2547
|
+
#
|
|
2548
|
+
# @!attribute [rw] generation_id
|
|
2549
|
+
# The unique identifier of the dataset generation.
|
|
2550
|
+
# @return [String]
|
|
2551
|
+
#
|
|
2552
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/DeleteDatasetGenerationRequest AWS API Documentation
|
|
2553
|
+
#
|
|
2554
|
+
class DeleteDatasetGenerationRequest < Struct.new(
|
|
2555
|
+
:dataset_id,
|
|
2556
|
+
:generation_id)
|
|
2557
|
+
SENSITIVE = []
|
|
2558
|
+
include Aws::Structure
|
|
2559
|
+
end
|
|
2560
|
+
|
|
2561
|
+
# @!attribute [rw] generation_id
|
|
2562
|
+
# The unique identifier of the dataset generation.
|
|
2563
|
+
# @return [String]
|
|
2564
|
+
#
|
|
2565
|
+
# @!attribute [rw] status
|
|
2566
|
+
# The status of the dataset generation.
|
|
2567
|
+
# @return [String]
|
|
2568
|
+
#
|
|
2569
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/DeleteDatasetGenerationResponse AWS API Documentation
|
|
2570
|
+
#
|
|
2571
|
+
class DeleteDatasetGenerationResponse < Struct.new(
|
|
2572
|
+
:generation_id,
|
|
2573
|
+
:status)
|
|
2574
|
+
SENSITIVE = []
|
|
2575
|
+
include Aws::Structure
|
|
2576
|
+
end
|
|
2577
|
+
|
|
2140
2578
|
# @!attribute [rw] memory_id
|
|
2141
2579
|
# The identifier of the AgentCore Memory resource from which to delete
|
|
2142
2580
|
# the event.
|
|
@@ -2839,6 +3277,47 @@ module Aws::BedrockAgentCore
|
|
|
2839
3277
|
include Aws::Structure
|
|
2840
3278
|
end
|
|
2841
3279
|
|
|
3280
|
+
# A condition on a session's evaluation result.
|
|
3281
|
+
#
|
|
3282
|
+
# @!attribute [rw] evaluator_id
|
|
3283
|
+
# The unique identifier of the evaluator whose result to compare.
|
|
3284
|
+
# @return [String]
|
|
3285
|
+
#
|
|
3286
|
+
# @!attribute [rw] evaluation_dimension_name
|
|
3287
|
+
# The dimension of the evaluator's result to compare. Required for an
|
|
3288
|
+
# evaluator that scores more than one dimension. Don't specify it for
|
|
3289
|
+
# any other evaluator.
|
|
3290
|
+
# @return [String]
|
|
3291
|
+
#
|
|
3292
|
+
# @!attribute [rw] operator
|
|
3293
|
+
# How to compare the evaluation result with `value`.
|
|
3294
|
+
# @return [String]
|
|
3295
|
+
#
|
|
3296
|
+
# @!attribute [rw] value
|
|
3297
|
+
# The value to compare the evaluation result with. Use `doubleValue`
|
|
3298
|
+
# for a score and `stringValue` for a label. `booleanValue` isn't
|
|
3299
|
+
# supported.
|
|
3300
|
+
# @return [Types::GenerationFilterValue]
|
|
3301
|
+
#
|
|
3302
|
+
# @!attribute [rw] aggregation
|
|
3303
|
+
# How to combine the evaluator's per-trace or per-span results into
|
|
3304
|
+
# one result for the session. Required for an evaluator that scores
|
|
3305
|
+
# traces or spans. Don't specify it for an evaluator that scores
|
|
3306
|
+
# sessions.
|
|
3307
|
+
# @return [String]
|
|
3308
|
+
#
|
|
3309
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/EvaluatorFilter AWS API Documentation
|
|
3310
|
+
#
|
|
3311
|
+
class EvaluatorFilter < Struct.new(
|
|
3312
|
+
:evaluator_id,
|
|
3313
|
+
:evaluation_dimension_name,
|
|
3314
|
+
:operator,
|
|
3315
|
+
:value,
|
|
3316
|
+
:aggregation)
|
|
3317
|
+
SENSITIVE = []
|
|
3318
|
+
include Aws::Structure
|
|
3319
|
+
end
|
|
3320
|
+
|
|
2842
3321
|
# Statistical metrics for a single evaluator comparing control and
|
|
2843
3322
|
# treatment variants.
|
|
2844
3323
|
#
|
|
@@ -3413,11 +3892,353 @@ module Aws::BedrockAgentCore
|
|
|
3413
3892
|
include Aws::Structure
|
|
3414
3893
|
end
|
|
3415
3894
|
|
|
3416
|
-
#
|
|
3417
|
-
#
|
|
3895
|
+
# A condition on a session attribute.
|
|
3896
|
+
#
|
|
3897
|
+
# @!attribute [rw] key
|
|
3898
|
+
# The attribute key.
|
|
3418
3899
|
# @return [String]
|
|
3419
3900
|
#
|
|
3420
|
-
#
|
|
3901
|
+
# @!attribute [rw] operator
|
|
3902
|
+
# How to compare the attribute with `value`.
|
|
3903
|
+
# @return [String]
|
|
3904
|
+
#
|
|
3905
|
+
# @!attribute [rw] value
|
|
3906
|
+
# The value to compare the attribute with.
|
|
3907
|
+
# @return [Types::GenerationFilterValue]
|
|
3908
|
+
#
|
|
3909
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GenerationAttributeFilter AWS API Documentation
|
|
3910
|
+
#
|
|
3911
|
+
class GenerationAttributeFilter < Struct.new(
|
|
3912
|
+
:key,
|
|
3913
|
+
:operator,
|
|
3914
|
+
:value)
|
|
3915
|
+
SENSITIVE = []
|
|
3916
|
+
include Aws::Structure
|
|
3917
|
+
end
|
|
3918
|
+
|
|
3919
|
+
# The failures in a dataset generation that share an error code.
|
|
3920
|
+
#
|
|
3921
|
+
# @!attribute [rw] error_code
|
|
3922
|
+
# The error code, for example `ACCESS_DENIED` or
|
|
3923
|
+
# `EXPIRED_CREDENTIALS`. New codes can be added.
|
|
3924
|
+
# @return [String]
|
|
3925
|
+
#
|
|
3926
|
+
# @!attribute [rw] error_message
|
|
3927
|
+
# A description of the error.
|
|
3928
|
+
# @return [String]
|
|
3929
|
+
#
|
|
3930
|
+
# @!attribute [rw] count
|
|
3931
|
+
# The number of sessions and traces that failed with this error code.
|
|
3932
|
+
# Absent for a generation that finished before failures were counted
|
|
3933
|
+
# by code. In that case, `sessionIds` is a sample.
|
|
3934
|
+
# @return [Integer]
|
|
3935
|
+
#
|
|
3936
|
+
# @!attribute [rw] session_ids
|
|
3937
|
+
# Up to 10 of the sessions that failed with this error code. Each
|
|
3938
|
+
# entry is a session ID, or the ID of a trace named in the request.
|
|
3939
|
+
# @return [Array<String>]
|
|
3940
|
+
#
|
|
3941
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GenerationErrorDetail AWS API Documentation
|
|
3942
|
+
#
|
|
3943
|
+
class GenerationErrorDetail < Struct.new(
|
|
3944
|
+
:error_code,
|
|
3945
|
+
:error_message,
|
|
3946
|
+
:count,
|
|
3947
|
+
:session_ids)
|
|
3948
|
+
SENSITIVE = []
|
|
3949
|
+
include Aws::Structure
|
|
3950
|
+
end
|
|
3951
|
+
|
|
3952
|
+
# The value a filter compares with. Specify exactly one. Attribute
|
|
3953
|
+
# filters support all three types. Evaluator filters support
|
|
3954
|
+
# `stringValue` and `doubleValue`.
|
|
3955
|
+
#
|
|
3956
|
+
# @note GenerationFilterValue is a union - when making an API calls you must set exactly one of the members.
|
|
3957
|
+
#
|
|
3958
|
+
# @note GenerationFilterValue is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of GenerationFilterValue corresponding to the set member.
|
|
3959
|
+
#
|
|
3960
|
+
# @!attribute [rw] string_value
|
|
3961
|
+
# A string value.
|
|
3962
|
+
# @return [String]
|
|
3963
|
+
#
|
|
3964
|
+
# @!attribute [rw] double_value
|
|
3965
|
+
# A numeric value.
|
|
3966
|
+
# @return [Float]
|
|
3967
|
+
#
|
|
3968
|
+
# @!attribute [rw] boolean_value
|
|
3969
|
+
# A Boolean value.
|
|
3970
|
+
# @return [Boolean]
|
|
3971
|
+
#
|
|
3972
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GenerationFilterValue AWS API Documentation
|
|
3973
|
+
#
|
|
3974
|
+
class GenerationFilterValue < Struct.new(
|
|
3975
|
+
:string_value,
|
|
3976
|
+
:double_value,
|
|
3977
|
+
:boolean_value,
|
|
3978
|
+
:unknown)
|
|
3979
|
+
SENSITIVE = []
|
|
3980
|
+
include Aws::Structure
|
|
3981
|
+
include Aws::Structure::Union
|
|
3982
|
+
|
|
3983
|
+
class StringValue < GenerationFilterValue; end
|
|
3984
|
+
class DoubleValue < GenerationFilterValue; end
|
|
3985
|
+
class BooleanValue < GenerationFilterValue; end
|
|
3986
|
+
class Unknown < GenerationFilterValue; end
|
|
3987
|
+
end
|
|
3988
|
+
|
|
3989
|
+
# Conditions that a session must meet to be selected. A session must
|
|
3990
|
+
# meet every condition you specify. Attribute and turn count filters
|
|
3991
|
+
# work with any source. Evaluator filters need a source that has
|
|
3992
|
+
# evaluation results.
|
|
3993
|
+
#
|
|
3994
|
+
# @!attribute [rw] attribute_filters
|
|
3995
|
+
# Attribute conditions, up to 5. A session must meet all of them. An
|
|
3996
|
+
# attribute on a span matches when any span in the session meets the
|
|
3997
|
+
# condition.
|
|
3998
|
+
# @return [Array<Types::GenerationAttributeFilter>]
|
|
3999
|
+
#
|
|
4000
|
+
# @!attribute [rw] turn_count
|
|
4001
|
+
# The range of turns a session can have. For example, set `max` to 1
|
|
4002
|
+
# for single-turn sessions only, or `min` to 2 for multi-turn sessions
|
|
4003
|
+
# only. Sessions with more than 100 turns are never selected.
|
|
4004
|
+
# @return [Types::TurnCountRange]
|
|
4005
|
+
#
|
|
4006
|
+
# @!attribute [rw] evaluator_filters
|
|
4007
|
+
# Conditions on evaluation results, up to 10. A session must meet all
|
|
4008
|
+
# of them. You can use these only with an `onlineEvaluation` or
|
|
4009
|
+
# `batchEvaluation` source. A `cloudWatchLogs` source has no
|
|
4010
|
+
# evaluation results.
|
|
4011
|
+
# @return [Array<Types::EvaluatorFilter>]
|
|
4012
|
+
#
|
|
4013
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GenerationFilters AWS API Documentation
|
|
4014
|
+
#
|
|
4015
|
+
class GenerationFilters < Struct.new(
|
|
4016
|
+
:attribute_filters,
|
|
4017
|
+
:turn_count,
|
|
4018
|
+
:evaluator_filters)
|
|
4019
|
+
SENSITIVE = []
|
|
4020
|
+
include Aws::Structure
|
|
4021
|
+
end
|
|
4022
|
+
|
|
4023
|
+
# The number of session and trace IDs a dataset generation was started
|
|
4024
|
+
# with.
|
|
4025
|
+
#
|
|
4026
|
+
# @!attribute [rw] session_id_count
|
|
4027
|
+
# The number of session IDs in the request.
|
|
4028
|
+
# @return [Integer]
|
|
4029
|
+
#
|
|
4030
|
+
# @!attribute [rw] trace_id_count
|
|
4031
|
+
# The number of trace IDs in the request.
|
|
4032
|
+
# @return [Integer]
|
|
4033
|
+
#
|
|
4034
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GenerationIdentifierCounts AWS API Documentation
|
|
4035
|
+
#
|
|
4036
|
+
class GenerationIdentifierCounts < Struct.new(
|
|
4037
|
+
:session_id_count,
|
|
4038
|
+
:trace_id_count)
|
|
4039
|
+
SENSITIVE = []
|
|
4040
|
+
include Aws::Structure
|
|
4041
|
+
end
|
|
4042
|
+
|
|
4043
|
+
# The sessions and traces to generate examples from. Specify at least
|
|
4044
|
+
# one session ID or trace ID. A session with more than 100 turns is
|
|
4045
|
+
# reported as an error and produces no example.
|
|
4046
|
+
#
|
|
4047
|
+
# @!attribute [rw] session_ids
|
|
4048
|
+
# The IDs of the sessions to use, up to 25.
|
|
4049
|
+
# @return [Array<String>]
|
|
4050
|
+
#
|
|
4051
|
+
# @!attribute [rw] trace_ids
|
|
4052
|
+
# The IDs of the traces to use, up to 25.
|
|
4053
|
+
# @return [Array<String>]
|
|
4054
|
+
#
|
|
4055
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GenerationIdentifiers AWS API Documentation
|
|
4056
|
+
#
|
|
4057
|
+
class GenerationIdentifiers < Struct.new(
|
|
4058
|
+
:session_ids,
|
|
4059
|
+
:trace_ids)
|
|
4060
|
+
SENSITIVE = []
|
|
4061
|
+
include Aws::Structure
|
|
4062
|
+
end
|
|
4063
|
+
|
|
4064
|
+
# Counts of the sessions, scenarios and examples a dataset generation
|
|
4065
|
+
# has processed.
|
|
4066
|
+
#
|
|
4067
|
+
# @!attribute [rw] sessions_matched
|
|
4068
|
+
# The number of sessions that matched the filters or were named in the
|
|
4069
|
+
# request, before sampling. This includes sessions that later failed.
|
|
4070
|
+
# @return [Integer]
|
|
4071
|
+
#
|
|
4072
|
+
# @!attribute [rw] sessions_selected
|
|
4073
|
+
# The number of sessions left after sampling.
|
|
4074
|
+
# @return [Integer]
|
|
4075
|
+
#
|
|
4076
|
+
# @!attribute [rw] sessions_unscored
|
|
4077
|
+
# The number of sessions left out because an evaluator filter had no
|
|
4078
|
+
# result to compare, either because the session wasn't evaluated yet
|
|
4079
|
+
# or because the evaluation failed.
|
|
4080
|
+
# @return [Integer]
|
|
4081
|
+
#
|
|
4082
|
+
# @!attribute [rw] sessions_failed
|
|
4083
|
+
# The number of sessions dropped because of an error. See
|
|
4084
|
+
# `errorDetails` for the errors.
|
|
4085
|
+
# @return [Integer]
|
|
4086
|
+
#
|
|
4087
|
+
# @!attribute [rw] scenarios_generated
|
|
4088
|
+
# The number of scenarios generated.
|
|
4089
|
+
# @return [Integer]
|
|
4090
|
+
#
|
|
4091
|
+
# @!attribute [rw] scenarios_deduplicated
|
|
4092
|
+
# The number of scenarios left out as duplicates, of each other or of
|
|
4093
|
+
# examples already in the draft.
|
|
4094
|
+
# @return [Integer]
|
|
4095
|
+
#
|
|
4096
|
+
# @!attribute [rw] examples_written
|
|
4097
|
+
# The number of examples added to the dataset's draft.
|
|
4098
|
+
# @return [Integer]
|
|
4099
|
+
#
|
|
4100
|
+
# @!attribute [rw] examples_with_ground_truth
|
|
4101
|
+
# The number of added examples that have reference fields.
|
|
4102
|
+
# @return [Integer]
|
|
4103
|
+
#
|
|
4104
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GenerationResults AWS API Documentation
|
|
4105
|
+
#
|
|
4106
|
+
class GenerationResults < Struct.new(
|
|
4107
|
+
:sessions_matched,
|
|
4108
|
+
:sessions_selected,
|
|
4109
|
+
:sessions_unscored,
|
|
4110
|
+
:sessions_failed,
|
|
4111
|
+
:scenarios_generated,
|
|
4112
|
+
:scenarios_deduplicated,
|
|
4113
|
+
:examples_written,
|
|
4114
|
+
:examples_with_ground_truth)
|
|
4115
|
+
SENSITIVE = []
|
|
4116
|
+
include Aws::Structure
|
|
4117
|
+
end
|
|
4118
|
+
|
|
4119
|
+
# How many scenarios a dataset generation produces.
|
|
4120
|
+
#
|
|
4121
|
+
# @!attribute [rw] max_scenarios
|
|
4122
|
+
# The maximum number of scenarios to generate, from 1 to 1,000. The
|
|
4123
|
+
# default is 100. The generation produces at most one scenario for
|
|
4124
|
+
# each selected session. The dataset's draft examples plus this value
|
|
4125
|
+
# can't be more than 1,000.
|
|
4126
|
+
# @return [Integer]
|
|
4127
|
+
#
|
|
4128
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GenerationSamplingConfig AWS API Documentation
|
|
4129
|
+
#
|
|
4130
|
+
class GenerationSamplingConfig < Struct.new(
|
|
4131
|
+
:max_scenarios)
|
|
4132
|
+
SENSITIVE = []
|
|
4133
|
+
include Aws::Structure
|
|
4134
|
+
end
|
|
4135
|
+
|
|
4136
|
+
# How a dataset generation chooses sessions. Specify exactly one:
|
|
4137
|
+
# filters, to have AgentCore find matching sessions, or identifiers, to
|
|
4138
|
+
# name the sessions and traces yourself. Sessions and traces you name
|
|
4139
|
+
# aren't filtered further.
|
|
4140
|
+
#
|
|
4141
|
+
# @note GenerationSelection is a union - when making an API calls you must set exactly one of the members.
|
|
4142
|
+
#
|
|
4143
|
+
# @!attribute [rw] filters
|
|
4144
|
+
# Conditions that a session must meet to be selected.
|
|
4145
|
+
# @return [Types::GenerationFilters]
|
|
4146
|
+
#
|
|
4147
|
+
# @!attribute [rw] identifiers
|
|
4148
|
+
# The sessions and traces to use.
|
|
4149
|
+
# @return [Types::GenerationIdentifiers]
|
|
4150
|
+
#
|
|
4151
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GenerationSelection AWS API Documentation
|
|
4152
|
+
#
|
|
4153
|
+
class GenerationSelection < Struct.new(
|
|
4154
|
+
:filters,
|
|
4155
|
+
:identifiers,
|
|
4156
|
+
:unknown)
|
|
4157
|
+
SENSITIVE = []
|
|
4158
|
+
include Aws::Structure
|
|
4159
|
+
include Aws::Structure::Union
|
|
4160
|
+
|
|
4161
|
+
class Filters < GenerationSelection; end
|
|
4162
|
+
class Identifiers < GenerationSelection; end
|
|
4163
|
+
class Unknown < GenerationSelection; end
|
|
4164
|
+
end
|
|
4165
|
+
|
|
4166
|
+
# How a dataset generation was asked to choose sessions. Filters are
|
|
4167
|
+
# returned as submitted. Session and trace IDs are returned as counts,
|
|
4168
|
+
# and the IDs themselves are never returned.
|
|
4169
|
+
#
|
|
4170
|
+
# @note GenerationSelectionRecord is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of GenerationSelectionRecord corresponding to the set member.
|
|
4171
|
+
#
|
|
4172
|
+
# @!attribute [rw] filters
|
|
4173
|
+
# The filters the generation was started with.
|
|
4174
|
+
# @return [Types::GenerationFilters]
|
|
4175
|
+
#
|
|
4176
|
+
# @!attribute [rw] identifiers
|
|
4177
|
+
# The number of session and trace IDs the generation was started with.
|
|
4178
|
+
# @return [Types::GenerationIdentifierCounts]
|
|
4179
|
+
#
|
|
4180
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GenerationSelectionRecord AWS API Documentation
|
|
4181
|
+
#
|
|
4182
|
+
class GenerationSelectionRecord < Struct.new(
|
|
4183
|
+
:filters,
|
|
4184
|
+
:identifiers,
|
|
4185
|
+
:unknown)
|
|
4186
|
+
SENSITIVE = []
|
|
4187
|
+
include Aws::Structure
|
|
4188
|
+
include Aws::Structure::Union
|
|
4189
|
+
|
|
4190
|
+
class Filters < GenerationSelectionRecord; end
|
|
4191
|
+
class Identifiers < GenerationSelectionRecord; end
|
|
4192
|
+
class Unknown < GenerationSelectionRecord; end
|
|
4193
|
+
end
|
|
4194
|
+
|
|
4195
|
+
# The source of a dataset generation.
|
|
4196
|
+
#
|
|
4197
|
+
# @note GenerationSource is a union - when making an API calls you must set exactly one of the members.
|
|
4198
|
+
#
|
|
4199
|
+
# @!attribute [rw] trace_generation
|
|
4200
|
+
# Generates examples from your agent's traces.
|
|
4201
|
+
# @return [Types::TraceGenerationSource]
|
|
4202
|
+
#
|
|
4203
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GenerationSource AWS API Documentation
|
|
4204
|
+
#
|
|
4205
|
+
class GenerationSource < Struct.new(
|
|
4206
|
+
:trace_generation,
|
|
4207
|
+
:unknown)
|
|
4208
|
+
SENSITIVE = []
|
|
4209
|
+
include Aws::Structure
|
|
4210
|
+
include Aws::Structure::Union
|
|
4211
|
+
|
|
4212
|
+
class TraceGeneration < GenerationSource; end
|
|
4213
|
+
class Unknown < GenerationSource; end
|
|
4214
|
+
end
|
|
4215
|
+
|
|
4216
|
+
# The source a dataset generation was started with.
|
|
4217
|
+
#
|
|
4218
|
+
# @note GenerationSourceRecord is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of GenerationSourceRecord corresponding to the set member.
|
|
4219
|
+
#
|
|
4220
|
+
# @!attribute [rw] trace_generation
|
|
4221
|
+
# The trace source the generation was started with.
|
|
4222
|
+
# @return [Types::TraceGenerationRecord]
|
|
4223
|
+
#
|
|
4224
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GenerationSourceRecord AWS API Documentation
|
|
4225
|
+
#
|
|
4226
|
+
class GenerationSourceRecord < Struct.new(
|
|
4227
|
+
:trace_generation,
|
|
4228
|
+
:unknown)
|
|
4229
|
+
SENSITIVE = []
|
|
4230
|
+
include Aws::Structure
|
|
4231
|
+
include Aws::Structure::Union
|
|
4232
|
+
|
|
4233
|
+
class TraceGeneration < GenerationSourceRecord; end
|
|
4234
|
+
class Unknown < GenerationSourceRecord; end
|
|
4235
|
+
end
|
|
4236
|
+
|
|
4237
|
+
# @!attribute [rw] ab_test_id
|
|
4238
|
+
# The unique identifier of the A/B test to retrieve.
|
|
4239
|
+
# @return [String]
|
|
4240
|
+
#
|
|
4241
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GetABTestRequest AWS API Documentation
|
|
3421
4242
|
#
|
|
3422
4243
|
class GetABTestRequest < Struct.new(
|
|
3423
4244
|
:ab_test_id)
|
|
@@ -3580,6 +4401,112 @@ module Aws::BedrockAgentCore
|
|
|
3580
4401
|
include Aws::Structure
|
|
3581
4402
|
end
|
|
3582
4403
|
|
|
4404
|
+
# @!attribute [rw] application_name
|
|
4405
|
+
# The application that the Agent Insight belongs to.
|
|
4406
|
+
# @return [String]
|
|
4407
|
+
#
|
|
4408
|
+
# @!attribute [rw] agent_insight_id
|
|
4409
|
+
# The unique identifier of the Agent Insight to retrieve.
|
|
4410
|
+
# @return [String]
|
|
4411
|
+
#
|
|
4412
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GetAgentInsightRequest AWS API Documentation
|
|
4413
|
+
#
|
|
4414
|
+
class GetAgentInsightRequest < Struct.new(
|
|
4415
|
+
:application_name,
|
|
4416
|
+
:agent_insight_id)
|
|
4417
|
+
SENSITIVE = []
|
|
4418
|
+
include Aws::Structure
|
|
4419
|
+
end
|
|
4420
|
+
|
|
4421
|
+
# @!attribute [rw] type
|
|
4422
|
+
# The type of insight.
|
|
4423
|
+
# @return [String]
|
|
4424
|
+
#
|
|
4425
|
+
# @!attribute [rw] name
|
|
4426
|
+
# A generated display label for the Agent Insight. This is a
|
|
4427
|
+
# human-readable summary of the detected pattern, not an identifier.
|
|
4428
|
+
# @return [String]
|
|
4429
|
+
#
|
|
4430
|
+
# @!attribute [rw] description
|
|
4431
|
+
# A generated description of the Agent Insight that explains the
|
|
4432
|
+
# detected pattern and its observed behavior across sessions.
|
|
4433
|
+
# @return [String]
|
|
4434
|
+
#
|
|
4435
|
+
# @!attribute [rw] created_at
|
|
4436
|
+
# The date and time when the Agent Insight was first created.
|
|
4437
|
+
# @return [Time]
|
|
4438
|
+
#
|
|
4439
|
+
# @!attribute [rw] affected_session_count
|
|
4440
|
+
# The number of sessions affected by the insight pattern.
|
|
4441
|
+
# @return [Integer]
|
|
4442
|
+
#
|
|
4443
|
+
# @!attribute [rw] sample_sessions
|
|
4444
|
+
# A list of sample sessions that illustrate the Agent Insight,
|
|
4445
|
+
# including per-session findings that point to the relevant spans or
|
|
4446
|
+
# traces.
|
|
4447
|
+
# @return [Array<Types::SampleSession>]
|
|
4448
|
+
#
|
|
4449
|
+
# @!attribute [rw] root_causes
|
|
4450
|
+
# The root causes identified for the Agent Insight, each with an
|
|
4451
|
+
# explanation, an affected session count, an optional suggested fix,
|
|
4452
|
+
# and sample sessions that illustrate the root cause.
|
|
4453
|
+
# @return [Array<Types::InsightRootCause>]
|
|
4454
|
+
#
|
|
4455
|
+
# @!attribute [rw] agent_insight_id
|
|
4456
|
+
# The unique identifier of the Agent Insight.
|
|
4457
|
+
# @return [String]
|
|
4458
|
+
#
|
|
4459
|
+
# @!attribute [rw] application_name
|
|
4460
|
+
# The application that the Agent Insight belongs to.
|
|
4461
|
+
# @return [String]
|
|
4462
|
+
#
|
|
4463
|
+
# @!attribute [rw] batch_evaluation_id
|
|
4464
|
+
# The Batch Evaluation that produced this Insight, when applicable.
|
|
4465
|
+
# @return [String]
|
|
4466
|
+
#
|
|
4467
|
+
# @!attribute [rw] customer_metadata_status
|
|
4468
|
+
# Specifies whether customer-encrypted metadata is available for the
|
|
4469
|
+
# Agent Insight.
|
|
4470
|
+
# @return [String]
|
|
4471
|
+
#
|
|
4472
|
+
# @!attribute [rw] updated_at
|
|
4473
|
+
# The date and time when the Agent Insight was last updated.
|
|
4474
|
+
# @return [Time]
|
|
4475
|
+
#
|
|
4476
|
+
# @!attribute [rw] archive_status
|
|
4477
|
+
# Specifies whether the Agent Insight is active or archived. Valid
|
|
4478
|
+
# values:
|
|
4479
|
+
#
|
|
4480
|
+
# * `ACTIVE` - The insight is currently active.
|
|
4481
|
+
#
|
|
4482
|
+
# * `ARCHIVED` - The insight has been archived.
|
|
4483
|
+
# @return [String]
|
|
4484
|
+
#
|
|
4485
|
+
# @!attribute [rw] last_seen_at
|
|
4486
|
+
# The most recent date and time when the insight pattern was observed.
|
|
4487
|
+
# @return [Time]
|
|
4488
|
+
#
|
|
4489
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GetAgentInsightResponse AWS API Documentation
|
|
4490
|
+
#
|
|
4491
|
+
class GetAgentInsightResponse < Struct.new(
|
|
4492
|
+
:type,
|
|
4493
|
+
:name,
|
|
4494
|
+
:description,
|
|
4495
|
+
:created_at,
|
|
4496
|
+
:affected_session_count,
|
|
4497
|
+
:sample_sessions,
|
|
4498
|
+
:root_causes,
|
|
4499
|
+
:agent_insight_id,
|
|
4500
|
+
:application_name,
|
|
4501
|
+
:batch_evaluation_id,
|
|
4502
|
+
:customer_metadata_status,
|
|
4503
|
+
:updated_at,
|
|
4504
|
+
:archive_status,
|
|
4505
|
+
:last_seen_at)
|
|
4506
|
+
SENSITIVE = [:name, :description]
|
|
4507
|
+
include Aws::Structure
|
|
4508
|
+
end
|
|
4509
|
+
|
|
3583
4510
|
# @!attribute [rw] batch_evaluation_id
|
|
3584
4511
|
# The unique identifier of the batch evaluation to retrieve.
|
|
3585
4512
|
# @return [String]
|
|
@@ -3674,6 +4601,14 @@ module Aws::BedrockAgentCore
|
|
|
3674
4601
|
# The ARN of the KMS key used to encrypt evaluation data.
|
|
3675
4602
|
# @return [String]
|
|
3676
4603
|
#
|
|
4604
|
+
# @!attribute [rw] dataset_execution_details
|
|
4605
|
+
# The details of the dataset and agent that the batch evaluation ran,
|
|
4606
|
+
# including the dataset version and agent runtime version that the
|
|
4607
|
+
# service resolved when the batch evaluation started. This field is
|
|
4608
|
+
# present only if the batch evaluation was started with a
|
|
4609
|
+
# `datasetExecutionConfig`.
|
|
4610
|
+
# @return [Types::DatasetExecutionDetails]
|
|
4611
|
+
#
|
|
3677
4612
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GetBatchEvaluationResponse AWS API Documentation
|
|
3678
4613
|
#
|
|
3679
4614
|
class GetBatchEvaluationResponse < Struct.new(
|
|
@@ -3694,7 +4629,8 @@ module Aws::BedrockAgentCore
|
|
|
3694
4629
|
:error_details,
|
|
3695
4630
|
:description,
|
|
3696
4631
|
:updated_at,
|
|
3697
|
-
:kms_key_arn
|
|
4632
|
+
:kms_key_arn,
|
|
4633
|
+
:dataset_execution_details)
|
|
3698
4634
|
SENSITIVE = []
|
|
3699
4635
|
include Aws::Structure
|
|
3700
4636
|
end
|
|
@@ -3879,8 +4815,110 @@ module Aws::BedrockAgentCore
|
|
|
3879
4815
|
:created_at,
|
|
3880
4816
|
:session_timeout_seconds,
|
|
3881
4817
|
:status,
|
|
3882
|
-
:certificates,
|
|
3883
|
-
:filesystem_configurations)
|
|
4818
|
+
:certificates,
|
|
4819
|
+
:filesystem_configurations)
|
|
4820
|
+
SENSITIVE = []
|
|
4821
|
+
include Aws::Structure
|
|
4822
|
+
end
|
|
4823
|
+
|
|
4824
|
+
# @!attribute [rw] dataset_id
|
|
4825
|
+
# The unique identifier of the dataset.
|
|
4826
|
+
# @return [String]
|
|
4827
|
+
#
|
|
4828
|
+
# @!attribute [rw] generation_id
|
|
4829
|
+
# The unique identifier of the dataset generation.
|
|
4830
|
+
# @return [String]
|
|
4831
|
+
#
|
|
4832
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GetDatasetGenerationRequest AWS API Documentation
|
|
4833
|
+
#
|
|
4834
|
+
class GetDatasetGenerationRequest < Struct.new(
|
|
4835
|
+
:dataset_id,
|
|
4836
|
+
:generation_id)
|
|
4837
|
+
SENSITIVE = []
|
|
4838
|
+
include Aws::Structure
|
|
4839
|
+
end
|
|
4840
|
+
|
|
4841
|
+
# @!attribute [rw] generation_id
|
|
4842
|
+
# The unique identifier of the dataset generation.
|
|
4843
|
+
# @return [String]
|
|
4844
|
+
#
|
|
4845
|
+
# @!attribute [rw] name
|
|
4846
|
+
# The name of the dataset generation.
|
|
4847
|
+
# @return [String]
|
|
4848
|
+
#
|
|
4849
|
+
# @!attribute [rw] description
|
|
4850
|
+
# The description of the dataset generation.
|
|
4851
|
+
# @return [String]
|
|
4852
|
+
#
|
|
4853
|
+
# @!attribute [rw] dataset_id
|
|
4854
|
+
# The unique identifier of the dataset.
|
|
4855
|
+
# @return [String]
|
|
4856
|
+
#
|
|
4857
|
+
# @!attribute [rw] scenario_type
|
|
4858
|
+
# The type of scenario the generation produces. This is the value from
|
|
4859
|
+
# the request, or `DYNAMIC` if the request didn't specify one.
|
|
4860
|
+
# @return [String]
|
|
4861
|
+
#
|
|
4862
|
+
# @!attribute [rw] status
|
|
4863
|
+
# The status of the dataset generation.
|
|
4864
|
+
# @return [String]
|
|
4865
|
+
#
|
|
4866
|
+
# @!attribute [rw] failure_reason
|
|
4867
|
+
# The reason the dataset generation failed. Present only when the
|
|
4868
|
+
# status is `FAILED`.
|
|
4869
|
+
# @return [String]
|
|
4870
|
+
#
|
|
4871
|
+
# @!attribute [rw] created_at
|
|
4872
|
+
# The time at which the dataset generation started.
|
|
4873
|
+
# @return [Time]
|
|
4874
|
+
#
|
|
4875
|
+
# @!attribute [rw] updated_at
|
|
4876
|
+
# The time at which the dataset generation last changed status.
|
|
4877
|
+
# @return [Time]
|
|
4878
|
+
#
|
|
4879
|
+
# @!attribute [rw] completed_at
|
|
4880
|
+
# The time at which the dataset generation finished. Present only when
|
|
4881
|
+
# the generation has finished.
|
|
4882
|
+
# @return [Time]
|
|
4883
|
+
#
|
|
4884
|
+
# @!attribute [rw] source
|
|
4885
|
+
# The source the generation was started with, including the resolved
|
|
4886
|
+
# time window. If you selected sessions and traces by ID, the response
|
|
4887
|
+
# gives the number of IDs instead of the IDs.
|
|
4888
|
+
# @return [Types::GenerationSourceRecord]
|
|
4889
|
+
#
|
|
4890
|
+
# @!attribute [rw] generation_results
|
|
4891
|
+
# Counts of the sessions, scenarios and examples the generation has
|
|
4892
|
+
# processed.
|
|
4893
|
+
# @return [Types::GenerationResults]
|
|
4894
|
+
#
|
|
4895
|
+
# @!attribute [rw] redaction_summary
|
|
4896
|
+
# A summary of what redaction found. Present only when the generation
|
|
4897
|
+
# was started with redaction.
|
|
4898
|
+
# @return [Types::RedactionSummary]
|
|
4899
|
+
#
|
|
4900
|
+
# @!attribute [rw] error_details
|
|
4901
|
+
# The errors the generation hit, grouped by error code. The list holds
|
|
4902
|
+
# the 10 most frequent error codes, most frequent first.
|
|
4903
|
+
# @return [Array<Types::GenerationErrorDetail>]
|
|
4904
|
+
#
|
|
4905
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GetDatasetGenerationResponse AWS API Documentation
|
|
4906
|
+
#
|
|
4907
|
+
class GetDatasetGenerationResponse < Struct.new(
|
|
4908
|
+
:generation_id,
|
|
4909
|
+
:name,
|
|
4910
|
+
:description,
|
|
4911
|
+
:dataset_id,
|
|
4912
|
+
:scenario_type,
|
|
4913
|
+
:status,
|
|
4914
|
+
:failure_reason,
|
|
4915
|
+
:created_at,
|
|
4916
|
+
:updated_at,
|
|
4917
|
+
:completed_at,
|
|
4918
|
+
:source,
|
|
4919
|
+
:generation_results,
|
|
4920
|
+
:redaction_summary,
|
|
4921
|
+
:error_details)
|
|
3884
4922
|
SENSITIVE = []
|
|
3885
4923
|
include Aws::Structure
|
|
3886
4924
|
end
|
|
@@ -4455,6 +5493,33 @@ module Aws::BedrockAgentCore
|
|
|
4455
5493
|
include Aws::Structure
|
|
4456
5494
|
end
|
|
4457
5495
|
|
|
5496
|
+
# Reference fields to copy from the sessions into the generated
|
|
5497
|
+
# examples.
|
|
5498
|
+
#
|
|
5499
|
+
# @!attribute [rw] fields
|
|
5500
|
+
# The reference fields to copy. Values are copied from the session as
|
|
5501
|
+
# observed, not generated.
|
|
5502
|
+
# @return [Array<String>]
|
|
5503
|
+
#
|
|
5504
|
+
# @!attribute [rw] quality_filters
|
|
5505
|
+
# Evaluator conditions that a selected session must also meet to have
|
|
5506
|
+
# reference fields copied. If you don't specify these, the generation
|
|
5507
|
+
# uses the evaluator filters from `selection`. If the selection names
|
|
5508
|
+
# sessions and traces by ID, every selected session gets reference
|
|
5509
|
+
# fields. Specify an empty list to give every selected session
|
|
5510
|
+
# reference fields. You can't specify quality filters with a
|
|
5511
|
+
# `cloudWatchLogs` source.
|
|
5512
|
+
# @return [Array<Types::EvaluatorFilter>]
|
|
5513
|
+
#
|
|
5514
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GroundTruthConfig AWS API Documentation
|
|
5515
|
+
#
|
|
5516
|
+
class GroundTruthConfig < Struct.new(
|
|
5517
|
+
:fields,
|
|
5518
|
+
:quality_filters)
|
|
5519
|
+
SENSITIVE = []
|
|
5520
|
+
include Aws::Structure
|
|
5521
|
+
end
|
|
5522
|
+
|
|
4458
5523
|
# Where to pull ground truth from.
|
|
4459
5524
|
#
|
|
4460
5525
|
# @note GroundTruthSource is a union - when making an API calls you must set exactly one of the members.
|
|
@@ -7037,6 +8102,60 @@ module Aws::BedrockAgentCore
|
|
|
7037
8102
|
include Aws::Structure
|
|
7038
8103
|
end
|
|
7039
8104
|
|
|
8105
|
+
# @!attribute [rw] application_name
|
|
8106
|
+
# Filters the results to Agent Insights for an application.
|
|
8107
|
+
# @return [String]
|
|
8108
|
+
#
|
|
8109
|
+
# @!attribute [rw] batch_evaluation_id
|
|
8110
|
+
# Filters the results to Agent Insights produced by a batch
|
|
8111
|
+
# evaluation.
|
|
8112
|
+
# @return [String]
|
|
8113
|
+
#
|
|
8114
|
+
# @!attribute [rw] archive_status
|
|
8115
|
+
# Filters the results by archive status.
|
|
8116
|
+
# @return [String]
|
|
8117
|
+
#
|
|
8118
|
+
# @!attribute [rw] max_results
|
|
8119
|
+
# The maximum number of Agent Insight summaries to return in one
|
|
8120
|
+
# response. If you don't specify a value, the operation returns up to
|
|
8121
|
+
# 50 summaries.
|
|
8122
|
+
# @return [Integer]
|
|
8123
|
+
#
|
|
8124
|
+
# @!attribute [rw] next_token
|
|
8125
|
+
# A token to specify where to start paginating the results. This token
|
|
8126
|
+
# is returned in a previous response.
|
|
8127
|
+
# @return [String]
|
|
8128
|
+
#
|
|
8129
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/ListAgentInsightsRequest AWS API Documentation
|
|
8130
|
+
#
|
|
8131
|
+
class ListAgentInsightsRequest < Struct.new(
|
|
8132
|
+
:application_name,
|
|
8133
|
+
:batch_evaluation_id,
|
|
8134
|
+
:archive_status,
|
|
8135
|
+
:max_results,
|
|
8136
|
+
:next_token)
|
|
8137
|
+
SENSITIVE = []
|
|
8138
|
+
include Aws::Structure
|
|
8139
|
+
end
|
|
8140
|
+
|
|
8141
|
+
# @!attribute [rw] agent_insights
|
|
8142
|
+
# The Agent Insight summaries.
|
|
8143
|
+
# @return [Array<Types::AgentInsightSummary>]
|
|
8144
|
+
#
|
|
8145
|
+
# @!attribute [rw] next_token
|
|
8146
|
+
# A token to use to retrieve the next page of results. This value is
|
|
8147
|
+
# present only when additional results are available.
|
|
8148
|
+
# @return [String]
|
|
8149
|
+
#
|
|
8150
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/ListAgentInsightsResponse AWS API Documentation
|
|
8151
|
+
#
|
|
8152
|
+
class ListAgentInsightsResponse < Struct.new(
|
|
8153
|
+
:agent_insights,
|
|
8154
|
+
:next_token)
|
|
8155
|
+
SENSITIVE = []
|
|
8156
|
+
include Aws::Structure
|
|
8157
|
+
end
|
|
8158
|
+
|
|
7040
8159
|
# @!attribute [rw] max_results
|
|
7041
8160
|
# The maximum number of results to return in the response. If the
|
|
7042
8161
|
# total number of results is greater than this value, use the token
|
|
@@ -7191,6 +8310,54 @@ module Aws::BedrockAgentCore
|
|
|
7191
8310
|
include Aws::Structure
|
|
7192
8311
|
end
|
|
7193
8312
|
|
|
8313
|
+
# @!attribute [rw] dataset_id
|
|
8314
|
+
# The unique identifier of the dataset.
|
|
8315
|
+
# @return [String]
|
|
8316
|
+
#
|
|
8317
|
+
# @!attribute [rw] max_results
|
|
8318
|
+
# The maximum number of results to return in the response. The default
|
|
8319
|
+
# is 20. If the total number of results is greater than this value,
|
|
8320
|
+
# use the token returned in the response in the `nextToken` field when
|
|
8321
|
+
# making another request to return the next batch of results.
|
|
8322
|
+
# @return [Integer]
|
|
8323
|
+
#
|
|
8324
|
+
# @!attribute [rw] next_token
|
|
8325
|
+
# If the total number of results is greater than the `maxResults`
|
|
8326
|
+
# value provided in the request, enter the token returned in the
|
|
8327
|
+
# `nextToken` field in the response in this field to return the next
|
|
8328
|
+
# batch of results.
|
|
8329
|
+
# @return [String]
|
|
8330
|
+
#
|
|
8331
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/ListDatasetGenerationsRequest AWS API Documentation
|
|
8332
|
+
#
|
|
8333
|
+
class ListDatasetGenerationsRequest < Struct.new(
|
|
8334
|
+
:dataset_id,
|
|
8335
|
+
:max_results,
|
|
8336
|
+
:next_token)
|
|
8337
|
+
SENSITIVE = []
|
|
8338
|
+
include Aws::Structure
|
|
8339
|
+
end
|
|
8340
|
+
|
|
8341
|
+
# @!attribute [rw] dataset_generations
|
|
8342
|
+
# The dataset generations.
|
|
8343
|
+
# @return [Array<Types::DatasetGenerationSummary>]
|
|
8344
|
+
#
|
|
8345
|
+
# @!attribute [rw] next_token
|
|
8346
|
+
# If the total number of results is greater than the `maxResults`
|
|
8347
|
+
# value provided in the request, use this token when making another
|
|
8348
|
+
# request in the `nextToken` field to return the next batch of
|
|
8349
|
+
# results.
|
|
8350
|
+
# @return [String]
|
|
8351
|
+
#
|
|
8352
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/ListDatasetGenerationsResponse AWS API Documentation
|
|
8353
|
+
#
|
|
8354
|
+
class ListDatasetGenerationsResponse < Struct.new(
|
|
8355
|
+
:dataset_generations,
|
|
8356
|
+
:next_token)
|
|
8357
|
+
SENSITIVE = []
|
|
8358
|
+
include Aws::Structure
|
|
8359
|
+
end
|
|
8360
|
+
|
|
7194
8361
|
# @!attribute [rw] memory_id
|
|
7195
8362
|
# The identifier of the AgentCore Memory resource for which to list
|
|
7196
8363
|
# events.
|
|
@@ -8429,6 +9596,33 @@ module Aws::BedrockAgentCore
|
|
|
8429
9596
|
include Aws::Structure
|
|
8430
9597
|
end
|
|
8431
9598
|
|
|
9599
|
+
# An online evaluation source for a dataset generation.
|
|
9600
|
+
#
|
|
9601
|
+
# @!attribute [rw] online_evaluation_config_arn
|
|
9602
|
+
# The Amazon Resource Name (ARN) of the online evaluation
|
|
9603
|
+
# configuration.
|
|
9604
|
+
# @return [String]
|
|
9605
|
+
#
|
|
9606
|
+
# @!attribute [rw] start_time
|
|
9607
|
+
# The start of the time window to read sessions from. The default is 7
|
|
9608
|
+
# days before `endTime`.
|
|
9609
|
+
# @return [Time]
|
|
9610
|
+
#
|
|
9611
|
+
# @!attribute [rw] end_time
|
|
9612
|
+
# The end of the time window to read sessions from. The default is the
|
|
9613
|
+
# time the generation starts.
|
|
9614
|
+
# @return [Time]
|
|
9615
|
+
#
|
|
9616
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/OnlineEvaluationSourceConfig AWS API Documentation
|
|
9617
|
+
#
|
|
9618
|
+
class OnlineEvaluationSourceConfig < Struct.new(
|
|
9619
|
+
:online_evaluation_config_arn,
|
|
9620
|
+
:start_time,
|
|
9621
|
+
:end_time)
|
|
9622
|
+
SENSITIVE = []
|
|
9623
|
+
include Aws::Structure
|
|
9624
|
+
end
|
|
9625
|
+
|
|
8432
9626
|
# Contains the configuration for reusing agent traces from an online
|
|
8433
9627
|
# evaluation configuration for recommendation analysis. Because online
|
|
8434
9628
|
# evaluation is a continuous stream, a time range specifies which
|
|
@@ -9279,6 +10473,50 @@ module Aws::BedrockAgentCore
|
|
|
9279
10473
|
class Unknown < RecordExpirySpecification; end
|
|
9280
10474
|
end
|
|
9281
10475
|
|
|
10476
|
+
# Sensitive data to mask in generated examples. Nothing is redacted
|
|
10477
|
+
# unless you specify at least one identifier. Each character of a match
|
|
10478
|
+
# is replaced with `*`, so a masked value keeps its length. If detection
|
|
10479
|
+
# fails, the generation fails and no examples are written.
|
|
10480
|
+
#
|
|
10481
|
+
# @!attribute [rw] identifiers
|
|
10482
|
+
# The managed data identifiers to apply. These match the CloudWatch
|
|
10483
|
+
# Logs managed data identifiers.
|
|
10484
|
+
# @return [Array<String>]
|
|
10485
|
+
#
|
|
10486
|
+
# @!attribute [rw] custom_data_identifiers
|
|
10487
|
+
# Custom data identifiers to apply, up to 10. You can use custom
|
|
10488
|
+
# identifiers without any managed identifiers.
|
|
10489
|
+
# @return [Array<Types::CustomDataIdentifier>]
|
|
10490
|
+
#
|
|
10491
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/RedactionConfiguration AWS API Documentation
|
|
10492
|
+
#
|
|
10493
|
+
class RedactionConfiguration < Struct.new(
|
|
10494
|
+
:identifiers,
|
|
10495
|
+
:custom_data_identifiers)
|
|
10496
|
+
SENSITIVE = []
|
|
10497
|
+
include Aws::Structure
|
|
10498
|
+
end
|
|
10499
|
+
|
|
10500
|
+
# A summary of what redaction found in a dataset generation. It contains
|
|
10501
|
+
# counts only, never the masked data.
|
|
10502
|
+
#
|
|
10503
|
+
# @!attribute [rw] scenarios_scanned
|
|
10504
|
+
# The number of scenarios scanned for sensitive data.
|
|
10505
|
+
# @return [Integer]
|
|
10506
|
+
#
|
|
10507
|
+
# @!attribute [rw] finding_counts
|
|
10508
|
+
# The number of matches for each data identifier.
|
|
10509
|
+
# @return [Hash<String,Integer>]
|
|
10510
|
+
#
|
|
10511
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/RedactionSummary AWS API Documentation
|
|
10512
|
+
#
|
|
10513
|
+
class RedactionSummary < Struct.new(
|
|
10514
|
+
:scenarios_scanned,
|
|
10515
|
+
:finding_counts)
|
|
10516
|
+
SENSITIVE = []
|
|
10517
|
+
include Aws::Structure
|
|
10518
|
+
end
|
|
10519
|
+
|
|
9282
10520
|
# Summary information about a registry record.
|
|
9283
10521
|
#
|
|
9284
10522
|
# @!attribute [rw] registry_arn
|
|
@@ -10263,6 +11501,18 @@ module Aws::BedrockAgentCore
|
|
|
10263
11501
|
# Output destination configuration.
|
|
10264
11502
|
# @return [Types::OutputConfig]
|
|
10265
11503
|
#
|
|
11504
|
+
# @!attribute [rw] dataset_execution_config
|
|
11505
|
+
# The configuration for running the scenarios in a dataset against an
|
|
11506
|
+
# agent before evaluating the resulting sessions. When you specify
|
|
11507
|
+
# this field, the batch evaluation runs each scenario in the dataset
|
|
11508
|
+
# against the agent. It then evaluates the sessions that the agent
|
|
11509
|
+
# produces. You must also specify `evaluators` and a
|
|
11510
|
+
# `dataSourceConfig` that uses `cloudWatchLogs`. Configure
|
|
11511
|
+
# `cloudWatchLogs` with the service name and log groups that the agent
|
|
11512
|
+
# uses for its traces. You can't specify `insights` or an
|
|
11513
|
+
# `onlineEvaluationConfigSource` data source with this field.
|
|
11514
|
+
# @return [Types::DatasetExecutionConfig]
|
|
11515
|
+
#
|
|
10266
11516
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/StartBatchEvaluationRequest AWS API Documentation
|
|
10267
11517
|
#
|
|
10268
11518
|
class StartBatchEvaluationRequest < Struct.new(
|
|
@@ -10275,7 +11525,8 @@ module Aws::BedrockAgentCore
|
|
|
10275
11525
|
:tags,
|
|
10276
11526
|
:kms_key_arn,
|
|
10277
11527
|
:description,
|
|
10278
|
-
:output_config
|
|
11528
|
+
:output_config,
|
|
11529
|
+
:dataset_execution_config)
|
|
10279
11530
|
SENSITIVE = []
|
|
10280
11531
|
include Aws::Structure
|
|
10281
11532
|
end
|
|
@@ -10561,6 +11812,85 @@ module Aws::BedrockAgentCore
|
|
|
10561
11812
|
include Aws::Structure
|
|
10562
11813
|
end
|
|
10563
11814
|
|
|
11815
|
+
# @!attribute [rw] dataset_id
|
|
11816
|
+
# The unique identifier of the dataset to add the generated examples
|
|
11817
|
+
# to. The dataset must be `ACTIVE`.
|
|
11818
|
+
# @return [String]
|
|
11819
|
+
#
|
|
11820
|
+
# @!attribute [rw] name
|
|
11821
|
+
# The name of the dataset generation. The generation ID starts with
|
|
11822
|
+
# this name.
|
|
11823
|
+
# @return [String]
|
|
11824
|
+
#
|
|
11825
|
+
# @!attribute [rw] description
|
|
11826
|
+
# A description of the dataset generation.
|
|
11827
|
+
# @return [String]
|
|
11828
|
+
#
|
|
11829
|
+
# @!attribute [rw] scenario_type
|
|
11830
|
+
# The type of scenario to generate. If you don't specify a value, the
|
|
11831
|
+
# generation produces `DYNAMIC` scenarios.
|
|
11832
|
+
# @return [String]
|
|
11833
|
+
#
|
|
11834
|
+
# @!attribute [rw] source
|
|
11835
|
+
# Where the generation reads sessions from, and how it selects,
|
|
11836
|
+
# samples, labels and redacts them.
|
|
11837
|
+
# @return [Types::GenerationSource]
|
|
11838
|
+
#
|
|
11839
|
+
# @!attribute [rw] client_token
|
|
11840
|
+
# A unique, case-sensitive identifier to ensure that the API request
|
|
11841
|
+
# completes no more than one time. If this token matches a previous
|
|
11842
|
+
# request, the service ignores the request, but does not return an
|
|
11843
|
+
# error.
|
|
11844
|
+
#
|
|
11845
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
11846
|
+
# not need to pass this option.
|
|
11847
|
+
# @return [String]
|
|
11848
|
+
#
|
|
11849
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/StartDatasetGenerationRequest AWS API Documentation
|
|
11850
|
+
#
|
|
11851
|
+
class StartDatasetGenerationRequest < Struct.new(
|
|
11852
|
+
:dataset_id,
|
|
11853
|
+
:name,
|
|
11854
|
+
:description,
|
|
11855
|
+
:scenario_type,
|
|
11856
|
+
:source,
|
|
11857
|
+
:client_token)
|
|
11858
|
+
SENSITIVE = []
|
|
11859
|
+
include Aws::Structure
|
|
11860
|
+
end
|
|
11861
|
+
|
|
11862
|
+
# @!attribute [rw] generation_id
|
|
11863
|
+
# The unique identifier of the dataset generation.
|
|
11864
|
+
# @return [String]
|
|
11865
|
+
#
|
|
11866
|
+
# @!attribute [rw] name
|
|
11867
|
+
# The name of the dataset generation.
|
|
11868
|
+
# @return [String]
|
|
11869
|
+
#
|
|
11870
|
+
# @!attribute [rw] dataset_id
|
|
11871
|
+
# The unique identifier of the dataset.
|
|
11872
|
+
# @return [String]
|
|
11873
|
+
#
|
|
11874
|
+
# @!attribute [rw] status
|
|
11875
|
+
# The status of the dataset generation.
|
|
11876
|
+
# @return [String]
|
|
11877
|
+
#
|
|
11878
|
+
# @!attribute [rw] created_at
|
|
11879
|
+
# The time at which the dataset generation started.
|
|
11880
|
+
# @return [Time]
|
|
11881
|
+
#
|
|
11882
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/StartDatasetGenerationResponse AWS API Documentation
|
|
11883
|
+
#
|
|
11884
|
+
class StartDatasetGenerationResponse < Struct.new(
|
|
11885
|
+
:generation_id,
|
|
11886
|
+
:name,
|
|
11887
|
+
:dataset_id,
|
|
11888
|
+
:status,
|
|
11889
|
+
:created_at)
|
|
11890
|
+
SENSITIVE = []
|
|
11891
|
+
include Aws::Structure
|
|
11892
|
+
end
|
|
11893
|
+
|
|
10564
11894
|
# @!attribute [rw] memory_id
|
|
10565
11895
|
# The unique identifier of the memory for which to start extraction
|
|
10566
11896
|
# jobs.
|
|
@@ -11613,6 +12943,142 @@ module Aws::BedrockAgentCore
|
|
|
11613
12943
|
class Unknown < ToolsFileSystemConfiguration; end
|
|
11614
12944
|
end
|
|
11615
12945
|
|
|
12946
|
+
# The trace source a dataset generation was started with.
|
|
12947
|
+
#
|
|
12948
|
+
# @!attribute [rw] source_config
|
|
12949
|
+
# Where the generation reads sessions from, including the resolved
|
|
12950
|
+
# time window.
|
|
12951
|
+
# @return [Types::TraceSourceConfig]
|
|
12952
|
+
#
|
|
12953
|
+
# @!attribute [rw] selection
|
|
12954
|
+
# How the generation chooses sessions. Filters are returned as
|
|
12955
|
+
# submitted, with the resolved maximum turn count. Session and trace
|
|
12956
|
+
# IDs are returned as counts. If this is absent, the request had no
|
|
12957
|
+
# selection.
|
|
12958
|
+
# @return [Types::GenerationSelectionRecord]
|
|
12959
|
+
#
|
|
12960
|
+
# @!attribute [rw] sampling
|
|
12961
|
+
# How many scenarios the generation produces.
|
|
12962
|
+
# @return [Types::GenerationSamplingConfig]
|
|
12963
|
+
#
|
|
12964
|
+
# @!attribute [rw] ground_truth
|
|
12965
|
+
# The reference fields the generation copies into the examples. If the
|
|
12966
|
+
# request didn't specify quality filters, the filters the generation
|
|
12967
|
+
# applies are returned here.
|
|
12968
|
+
# @return [Types::GroundTruthConfig]
|
|
12969
|
+
#
|
|
12970
|
+
# @!attribute [rw] redaction_configuration
|
|
12971
|
+
# The sensitive data the generation masks in the examples.
|
|
12972
|
+
# @return [Types::RedactionConfiguration]
|
|
12973
|
+
#
|
|
12974
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/TraceGenerationRecord AWS API Documentation
|
|
12975
|
+
#
|
|
12976
|
+
class TraceGenerationRecord < Struct.new(
|
|
12977
|
+
:source_config,
|
|
12978
|
+
:selection,
|
|
12979
|
+
:sampling,
|
|
12980
|
+
:ground_truth,
|
|
12981
|
+
:redaction_configuration)
|
|
12982
|
+
SENSITIVE = []
|
|
12983
|
+
include Aws::Structure
|
|
12984
|
+
end
|
|
12985
|
+
|
|
12986
|
+
# Settings for generating examples from your agent's traces.
|
|
12987
|
+
#
|
|
12988
|
+
# @!attribute [rw] source_config
|
|
12989
|
+
# Where to read the sessions from.
|
|
12990
|
+
# @return [Types::TraceSourceConfig]
|
|
12991
|
+
#
|
|
12992
|
+
# @!attribute [rw] selection
|
|
12993
|
+
# How to choose sessions from the source. If you don't specify a
|
|
12994
|
+
# selection, the generation uses every session in the source and time
|
|
12995
|
+
# window that has at most 100 turns.
|
|
12996
|
+
# @return [Types::GenerationSelection]
|
|
12997
|
+
#
|
|
12998
|
+
# @!attribute [rw] sampling
|
|
12999
|
+
# How many scenarios to generate from the selected sessions.
|
|
13000
|
+
# @return [Types::GenerationSamplingConfig]
|
|
13001
|
+
#
|
|
13002
|
+
# @!attribute [rw] ground_truth
|
|
13003
|
+
# Reference fields to copy from the sessions into the examples. If you
|
|
13004
|
+
# don't specify this, the examples have no reference fields.
|
|
13005
|
+
# @return [Types::GroundTruthConfig]
|
|
13006
|
+
#
|
|
13007
|
+
# @!attribute [rw] redaction_configuration
|
|
13008
|
+
# Sensitive data to mask in the examples. If you don't specify this,
|
|
13009
|
+
# nothing is redacted.
|
|
13010
|
+
# @return [Types::RedactionConfiguration]
|
|
13011
|
+
#
|
|
13012
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/TraceGenerationSource AWS API Documentation
|
|
13013
|
+
#
|
|
13014
|
+
class TraceGenerationSource < Struct.new(
|
|
13015
|
+
:source_config,
|
|
13016
|
+
:selection,
|
|
13017
|
+
:sampling,
|
|
13018
|
+
:ground_truth,
|
|
13019
|
+
:redaction_configuration)
|
|
13020
|
+
SENSITIVE = []
|
|
13021
|
+
include Aws::Structure
|
|
13022
|
+
end
|
|
13023
|
+
|
|
13024
|
+
# Where a dataset generation reads sessions from. Specify exactly one
|
|
13025
|
+
# source.
|
|
13026
|
+
#
|
|
13027
|
+
# @note TraceSourceConfig is a union - when making an API calls you must set exactly one of the members.
|
|
13028
|
+
#
|
|
13029
|
+
# @note TraceSourceConfig is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of TraceSourceConfig corresponding to the set member.
|
|
13030
|
+
#
|
|
13031
|
+
# @!attribute [rw] cloud_watch_logs
|
|
13032
|
+
# Reads sessions from CloudWatch Logs log groups.
|
|
13033
|
+
# @return [Types::CloudWatchLogsSourceConfig]
|
|
13034
|
+
#
|
|
13035
|
+
# @!attribute [rw] online_evaluation
|
|
13036
|
+
# Reads sessions, with their evaluation results, from an online
|
|
13037
|
+
# evaluation configuration.
|
|
13038
|
+
# @return [Types::OnlineEvaluationSourceConfig]
|
|
13039
|
+
#
|
|
13040
|
+
# @!attribute [rw] batch_evaluation
|
|
13041
|
+
# Reads sessions, with their evaluation results, from a batch
|
|
13042
|
+
# evaluation.
|
|
13043
|
+
# @return [Types::BatchEvaluationSourceConfig]
|
|
13044
|
+
#
|
|
13045
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/TraceSourceConfig AWS API Documentation
|
|
13046
|
+
#
|
|
13047
|
+
class TraceSourceConfig < Struct.new(
|
|
13048
|
+
:cloud_watch_logs,
|
|
13049
|
+
:online_evaluation,
|
|
13050
|
+
:batch_evaluation,
|
|
13051
|
+
:unknown)
|
|
13052
|
+
SENSITIVE = []
|
|
13053
|
+
include Aws::Structure
|
|
13054
|
+
include Aws::Structure::Union
|
|
13055
|
+
|
|
13056
|
+
class CloudWatchLogs < TraceSourceConfig; end
|
|
13057
|
+
class OnlineEvaluation < TraceSourceConfig; end
|
|
13058
|
+
class BatchEvaluation < TraceSourceConfig; end
|
|
13059
|
+
class Unknown < TraceSourceConfig; end
|
|
13060
|
+
end
|
|
13061
|
+
|
|
13062
|
+
# A range of turn counts. Each bound is from 1 to 100, and `min` can't
|
|
13063
|
+
# be greater than `max`.
|
|
13064
|
+
#
|
|
13065
|
+
# @!attribute [rw] min
|
|
13066
|
+
# The minimum number of turns.
|
|
13067
|
+
# @return [Integer]
|
|
13068
|
+
#
|
|
13069
|
+
# @!attribute [rw] max
|
|
13070
|
+
# The maximum number of turns. The default is 100.
|
|
13071
|
+
# @return [Integer]
|
|
13072
|
+
#
|
|
13073
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/TurnCountRange AWS API Documentation
|
|
13074
|
+
#
|
|
13075
|
+
class TurnCountRange < Struct.new(
|
|
13076
|
+
:min,
|
|
13077
|
+
:max)
|
|
13078
|
+
SENSITIVE = []
|
|
13079
|
+
include Aws::Structure
|
|
13080
|
+
end
|
|
13081
|
+
|
|
11616
13082
|
# This exception is thrown when the JWT bearer token is invalid or not
|
|
11617
13083
|
# found for OAuth bearer token based access
|
|
11618
13084
|
#
|
|
@@ -11723,6 +13189,58 @@ module Aws::BedrockAgentCore
|
|
|
11723
13189
|
include Aws::Structure
|
|
11724
13190
|
end
|
|
11725
13191
|
|
|
13192
|
+
# @!attribute [rw] application_name
|
|
13193
|
+
# The application that the Agent Insight belongs to.
|
|
13194
|
+
# @return [String]
|
|
13195
|
+
#
|
|
13196
|
+
# @!attribute [rw] agent_insight_id
|
|
13197
|
+
# The unique identifier of the Agent Insight to update.
|
|
13198
|
+
# @return [String]
|
|
13199
|
+
#
|
|
13200
|
+
# @!attribute [rw] archive_status
|
|
13201
|
+
# The archive status to apply to the Agent Insight. Valid values:
|
|
13202
|
+
#
|
|
13203
|
+
# * `ACTIVE` - Marks the insight as active.
|
|
13204
|
+
#
|
|
13205
|
+
# * `ARCHIVED` - Marks the insight as archived.
|
|
13206
|
+
# @return [String]
|
|
13207
|
+
#
|
|
13208
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/UpdateAgentInsightRequest AWS API Documentation
|
|
13209
|
+
#
|
|
13210
|
+
class UpdateAgentInsightRequest < Struct.new(
|
|
13211
|
+
:application_name,
|
|
13212
|
+
:agent_insight_id,
|
|
13213
|
+
:archive_status)
|
|
13214
|
+
SENSITIVE = []
|
|
13215
|
+
include Aws::Structure
|
|
13216
|
+
end
|
|
13217
|
+
|
|
13218
|
+
# @!attribute [rw] agent_insight_id
|
|
13219
|
+
# The unique identifier of the updated Agent Insight.
|
|
13220
|
+
# @return [String]
|
|
13221
|
+
#
|
|
13222
|
+
# @!attribute [rw] archive_status
|
|
13223
|
+
# The archive status of the updated Agent Insight. Valid values:
|
|
13224
|
+
#
|
|
13225
|
+
# * `ACTIVE` - The insight is active.
|
|
13226
|
+
#
|
|
13227
|
+
# * `ARCHIVED` - The insight is archived.
|
|
13228
|
+
# @return [String]
|
|
13229
|
+
#
|
|
13230
|
+
# @!attribute [rw] updated_at
|
|
13231
|
+
# The date and time when the Agent Insight was updated.
|
|
13232
|
+
# @return [Time]
|
|
13233
|
+
#
|
|
13234
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/UpdateAgentInsightResponse AWS API Documentation
|
|
13235
|
+
#
|
|
13236
|
+
class UpdateAgentInsightResponse < Struct.new(
|
|
13237
|
+
:agent_insight_id,
|
|
13238
|
+
:archive_status,
|
|
13239
|
+
:updated_at)
|
|
13240
|
+
SENSITIVE = []
|
|
13241
|
+
include Aws::Structure
|
|
13242
|
+
end
|
|
13243
|
+
|
|
11726
13244
|
# @!attribute [rw] browser_identifier
|
|
11727
13245
|
# The identifier of the browser.
|
|
11728
13246
|
# @return [String]
|