aws-sdk-bedrockagentcore 1.27.0 → 1.29.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockagentcore/client.rb +435 -5
- data/lib/aws-sdk-bedrockagentcore/client_api.rb +389 -2
- data/lib/aws-sdk-bedrockagentcore/event_streams.rb +74 -0
- data/lib/aws-sdk-bedrockagentcore/types.rb +1075 -0
- data/lib/aws-sdk-bedrockagentcore.rb +1 -1
- data/sig/client.rbs +129 -2
- data/sig/types.rbs +394 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 159fdffdd979692a8a4d60f6a5e6864d0fc55b38ff12ef6bb4cecb87f5872ce6
|
|
4
|
+
data.tar.gz: 37dddbc2407feb994ad730bc34807fbe01257202ac6eb2d5f90efc5b71461996
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6821d2a42fbc85d9170a5d9bfd264329cbed54858e3ed056a305d9a0eec8caa5f03add9d452944b7141630579c75eba6f7c19e9ba9989596ef655ae63f5a186f
|
|
7
|
+
data.tar.gz: 6566e39c87bc3aa7a1383e31366607244607696b8f7304032335a0d68ff1ef6df2fc502b8df5828e48577313cbc6477b6254c83dc710a5d034a7a4d3b8bb642a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.29.0 (2026-04-22)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Adds support for Amazon Bedrock AgentCore Harness data plane APIs, enabling customers to invoke managed agent loops and execute commands on live agent sessions with streaming responses.
|
|
8
|
+
|
|
9
|
+
1.28.0 (2026-04-16)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - Introducing NamespacePath in AgentCore Memory to support hierarchical prefix based memory record retrieval.
|
|
13
|
+
|
|
4
14
|
1.27.0 (2026-04-09)
|
|
5
15
|
------------------
|
|
6
16
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.29.0
|
|
@@ -2394,6 +2394,426 @@ module Aws::BedrockAgentCore
|
|
|
2394
2394
|
req.send_request(options, &block)
|
|
2395
2395
|
end
|
|
2396
2396
|
|
|
2397
|
+
# Operation to invoke a Harness.
|
|
2398
|
+
#
|
|
2399
|
+
# @option params [required, String] :harness_arn
|
|
2400
|
+
# The ARN of the harness to invoke.
|
|
2401
|
+
#
|
|
2402
|
+
# @option params [required, String] :runtime_session_id
|
|
2403
|
+
# The session ID for the invocation. Use the same session ID across
|
|
2404
|
+
# requests to continue a conversation.
|
|
2405
|
+
#
|
|
2406
|
+
# @option params [required, Array<Types::HarnessMessage>] :messages
|
|
2407
|
+
# The messages to send to the agent.
|
|
2408
|
+
#
|
|
2409
|
+
# @option params [Types::HarnessModelConfiguration] :model
|
|
2410
|
+
# The model configuration to use for this invocation. If specified,
|
|
2411
|
+
# overrides the harness default.
|
|
2412
|
+
#
|
|
2413
|
+
# @option params [Array<Types::HarnessSystemContentBlock>] :system_prompt
|
|
2414
|
+
# The system prompt to use for this invocation. If specified, overrides
|
|
2415
|
+
# the harness default.
|
|
2416
|
+
#
|
|
2417
|
+
# @option params [Array<Types::HarnessTool>] :tools
|
|
2418
|
+
# The tools available to the agent for this invocation. If specified,
|
|
2419
|
+
# overrides the harness default.
|
|
2420
|
+
#
|
|
2421
|
+
# @option params [Array<Types::HarnessSkill>] :skills
|
|
2422
|
+
# The skills available to the agent for this invocation. If specified,
|
|
2423
|
+
# overrides the harness default.
|
|
2424
|
+
#
|
|
2425
|
+
# @option params [Array<String>] :allowed_tools
|
|
2426
|
+
# The tools that the agent is allowed to use for this invocation. If
|
|
2427
|
+
# specified, overrides the harness default.
|
|
2428
|
+
#
|
|
2429
|
+
# @option params [Integer] :max_iterations
|
|
2430
|
+
# The maximum number of iterations the agent loop can execute. If
|
|
2431
|
+
# specified, overrides the harness default.
|
|
2432
|
+
#
|
|
2433
|
+
# @option params [Integer] :max_tokens
|
|
2434
|
+
# The maximum number of tokens the agent can generate per iteration. If
|
|
2435
|
+
# specified, overrides the harness default.
|
|
2436
|
+
#
|
|
2437
|
+
# @option params [Integer] :timeout_seconds
|
|
2438
|
+
# The maximum duration in seconds for the agent loop execution. If
|
|
2439
|
+
# specified, overrides the harness default.
|
|
2440
|
+
#
|
|
2441
|
+
# @option params [String] :actor_id
|
|
2442
|
+
# The actor ID for memory operations. Overrides the actor ID configured
|
|
2443
|
+
# on the harness.
|
|
2444
|
+
#
|
|
2445
|
+
# @return [Types::InvokeHarnessResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2446
|
+
#
|
|
2447
|
+
# * {Types::InvokeHarnessResponse#stream #stream} => Types::InvokeHarnessStreamOutput
|
|
2448
|
+
#
|
|
2449
|
+
# @example EventStream Operation Example
|
|
2450
|
+
#
|
|
2451
|
+
# # You can process the event once it arrives immediately, or wait until the
|
|
2452
|
+
# # full response is complete and iterate through the eventstream enumerator.
|
|
2453
|
+
#
|
|
2454
|
+
# # To interact with event immediately, you need to register invoke_harness
|
|
2455
|
+
# # with callbacks. Callbacks can be registered for specific events or for all
|
|
2456
|
+
# # events, including error events.
|
|
2457
|
+
#
|
|
2458
|
+
# # Callbacks can be passed into the `:event_stream_handler` option or within a
|
|
2459
|
+
# # block statement attached to the #invoke_harness call directly. Hybrid
|
|
2460
|
+
# # pattern of both is also supported.
|
|
2461
|
+
#
|
|
2462
|
+
# # `:event_stream_handler` option takes in either a Proc object or
|
|
2463
|
+
# # Aws::BedrockAgentCore::EventStreams::InvokeHarnessStreamOutput object.
|
|
2464
|
+
#
|
|
2465
|
+
# # Usage pattern a): Callbacks with a block attached to #invoke_harness
|
|
2466
|
+
# # Example for registering callbacks for all event types and an error event
|
|
2467
|
+
# client.invoke_harness(
|
|
2468
|
+
# # params input
|
|
2469
|
+
# ) do |stream|
|
|
2470
|
+
# stream.on_error_event do |event|
|
|
2471
|
+
# # catch unmodeled error event in the stream
|
|
2472
|
+
# raise event
|
|
2473
|
+
# # => Aws::Errors::EventError
|
|
2474
|
+
# # event.event_type => :error
|
|
2475
|
+
# # event.error_code => String
|
|
2476
|
+
# # event.error_message => String
|
|
2477
|
+
# end
|
|
2478
|
+
#
|
|
2479
|
+
# stream.on_event do |event|
|
|
2480
|
+
# # process all events arrive
|
|
2481
|
+
# puts event.event_type
|
|
2482
|
+
# # ...
|
|
2483
|
+
# end
|
|
2484
|
+
# end
|
|
2485
|
+
#
|
|
2486
|
+
# # Usage pattern b): Pass in `:event_stream_handler` for #invoke_harness
|
|
2487
|
+
# # 1) Create a Aws::BedrockAgentCore::EventStreams::InvokeHarnessStreamOutput object
|
|
2488
|
+
# # Example for registering callbacks with specific events
|
|
2489
|
+
#
|
|
2490
|
+
# handler = Aws::BedrockAgentCore::EventStreams::InvokeHarnessStreamOutput.new
|
|
2491
|
+
# handler.on_message_start_event do |event|
|
|
2492
|
+
# event # => Aws::BedrockAgentCore::Types::messageStart
|
|
2493
|
+
# end
|
|
2494
|
+
# handler.on_content_block_start_event do |event|
|
|
2495
|
+
# event # => Aws::BedrockAgentCore::Types::contentBlockStart
|
|
2496
|
+
# end
|
|
2497
|
+
# handler.on_content_block_delta_event do |event|
|
|
2498
|
+
# event # => Aws::BedrockAgentCore::Types::contentBlockDelta
|
|
2499
|
+
# end
|
|
2500
|
+
# handler.on_content_block_stop_event do |event|
|
|
2501
|
+
# event # => Aws::BedrockAgentCore::Types::contentBlockStop
|
|
2502
|
+
# end
|
|
2503
|
+
# handler.on_message_stop_event do |event|
|
|
2504
|
+
# event # => Aws::BedrockAgentCore::Types::messageStop
|
|
2505
|
+
# end
|
|
2506
|
+
# handler.on_metadata_event do |event|
|
|
2507
|
+
# event # => Aws::BedrockAgentCore::Types::metadata
|
|
2508
|
+
# end
|
|
2509
|
+
# handler.on_internal_server_exception_event do |event|
|
|
2510
|
+
# event # => Aws::BedrockAgentCore::Types::internalServerException
|
|
2511
|
+
# end
|
|
2512
|
+
# handler.on_validation_exception_event do |event|
|
|
2513
|
+
# event # => Aws::BedrockAgentCore::Types::validationException
|
|
2514
|
+
# end
|
|
2515
|
+
# handler.on_runtime_client_error_event do |event|
|
|
2516
|
+
# event # => Aws::BedrockAgentCore::Types::runtimeClientError
|
|
2517
|
+
# end
|
|
2518
|
+
#
|
|
2519
|
+
# client.invoke_harness(
|
|
2520
|
+
# # params inputs
|
|
2521
|
+
# event_stream_handler: handler
|
|
2522
|
+
# )
|
|
2523
|
+
#
|
|
2524
|
+
# # 2) Use a Ruby Proc object
|
|
2525
|
+
# # Example for registering callbacks with specific events
|
|
2526
|
+
# handler = Proc.new do |stream|
|
|
2527
|
+
# stream.on_message_start_event do |event|
|
|
2528
|
+
# event # => Aws::BedrockAgentCore::Types::messageStart
|
|
2529
|
+
# end
|
|
2530
|
+
# stream.on_content_block_start_event do |event|
|
|
2531
|
+
# event # => Aws::BedrockAgentCore::Types::contentBlockStart
|
|
2532
|
+
# end
|
|
2533
|
+
# stream.on_content_block_delta_event do |event|
|
|
2534
|
+
# event # => Aws::BedrockAgentCore::Types::contentBlockDelta
|
|
2535
|
+
# end
|
|
2536
|
+
# stream.on_content_block_stop_event do |event|
|
|
2537
|
+
# event # => Aws::BedrockAgentCore::Types::contentBlockStop
|
|
2538
|
+
# end
|
|
2539
|
+
# stream.on_message_stop_event do |event|
|
|
2540
|
+
# event # => Aws::BedrockAgentCore::Types::messageStop
|
|
2541
|
+
# end
|
|
2542
|
+
# stream.on_metadata_event do |event|
|
|
2543
|
+
# event # => Aws::BedrockAgentCore::Types::metadata
|
|
2544
|
+
# end
|
|
2545
|
+
# stream.on_internal_server_exception_event do |event|
|
|
2546
|
+
# event # => Aws::BedrockAgentCore::Types::internalServerException
|
|
2547
|
+
# end
|
|
2548
|
+
# stream.on_validation_exception_event do |event|
|
|
2549
|
+
# event # => Aws::BedrockAgentCore::Types::validationException
|
|
2550
|
+
# end
|
|
2551
|
+
# stream.on_runtime_client_error_event do |event|
|
|
2552
|
+
# event # => Aws::BedrockAgentCore::Types::runtimeClientError
|
|
2553
|
+
# end
|
|
2554
|
+
# end
|
|
2555
|
+
#
|
|
2556
|
+
# client.invoke_harness(
|
|
2557
|
+
# # params inputs
|
|
2558
|
+
# event_stream_handler: handler
|
|
2559
|
+
# )
|
|
2560
|
+
#
|
|
2561
|
+
# # Usage pattern c): Hybrid pattern of a) and b)
|
|
2562
|
+
# handler = Aws::BedrockAgentCore::EventStreams::InvokeHarnessStreamOutput.new
|
|
2563
|
+
# handler.on_message_start_event do |event|
|
|
2564
|
+
# event # => Aws::BedrockAgentCore::Types::messageStart
|
|
2565
|
+
# end
|
|
2566
|
+
# handler.on_content_block_start_event do |event|
|
|
2567
|
+
# event # => Aws::BedrockAgentCore::Types::contentBlockStart
|
|
2568
|
+
# end
|
|
2569
|
+
# handler.on_content_block_delta_event do |event|
|
|
2570
|
+
# event # => Aws::BedrockAgentCore::Types::contentBlockDelta
|
|
2571
|
+
# end
|
|
2572
|
+
# handler.on_content_block_stop_event do |event|
|
|
2573
|
+
# event # => Aws::BedrockAgentCore::Types::contentBlockStop
|
|
2574
|
+
# end
|
|
2575
|
+
# handler.on_message_stop_event do |event|
|
|
2576
|
+
# event # => Aws::BedrockAgentCore::Types::messageStop
|
|
2577
|
+
# end
|
|
2578
|
+
# handler.on_metadata_event do |event|
|
|
2579
|
+
# event # => Aws::BedrockAgentCore::Types::metadata
|
|
2580
|
+
# end
|
|
2581
|
+
# handler.on_internal_server_exception_event do |event|
|
|
2582
|
+
# event # => Aws::BedrockAgentCore::Types::internalServerException
|
|
2583
|
+
# end
|
|
2584
|
+
# handler.on_validation_exception_event do |event|
|
|
2585
|
+
# event # => Aws::BedrockAgentCore::Types::validationException
|
|
2586
|
+
# end
|
|
2587
|
+
# handler.on_runtime_client_error_event do |event|
|
|
2588
|
+
# event # => Aws::BedrockAgentCore::Types::runtimeClientError
|
|
2589
|
+
# end
|
|
2590
|
+
#
|
|
2591
|
+
# client.invoke_harness(
|
|
2592
|
+
# # params input
|
|
2593
|
+
# event_stream_handler: handler
|
|
2594
|
+
# ) do |stream|
|
|
2595
|
+
# stream.on_error_event do |event|
|
|
2596
|
+
# # catch unmodeled error event in the stream
|
|
2597
|
+
# raise event
|
|
2598
|
+
# # => Aws::Errors::EventError
|
|
2599
|
+
# # event.event_type => :error
|
|
2600
|
+
# # event.error_code => String
|
|
2601
|
+
# # event.error_message => String
|
|
2602
|
+
# end
|
|
2603
|
+
# end
|
|
2604
|
+
#
|
|
2605
|
+
# # You can also iterate through events after the response complete.
|
|
2606
|
+
# # Events are available at
|
|
2607
|
+
# resp.stream # => Enumerator
|
|
2608
|
+
# # For parameter input example, please refer to following request syntax.
|
|
2609
|
+
#
|
|
2610
|
+
# @example Request syntax with placeholder values
|
|
2611
|
+
#
|
|
2612
|
+
# resp = client.invoke_harness({
|
|
2613
|
+
# harness_arn: "HarnessArn", # required
|
|
2614
|
+
# runtime_session_id: "SessionId", # required
|
|
2615
|
+
# messages: [ # required
|
|
2616
|
+
# {
|
|
2617
|
+
# role: "user", # required, accepts user, assistant
|
|
2618
|
+
# content: [ # required
|
|
2619
|
+
# {
|
|
2620
|
+
# text: "SensitiveText",
|
|
2621
|
+
# tool_use: {
|
|
2622
|
+
# name: "HarnessToolName", # required
|
|
2623
|
+
# tool_use_id: "HarnessToolUseId", # required
|
|
2624
|
+
# input: { # required
|
|
2625
|
+
# },
|
|
2626
|
+
# type: "tool_use", # accepts tool_use, server_tool_use, mcp_tool_use
|
|
2627
|
+
# server_name: "String",
|
|
2628
|
+
# },
|
|
2629
|
+
# tool_result: {
|
|
2630
|
+
# tool_use_id: "HarnessToolUseId", # required
|
|
2631
|
+
# content: [ # required
|
|
2632
|
+
# {
|
|
2633
|
+
# text: "SensitiveText",
|
|
2634
|
+
# json: {
|
|
2635
|
+
# },
|
|
2636
|
+
# },
|
|
2637
|
+
# ],
|
|
2638
|
+
# status: "success", # accepts success, error
|
|
2639
|
+
# type: "tool_use", # accepts tool_use, server_tool_use, mcp_tool_use
|
|
2640
|
+
# },
|
|
2641
|
+
# reasoning_content: {
|
|
2642
|
+
# reasoning_text: {
|
|
2643
|
+
# text: "String", # required
|
|
2644
|
+
# signature: "String",
|
|
2645
|
+
# },
|
|
2646
|
+
# redacted_content: "data",
|
|
2647
|
+
# },
|
|
2648
|
+
# },
|
|
2649
|
+
# ],
|
|
2650
|
+
# },
|
|
2651
|
+
# ],
|
|
2652
|
+
# model: {
|
|
2653
|
+
# bedrock_model_config: {
|
|
2654
|
+
# model_id: "ModelId", # required
|
|
2655
|
+
# max_tokens: 1,
|
|
2656
|
+
# temperature: 1.0,
|
|
2657
|
+
# top_p: 1.0,
|
|
2658
|
+
# },
|
|
2659
|
+
# open_ai_model_config: {
|
|
2660
|
+
# model_id: "ModelId", # required
|
|
2661
|
+
# api_key_arn: "ApiKeyArn", # required
|
|
2662
|
+
# max_tokens: 1,
|
|
2663
|
+
# temperature: 1.0,
|
|
2664
|
+
# top_p: 1.0,
|
|
2665
|
+
# },
|
|
2666
|
+
# gemini_model_config: {
|
|
2667
|
+
# model_id: "ModelId", # required
|
|
2668
|
+
# api_key_arn: "ApiKeyArn", # required
|
|
2669
|
+
# max_tokens: 1,
|
|
2670
|
+
# temperature: 1.0,
|
|
2671
|
+
# top_p: 1.0,
|
|
2672
|
+
# top_k: 1,
|
|
2673
|
+
# },
|
|
2674
|
+
# },
|
|
2675
|
+
# system_prompt: [
|
|
2676
|
+
# {
|
|
2677
|
+
# text: "SensitiveText",
|
|
2678
|
+
# },
|
|
2679
|
+
# ],
|
|
2680
|
+
# tools: [
|
|
2681
|
+
# {
|
|
2682
|
+
# type: "remote_mcp", # required, accepts remote_mcp, agentcore_browser, agentcore_gateway, inline_function, agentcore_code_interpreter
|
|
2683
|
+
# name: "HarnessToolName",
|
|
2684
|
+
# config: {
|
|
2685
|
+
# remote_mcp: {
|
|
2686
|
+
# url: "HarnessRemoteMcpUrl", # required
|
|
2687
|
+
# headers: {
|
|
2688
|
+
# "HttpHeaderKey" => "HttpHeaderValue",
|
|
2689
|
+
# },
|
|
2690
|
+
# },
|
|
2691
|
+
# agent_core_browser: {
|
|
2692
|
+
# browser_arn: "BrowserArn",
|
|
2693
|
+
# },
|
|
2694
|
+
# agent_core_gateway: {
|
|
2695
|
+
# gateway_arn: "GatewayArn", # required
|
|
2696
|
+
# outbound_auth: {
|
|
2697
|
+
# aws_iam: {
|
|
2698
|
+
# },
|
|
2699
|
+
# none: {
|
|
2700
|
+
# },
|
|
2701
|
+
# oauth: {
|
|
2702
|
+
# provider_arn: "OAuthCredentialProviderArn", # required
|
|
2703
|
+
# scopes: ["OAuthScope"], # required
|
|
2704
|
+
# custom_parameters: {
|
|
2705
|
+
# "OAuthCustomParametersKey" => "OAuthCustomParametersValue",
|
|
2706
|
+
# },
|
|
2707
|
+
# grant_type: "CLIENT_CREDENTIALS", # accepts CLIENT_CREDENTIALS, AUTHORIZATION_CODE
|
|
2708
|
+
# default_return_url: "OAuthDefaultReturnUrl",
|
|
2709
|
+
# },
|
|
2710
|
+
# },
|
|
2711
|
+
# },
|
|
2712
|
+
# inline_function: {
|
|
2713
|
+
# description: "HarnessInlineFunctionDescription", # required
|
|
2714
|
+
# input_schema: { # required
|
|
2715
|
+
# },
|
|
2716
|
+
# },
|
|
2717
|
+
# agent_core_code_interpreter: {
|
|
2718
|
+
# code_interpreter_arn: "CodeInterpreterArn",
|
|
2719
|
+
# },
|
|
2720
|
+
# },
|
|
2721
|
+
# },
|
|
2722
|
+
# ],
|
|
2723
|
+
# skills: [
|
|
2724
|
+
# {
|
|
2725
|
+
# path: "HarnessSkillPath",
|
|
2726
|
+
# },
|
|
2727
|
+
# ],
|
|
2728
|
+
# allowed_tools: ["HarnessAllowedTool"],
|
|
2729
|
+
# max_iterations: 1,
|
|
2730
|
+
# max_tokens: 1,
|
|
2731
|
+
# timeout_seconds: 1,
|
|
2732
|
+
# actor_id: "String",
|
|
2733
|
+
# })
|
|
2734
|
+
#
|
|
2735
|
+
# @example Response structure
|
|
2736
|
+
#
|
|
2737
|
+
# # All events are available at resp.stream:
|
|
2738
|
+
# resp.stream #=> Enumerator
|
|
2739
|
+
# resp.stream.event_types #=> [:message_start, :content_block_start, :content_block_delta, :content_block_stop, :message_stop, :metadata, :internal_server_exception, :validation_exception, :runtime_client_error]
|
|
2740
|
+
#
|
|
2741
|
+
# # For :message_start event available at #on_message_start_event callback and response eventstream enumerator:
|
|
2742
|
+
# event.role #=> String, one of "user", "assistant"
|
|
2743
|
+
#
|
|
2744
|
+
# # For :content_block_start event available at #on_content_block_start_event callback and response eventstream enumerator:
|
|
2745
|
+
# event.content_block_index #=> Integer
|
|
2746
|
+
# event.start.tool_use.tool_use_id #=> String
|
|
2747
|
+
# event.start.tool_use.name #=> String
|
|
2748
|
+
# event.start.tool_use.type #=> String, one of "tool_use", "server_tool_use", "mcp_tool_use"
|
|
2749
|
+
# event.start.tool_use.server_name #=> String
|
|
2750
|
+
# event.start.tool_result.tool_use_id #=> String
|
|
2751
|
+
# event.start.tool_result.status #=> String, one of "success", "error"
|
|
2752
|
+
#
|
|
2753
|
+
# # For :content_block_delta event available at #on_content_block_delta_event callback and response eventstream enumerator:
|
|
2754
|
+
# event.content_block_index #=> Integer
|
|
2755
|
+
# event.delta.text #=> String
|
|
2756
|
+
# event.delta.tool_use.input #=> String
|
|
2757
|
+
# event.delta.tool_result #=> Array
|
|
2758
|
+
# event.delta.tool_result[0].text #=> String
|
|
2759
|
+
# event.delta.reasoning_content.text #=> String
|
|
2760
|
+
# event.delta.reasoning_content.redacted_content #=> String
|
|
2761
|
+
# event.delta.reasoning_content.signature #=> String
|
|
2762
|
+
#
|
|
2763
|
+
# # For :content_block_stop event available at #on_content_block_stop_event callback and response eventstream enumerator:
|
|
2764
|
+
# event.content_block_index #=> Integer
|
|
2765
|
+
#
|
|
2766
|
+
# # For :message_stop event available at #on_message_stop_event callback and response eventstream enumerator:
|
|
2767
|
+
# event.stop_reason #=> String, one of "end_turn", "tool_use", "tool_result", "max_tokens", "stop_sequence", "content_filtered", "malformed_model_output", "malformed_tool_use", "interrupted", "partial_turn", "model_context_window_exceeded", "max_iterations_exceeded", "max_output_tokens_exceeded", "timeout_exceeded"
|
|
2768
|
+
#
|
|
2769
|
+
# # For :metadata event available at #on_metadata_event callback and response eventstream enumerator:
|
|
2770
|
+
# event.usage.input_tokens #=> Integer
|
|
2771
|
+
# event.usage.output_tokens #=> Integer
|
|
2772
|
+
# event.usage.total_tokens #=> Integer
|
|
2773
|
+
# event.usage.cache_read_input_tokens #=> Integer
|
|
2774
|
+
# event.usage.cache_write_input_tokens #=> Integer
|
|
2775
|
+
# event.metrics.latency_ms #=> Integer
|
|
2776
|
+
#
|
|
2777
|
+
# # For :internal_server_exception event available at #on_internal_server_exception_event callback and response eventstream enumerator:
|
|
2778
|
+
# event.message #=> String
|
|
2779
|
+
#
|
|
2780
|
+
# # For :validation_exception event available at #on_validation_exception_event callback and response eventstream enumerator:
|
|
2781
|
+
# event.message #=> String
|
|
2782
|
+
# event.reason #=> String, one of "CannotParse", "FieldValidationFailed", "IdempotentParameterMismatchException", "EventInOtherSession", "ResourceConflict"
|
|
2783
|
+
# event.field_list #=> Array
|
|
2784
|
+
# event.field_list[0].name #=> String
|
|
2785
|
+
# event.field_list[0].message #=> String
|
|
2786
|
+
#
|
|
2787
|
+
# # For :runtime_client_error event available at #on_runtime_client_error_event callback and response eventstream enumerator:
|
|
2788
|
+
# event.message #=> String
|
|
2789
|
+
#
|
|
2790
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/InvokeHarness AWS API Documentation
|
|
2791
|
+
#
|
|
2792
|
+
# @overload invoke_harness(params = {})
|
|
2793
|
+
# @param [Hash] params ({})
|
|
2794
|
+
def invoke_harness(params = {}, options = {}, &block)
|
|
2795
|
+
params = params.dup
|
|
2796
|
+
event_stream_handler = case handler = params.delete(:event_stream_handler)
|
|
2797
|
+
when EventStreams::InvokeHarnessStreamOutput then handler
|
|
2798
|
+
when Proc then EventStreams::InvokeHarnessStreamOutput.new.tap(&handler)
|
|
2799
|
+
when nil then EventStreams::InvokeHarnessStreamOutput.new
|
|
2800
|
+
else
|
|
2801
|
+
msg = "expected :event_stream_handler to be a block or "\
|
|
2802
|
+
"instance of Aws::BedrockAgentCore::EventStreams::InvokeHarnessStreamOutput"\
|
|
2803
|
+
", got `#{handler.inspect}` instead"
|
|
2804
|
+
raise ArgumentError, msg
|
|
2805
|
+
end
|
|
2806
|
+
|
|
2807
|
+
yield(event_stream_handler) if block_given?
|
|
2808
|
+
|
|
2809
|
+
req = build_request(:invoke_harness, params)
|
|
2810
|
+
|
|
2811
|
+
req.context[:event_stream_handler] = event_stream_handler
|
|
2812
|
+
req.handlers.add(Aws::Binary::DecodeHandler, priority: 95)
|
|
2813
|
+
|
|
2814
|
+
req.send_request(options, &block)
|
|
2815
|
+
end
|
|
2816
|
+
|
|
2397
2817
|
# Lists all actors in an AgentCore Memory resource. We recommend using
|
|
2398
2818
|
# pagination to ensure that the operation returns quickly and
|
|
2399
2819
|
# successfully.
|
|
@@ -2774,10 +3194,14 @@ module Aws::BedrockAgentCore
|
|
|
2774
3194
|
# The identifier of the AgentCore Memory resource for which to list
|
|
2775
3195
|
# memory records.
|
|
2776
3196
|
#
|
|
2777
|
-
# @option params [
|
|
3197
|
+
# @option params [String] :namespace
|
|
2778
3198
|
# The namespace prefix to filter memory records by. Returns all memory
|
|
2779
3199
|
# records in namespaces that start with the provided prefix.
|
|
2780
3200
|
#
|
|
3201
|
+
# @option params [String] :namespace_path
|
|
3202
|
+
# Use namespacePath for hierarchical retrievals. Return all memory
|
|
3203
|
+
# records where namespace falls under the same parent hierarchy.
|
|
3204
|
+
#
|
|
2781
3205
|
# @option params [String] :memory_strategy_id
|
|
2782
3206
|
# The memory strategy identifier to filter memory records by. If
|
|
2783
3207
|
# specified, only memory records with this strategy ID are returned.
|
|
@@ -2802,7 +3226,8 @@ module Aws::BedrockAgentCore
|
|
|
2802
3226
|
#
|
|
2803
3227
|
# resp = client.list_memory_records({
|
|
2804
3228
|
# memory_id: "MemoryId", # required
|
|
2805
|
-
# namespace: "Namespace",
|
|
3229
|
+
# namespace: "Namespace",
|
|
3230
|
+
# namespace_path: "Namespace",
|
|
2806
3231
|
# memory_strategy_id: "MemoryStrategyId",
|
|
2807
3232
|
# max_results: 1,
|
|
2808
3233
|
# next_token: "PaginationToken",
|
|
@@ -2907,10 +3332,14 @@ module Aws::BedrockAgentCore
|
|
|
2907
3332
|
# The identifier of the AgentCore Memory resource from which to retrieve
|
|
2908
3333
|
# memory records.
|
|
2909
3334
|
#
|
|
2910
|
-
# @option params [
|
|
3335
|
+
# @option params [String] :namespace
|
|
2911
3336
|
# The namespace prefix to filter memory records by. Searches for memory
|
|
2912
3337
|
# records in namespaces that start with the provided prefix.
|
|
2913
3338
|
#
|
|
3339
|
+
# @option params [String] :namespace_path
|
|
3340
|
+
# Use namespacePath for hierarchical retrievals. Return all memory
|
|
3341
|
+
# records where namespace falls under the same parent hierarchy.
|
|
3342
|
+
#
|
|
2914
3343
|
# @option params [required, Types::SearchCriteria] :search_criteria
|
|
2915
3344
|
# The search criteria to use for finding relevant memory records. This
|
|
2916
3345
|
# includes the search query, memory strategy ID, and other search
|
|
@@ -2936,7 +3365,8 @@ module Aws::BedrockAgentCore
|
|
|
2936
3365
|
#
|
|
2937
3366
|
# resp = client.retrieve_memory_records({
|
|
2938
3367
|
# memory_id: "MemoryId", # required
|
|
2939
|
-
# namespace: "Namespace",
|
|
3368
|
+
# namespace: "Namespace",
|
|
3369
|
+
# namespace_path: "Namespace",
|
|
2940
3370
|
# search_criteria: { # required
|
|
2941
3371
|
# search_query: "SearchCriteriaSearchQueryString", # required
|
|
2942
3372
|
# memory_strategy_id: "MemoryStrategyId",
|
|
@@ -3752,7 +4182,7 @@ module Aws::BedrockAgentCore
|
|
|
3752
4182
|
tracer: tracer
|
|
3753
4183
|
)
|
|
3754
4184
|
context[:gem_name] = 'aws-sdk-bedrockagentcore'
|
|
3755
|
-
context[:gem_version] = '1.
|
|
4185
|
+
context[:gem_version] = '1.29.0'
|
|
3756
4186
|
Seahorse::Client::Request.new(handlers, context)
|
|
3757
4187
|
end
|
|
3758
4188
|
|