aws-sdk-bedrockagentruntime 1.49.0 → 1.50.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c93ab9ad99b2d3acd3b93e088183aa21aa86ba8ff909027df858039add174e4
4
- data.tar.gz: e070ba38084eee44af0ad077864c455e3be39d19dae9b3f379cc226b0d18e1e9
3
+ metadata.gz: b07bb15ebfa72e4db880d882429d0e4784cab646a17ceb9ee3d3591812f88b05
4
+ data.tar.gz: d54d82c278c990eeb11280c4e0c4fd5b04856ede5a8a09c29c037f3515f0e75e
5
5
  SHA512:
6
- metadata.gz: 9dae914ba0770051ecb613b5d150dd4ec9796d9ec63dbc5bbc2ff010bbde14496195b458db2245733fb78154e835706b7d46a118e9a0c38d810cb850e4b326af
7
- data.tar.gz: 96cfd801de9882aef15c1bc5299eb878b7d0b7d5e72496c0cc7a04fc0c8199547c9241ce0e4f0e797dde126d8047a995339e464289452be566a7c0269ab87ceb
6
+ metadata.gz: f549199dea001edf2dadee757b64b0f5bcb984d0dda2af0a97e49630cccff2c47a5e2431f5c61bd834129f4e9b39441f1e0c317bcae337bbd13e0f92d8a50e91
7
+ data.tar.gz: fae6b8e9a9a02d10956cb0d20eb022e5b0c1ca3319863684d4d35afe6508158e4b42b28f0ac2b846c8e9d44d417f0f6d26ff98392b2c5e95e2c5a06da731d989
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.50.0 (2025-03-27)
5
+ ------------------
6
+
7
+ * Feature - bedrock flow now support node action trace.
8
+
4
9
  1.49.0 (2025-03-10)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.49.0
1
+ 1.50.0
@@ -976,15 +976,6 @@ module Aws::BedrockAgentRuntime
976
976
  # final result it yielded. For more information, see [Trace
977
977
  # enablement][1].
978
978
  #
979
- # * To stream agent responses, make sure that only orchestration prompt
980
- # is enabled. Agent streaming is not supported for the following
981
- # steps:
982
- #
983
- # * `Pre-processing`
984
- #
985
- # * `Post-processing`
986
- #
987
- # * Agent with 1 Knowledge base and `User Input` not enabled
988
979
  # * End a conversation by setting `endSession` to `true`.
989
980
  #
990
981
  # * In the `sessionState` object, you can include attributes for the
@@ -2295,6 +2286,11 @@ module Aws::BedrockAgentRuntime
2295
2286
  # event.trace.condition_node_result_trace.satisfied_conditions #=> Array
2296
2287
  # event.trace.condition_node_result_trace.satisfied_conditions[0].condition_name #=> String
2297
2288
  # event.trace.condition_node_result_trace.timestamp #=> Time
2289
+ # event.trace.node_action_trace.node_name #=> String
2290
+ # event.trace.node_action_trace.operation_name #=> String
2291
+ # event.trace.node_action_trace.request_id #=> String
2292
+ # event.trace.node_action_trace.service_name #=> String
2293
+ # event.trace.node_action_trace.timestamp #=> Time
2298
2294
  # event.trace.node_input_trace.fields #=> Array
2299
2295
  # event.trace.node_input_trace.fields[0].node_input_name #=> String
2300
2296
  # event.trace.node_input_trace.node_name #=> String
@@ -5431,7 +5427,7 @@ module Aws::BedrockAgentRuntime
5431
5427
  tracer: tracer
5432
5428
  )
5433
5429
  context[:gem_name] = 'aws-sdk-bedrockagentruntime'
5434
- context[:gem_version] = '1.49.0'
5430
+ context[:gem_version] = '1.50.0'
5435
5431
  Seahorse::Client::Request.new(handlers, context)
5436
5432
  end
5437
5433
 
@@ -148,6 +148,7 @@ module Aws::BedrockAgentRuntime
148
148
  FlowTraceConditionNodeResultEvent = Shapes::StructureShape.new(name: 'FlowTraceConditionNodeResultEvent')
149
149
  FlowTraceConditions = Shapes::ListShape.new(name: 'FlowTraceConditions')
150
150
  FlowTraceEvent = Shapes::StructureShape.new(name: 'FlowTraceEvent')
151
+ FlowTraceNodeActionEvent = Shapes::StructureShape.new(name: 'FlowTraceNodeActionEvent')
151
152
  FlowTraceNodeInputContent = Shapes::UnionShape.new(name: 'FlowTraceNodeInputContent')
152
153
  FlowTraceNodeInputEvent = Shapes::StructureShape.new(name: 'FlowTraceNodeInputEvent')
153
154
  FlowTraceNodeInputField = Shapes::StructureShape.new(name: 'FlowTraceNodeInputField')
@@ -882,10 +883,12 @@ module Aws::BedrockAgentRuntime
882
883
  FlowResponseStream.struct_class = Types::FlowResponseStream
883
884
 
884
885
  FlowTrace.add_member(:condition_node_result_trace, Shapes::ShapeRef.new(shape: FlowTraceConditionNodeResultEvent, location_name: "conditionNodeResultTrace"))
886
+ FlowTrace.add_member(:node_action_trace, Shapes::ShapeRef.new(shape: FlowTraceNodeActionEvent, location_name: "nodeActionTrace"))
885
887
  FlowTrace.add_member(:node_input_trace, Shapes::ShapeRef.new(shape: FlowTraceNodeInputEvent, location_name: "nodeInputTrace"))
886
888
  FlowTrace.add_member(:node_output_trace, Shapes::ShapeRef.new(shape: FlowTraceNodeOutputEvent, location_name: "nodeOutputTrace"))
887
889
  FlowTrace.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
888
890
  FlowTrace.add_member_subclass(:condition_node_result_trace, Types::FlowTrace::ConditionNodeResultTrace)
891
+ FlowTrace.add_member_subclass(:node_action_trace, Types::FlowTrace::NodeActionTrace)
889
892
  FlowTrace.add_member_subclass(:node_input_trace, Types::FlowTrace::NodeInputTrace)
890
893
  FlowTrace.add_member_subclass(:node_output_trace, Types::FlowTrace::NodeOutputTrace)
891
894
  FlowTrace.add_member_subclass(:unknown, Types::FlowTrace::Unknown)
@@ -904,6 +907,13 @@ module Aws::BedrockAgentRuntime
904
907
  FlowTraceEvent.add_member(:trace, Shapes::ShapeRef.new(shape: FlowTrace, required: true, location_name: "trace"))
905
908
  FlowTraceEvent.struct_class = Types::FlowTraceEvent
906
909
 
910
+ FlowTraceNodeActionEvent.add_member(:node_name, Shapes::ShapeRef.new(shape: NodeName, required: true, location_name: "nodeName"))
911
+ FlowTraceNodeActionEvent.add_member(:operation_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "operationName"))
912
+ FlowTraceNodeActionEvent.add_member(:request_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "requestId"))
913
+ FlowTraceNodeActionEvent.add_member(:service_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "serviceName"))
914
+ FlowTraceNodeActionEvent.add_member(:timestamp, Shapes::ShapeRef.new(shape: DateTimestamp, required: true, location_name: "timestamp"))
915
+ FlowTraceNodeActionEvent.struct_class = Types::FlowTraceNodeActionEvent
916
+
907
917
  FlowTraceNodeInputContent.add_member(:document, Shapes::ShapeRef.new(shape: Document, location_name: "document"))
908
918
  FlowTraceNodeInputContent.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
909
919
  FlowTraceNodeInputContent.add_member_subclass(:document, Types::FlowTraceNodeInputContent::Document)
@@ -1717,6 +1717,16 @@ module Aws::BedrockAgentRuntime
1717
1717
  # Contains information about an output from a condition node.
1718
1718
  # @return [Types::FlowTraceConditionNodeResultEvent]
1719
1719
  #
1720
+ # @!attribute [rw] node_action_trace
1721
+ # Contains information about an action (operation) called by a node.
1722
+ # For more information, see [Track each step in your prompt flow by
1723
+ # viewing its trace in Amazon Bedrock][1].
1724
+ #
1725
+ #
1726
+ #
1727
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/flows-trace.html
1728
+ # @return [Types::FlowTraceNodeActionEvent]
1729
+ #
1720
1730
  # @!attribute [rw] node_input_trace
1721
1731
  # Contains information about the input into a node.
1722
1732
  # @return [Types::FlowTraceNodeInputEvent]
@@ -1729,14 +1739,16 @@ module Aws::BedrockAgentRuntime
1729
1739
  #
1730
1740
  class FlowTrace < Struct.new(
1731
1741
  :condition_node_result_trace,
1742
+ :node_action_trace,
1732
1743
  :node_input_trace,
1733
1744
  :node_output_trace,
1734
1745
  :unknown)
1735
- SENSITIVE = [:condition_node_result_trace, :node_input_trace, :node_output_trace]
1746
+ SENSITIVE = [:condition_node_result_trace, :node_action_trace, :node_input_trace, :node_output_trace]
1736
1747
  include Aws::Structure
1737
1748
  include Aws::Structure::Union
1738
1749
 
1739
1750
  class ConditionNodeResultTrace < FlowTrace; end
1751
+ class NodeActionTrace < FlowTrace; end
1740
1752
  class NodeInputTrace < FlowTrace; end
1741
1753
  class NodeOutputTrace < FlowTrace; end
1742
1754
  class Unknown < FlowTrace; end
@@ -1815,6 +1827,43 @@ module Aws::BedrockAgentRuntime
1815
1827
  include Aws::Structure
1816
1828
  end
1817
1829
 
1830
+ # Contains information about an action (operation) called by a node in
1831
+ # an Amazon Bedrock flow. The service generates action events for calls
1832
+ # made by prompt nodes, agent nodes, and Amazon Web Services Lambda
1833
+ # nodes.
1834
+ #
1835
+ # @!attribute [rw] node_name
1836
+ # The name of the node that called the operation.
1837
+ # @return [String]
1838
+ #
1839
+ # @!attribute [rw] operation_name
1840
+ # The name of the operation that the node called.
1841
+ # @return [String]
1842
+ #
1843
+ # @!attribute [rw] request_id
1844
+ # The ID of the request that the node made to the operation.
1845
+ # @return [String]
1846
+ #
1847
+ # @!attribute [rw] service_name
1848
+ # The name of the service that the node called.
1849
+ # @return [String]
1850
+ #
1851
+ # @!attribute [rw] timestamp
1852
+ # The date and time that the operation was called.
1853
+ # @return [Time]
1854
+ #
1855
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/FlowTraceNodeActionEvent AWS API Documentation
1856
+ #
1857
+ class FlowTraceNodeActionEvent < Struct.new(
1858
+ :node_name,
1859
+ :operation_name,
1860
+ :request_id,
1861
+ :service_name,
1862
+ :timestamp)
1863
+ SENSITIVE = []
1864
+ include Aws::Structure
1865
+ end
1866
+
1818
1867
  # Contains the content of the node input. For more information, see
1819
1868
  # [Track each step in your prompt flow by viewing its trace in Amazon
1820
1869
  # Bedrock][1].
@@ -7012,7 +7061,22 @@ module Aws::BedrockAgentRuntime
7012
7061
  # Configurations for streaming.
7013
7062
  #
7014
7063
  # @!attribute [rw] apply_guardrail_interval
7015
- # The guardrail interval to apply as response is generated.
7064
+ # The guardrail interval to apply as response is generated. By
7065
+ # default, the guardrail interval is set to 50 characters. If a larger
7066
+ # interval is specified, the response will be generated in larger
7067
+ # chunks with fewer `ApplyGuardrail` calls. The following examples
7068
+ # show the response generated for *Hello, I am an agent* input string.
7069
+ #
7070
+ # **Example response in chunks: Interval set to 3 characters**
7071
+ #
7072
+ # `'Hel', 'lo, ','I am', ' an', ' Age', 'nt'`
7073
+ #
7074
+ # Each chunk has at least 3 characters except for the last chunk
7075
+ #
7076
+ # **Example response in chunks: Interval set to 20 or more
7077
+ # characters**
7078
+ #
7079
+ # `Hello, I am an Agent`
7016
7080
  # @return [Integer]
7017
7081
  #
7018
7082
  # @!attribute [rw] stream_final_response
@@ -55,7 +55,7 @@ module Aws::BedrockAgentRuntime
55
55
  autoload :Endpoints, 'aws-sdk-bedrockagentruntime/endpoints'
56
56
  autoload :EventStreams, 'aws-sdk-bedrockagentruntime/event_streams'
57
57
 
58
- GEM_VERSION = '1.49.0'
58
+ GEM_VERSION = '1.50.0'
59
59
 
60
60
  end
61
61
 
data/sig/types.rbs CHANGED
@@ -487,13 +487,16 @@ module Aws::BedrockAgentRuntime
487
487
 
488
488
  class FlowTrace
489
489
  attr_accessor condition_node_result_trace: Types::FlowTraceConditionNodeResultEvent
490
+ attr_accessor node_action_trace: Types::FlowTraceNodeActionEvent
490
491
  attr_accessor node_input_trace: Types::FlowTraceNodeInputEvent
491
492
  attr_accessor node_output_trace: Types::FlowTraceNodeOutputEvent
492
493
  attr_accessor unknown: untyped
493
- SENSITIVE: [:condition_node_result_trace, :node_input_trace, :node_output_trace]
494
+ SENSITIVE: [:condition_node_result_trace, :node_action_trace, :node_input_trace, :node_output_trace]
494
495
 
495
496
  class ConditionNodeResultTrace < FlowTrace
496
497
  end
498
+ class NodeActionTrace < FlowTrace
499
+ end
497
500
  class NodeInputTrace < FlowTrace
498
501
  end
499
502
  class NodeOutputTrace < FlowTrace
@@ -520,6 +523,15 @@ module Aws::BedrockAgentRuntime
520
523
  SENSITIVE: [:trace]
521
524
  end
522
525
 
526
+ class FlowTraceNodeActionEvent
527
+ attr_accessor node_name: ::String
528
+ attr_accessor operation_name: ::String
529
+ attr_accessor request_id: ::String
530
+ attr_accessor service_name: ::String
531
+ attr_accessor timestamp: ::Time
532
+ SENSITIVE: []
533
+ end
534
+
523
535
  class FlowTraceNodeInputContent
524
536
  attr_accessor document: untyped
525
537
  attr_accessor unknown: untyped
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrockagentruntime
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.49.0
4
+ version: 1.50.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-03-10 00:00:00.000000000 Z
11
+ date: 2025-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core