aws-sdk-bedrockagentruntime 1.88.0 → 1.89.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: '0818a6409c26b6829283dfdb1e1fd2d70236226bdc11f829846e7ae41393130b'
4
- data.tar.gz: 548f3e0b6aa790c36f57e8171f89977f357034c846c8bbfff685632e69fc6357
3
+ metadata.gz: 7ef227c8d78abb9057d66abbdf5731e2d2033074eec8d22c5cef7037a5f94d4c
4
+ data.tar.gz: 270cc2869b21ab59cc1733d71f85f61c1932cb28a14246ecfc2dc98f64d4f9ce
5
5
  SHA512:
6
- metadata.gz: 31744d38ba58bc0f1726bab3e5740778917b4fcc474aa76eb65239ea7b95e7eba61e571eea5a8ff366c61bc88d65c53ffd7ba2830da09223fbc072f9b7b18078
7
- data.tar.gz: c022a7f9e098c09159259515c8506705fd5c28e43d43e773786c8e7ad86a04d7aa297b3328970c72e899b170728f5025dc8bc585e3274ec66b3c07efbcf38439
6
+ metadata.gz: 40b7d55d8e5bdf2e33694d56e93419dbd0972b5c5416339c2079db2f9ee9cbe6d118907482fe67cfae57f614c896c4847f16b0016135b0af0b47118eec1ca0c8
7
+ data.tar.gz: daafadf01f7311e466a066230429a695406ef1f6714f03c21acae4e539c6020f307b411d820757b8c64ad852a2f6038a0f0e331eb36541c34c145c44a385cea6
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.89.0 (2026-10-30)
5
+ ------------------
6
+
7
+ * Feature - Adds the CodeExecution step and codeExecution action to AgenticRetrieveStream trace events, showing when the agent runs code and which documents it reads.
8
+
4
9
  1.88.0 (2026-10-29)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.88.0
1
+ 1.89.0
@@ -945,6 +945,9 @@ module Aws::BedrockAgentRuntime
945
945
  #
946
946
  # # For :trace_event event available at #on_trace_event_event callback and response eventstream enumerator:
947
947
  # event.attributes.actions #=> Array
948
+ # event.attributes.actions[0].code_execution.documents #=> Array
949
+ # event.attributes.actions[0].code_execution.documents[0].document_id #=> String
950
+ # event.attributes.actions[0].code_execution.documents[0].source_retriever.identifier #=> String
948
951
  # event.attributes.actions[0].full_document_expansion.document_id #=> String
949
952
  # event.attributes.actions[0].full_document_expansion.source_retriever.identifier #=> String
950
953
  # event.attributes.actions[0].memory_retrieve.input_query.text #=> String
@@ -970,7 +973,7 @@ module Aws::BedrockAgentRuntime
970
973
  # event.attributes.retrieval_response[0].metadata #=> Hash
971
974
  # event.attributes.retrieval_response[0].source_retriever.identifier #=> String
972
975
  # event.attributes.status #=> String, one of "IN_PROGRESS", "SUCCEEDED", "FAILED"
973
- # event.attributes.step #=> String, one of "Planning", "Retrieval", "SpeculativeRetrieval", "FullDocumentExpansion", "SessionHistoryLoad"
976
+ # event.attributes.step #=> String, one of "Planning", "Retrieval", "SpeculativeRetrieval", "FullDocumentExpansion", "SessionHistoryLoad", "CodeExecution"
974
977
  # event.attributes.warnings #=> Array
975
978
  # event.attributes.warnings[0].guardrail.action #=> String, one of "INTERVENED", "NONE"
976
979
  # event.attributes.warnings[0].guardrail.id #=> String
@@ -8489,7 +8492,7 @@ module Aws::BedrockAgentRuntime
8489
8492
  tracer: tracer
8490
8493
  )
8491
8494
  context[:gem_name] = 'aws-sdk-bedrockagentruntime'
8492
- context[:gem_version] = '1.88.0'
8495
+ context[:gem_version] = '1.89.0'
8493
8496
  Seahorse::Client::Request.new(handlers, context)
8494
8497
  end
8495
8498
 
@@ -59,6 +59,9 @@ module Aws::BedrockAgentRuntime
59
59
  AgenticRetrieveCitationList = Shapes::ListShape.new(name: 'AgenticRetrieveCitationList')
60
60
  AgenticRetrieveCitationReference = Shapes::StructureShape.new(name: 'AgenticRetrieveCitationReference')
61
61
  AgenticRetrieveCitationReferenceList = Shapes::ListShape.new(name: 'AgenticRetrieveCitationReferenceList')
62
+ AgenticRetrieveCodeExecutionDetails = Shapes::StructureShape.new(name: 'AgenticRetrieveCodeExecutionDetails')
63
+ AgenticRetrieveCodeExecutionDocument = Shapes::StructureShape.new(name: 'AgenticRetrieveCodeExecutionDocument')
64
+ AgenticRetrieveCodeExecutionDocumentList = Shapes::ListShape.new(name: 'AgenticRetrieveCodeExecutionDocumentList')
62
65
  AgenticRetrieveConfiguration = Shapes::StructureShape.new(name: 'AgenticRetrieveConfiguration')
63
66
  AgenticRetrieveConfigurationMaxAgentIterationInteger = Shapes::IntegerShape.new(name: 'AgenticRetrieveConfigurationMaxAgentIterationInteger')
64
67
  AgenticRetrieveFailure = Shapes::StructureShape.new(name: 'AgenticRetrieveFailure')
@@ -793,6 +796,7 @@ module Aws::BedrockAgentRuntime
793
796
 
794
797
  AgentTraces.member = Shapes::ShapeRef.new(shape: TracePart, event: true)
795
798
 
799
+ AgenticRetrieveAction.add_member(:code_execution, Shapes::ShapeRef.new(shape: AgenticRetrieveCodeExecutionDetails, location_name: "codeExecution"))
796
800
  AgenticRetrieveAction.add_member(:full_document_expansion, Shapes::ShapeRef.new(shape: AgenticRetrieveFullDocExpansionDetails, location_name: "fullDocumentExpansion"))
797
801
  AgenticRetrieveAction.add_member(:memory_retrieve, Shapes::ShapeRef.new(shape: AgenticRetrieveMemoryRetrieveDetails, location_name: "memoryRetrieve"))
798
802
  AgenticRetrieveAction.add_member(:retrieve, Shapes::ShapeRef.new(shape: AgenticRetrieveActionDetails, location_name: "retrieve"))
@@ -830,6 +834,15 @@ module Aws::BedrockAgentRuntime
830
834
 
831
835
  AgenticRetrieveCitationReferenceList.member = Shapes::ShapeRef.new(shape: AgenticRetrieveCitationReference)
832
836
 
837
+ AgenticRetrieveCodeExecutionDetails.add_member(:documents, Shapes::ShapeRef.new(shape: AgenticRetrieveCodeExecutionDocumentList, location_name: "documents"))
838
+ AgenticRetrieveCodeExecutionDetails.struct_class = Types::AgenticRetrieveCodeExecutionDetails
839
+
840
+ AgenticRetrieveCodeExecutionDocument.add_member(:document_id, Shapes::ShapeRef.new(shape: String, location_name: "documentId"))
841
+ AgenticRetrieveCodeExecutionDocument.add_member(:source_retriever, Shapes::ShapeRef.new(shape: AgenticRetrieveSourceRetriever, location_name: "sourceRetriever"))
842
+ AgenticRetrieveCodeExecutionDocument.struct_class = Types::AgenticRetrieveCodeExecutionDocument
843
+
844
+ AgenticRetrieveCodeExecutionDocumentList.member = Shapes::ShapeRef.new(shape: AgenticRetrieveCodeExecutionDocument)
845
+
833
846
  AgenticRetrieveConfiguration.add_member(:foundation_model_configuration, Shapes::ShapeRef.new(shape: FoundationModelConfiguration, location_name: "foundationModelConfiguration"))
834
847
  AgenticRetrieveConfiguration.add_member(:foundation_model_type, Shapes::ShapeRef.new(shape: FoundationModelType, location_name: "foundationModelType"))
835
848
  AgenticRetrieveConfiguration.add_member(:max_agent_iteration, Shapes::ShapeRef.new(shape: AgenticRetrieveConfigurationMaxAgentIterationInteger, location_name: "maxAgentIteration"))
@@ -380,6 +380,10 @@ module Aws::BedrockAgentRuntime
380
380
 
381
381
  # An action taken during agentic retrieval.
382
382
  #
383
+ # @!attribute [rw] code_execution
384
+ # The details of code that the agent chose to run.
385
+ # @return [Types::AgenticRetrieveCodeExecutionDetails]
386
+ #
383
387
  # @!attribute [rw] full_document_expansion
384
388
  # Details of a full document expansion action.
385
389
  # @return [Types::AgenticRetrieveFullDocExpansionDetails]
@@ -396,6 +400,7 @@ module Aws::BedrockAgentRuntime
396
400
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/AgenticRetrieveAction AWS API Documentation
397
401
  #
398
402
  class AgenticRetrieveAction < Struct.new(
403
+ :code_execution,
399
404
  :full_document_expansion,
400
405
  :memory_retrieve,
401
406
  :retrieve)
@@ -532,6 +537,42 @@ module Aws::BedrockAgentRuntime
532
537
  include Aws::Structure
533
538
  end
534
539
 
540
+ # The details of code that the agent chose to run in an isolated
541
+ # sandbox. The record includes the documents that the code reads. The
542
+ # corresponding CodeExecution step reports the outcome.
543
+ #
544
+ # @!attribute [rw] documents
545
+ # The documents that the code reads. This field is present when the
546
+ # code reads documents.
547
+ # @return [Array<Types::AgenticRetrieveCodeExecutionDocument>]
548
+ #
549
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/AgenticRetrieveCodeExecutionDetails AWS API Documentation
550
+ #
551
+ class AgenticRetrieveCodeExecutionDetails < Struct.new(
552
+ :documents)
553
+ SENSITIVE = []
554
+ include Aws::Structure
555
+ end
556
+
557
+ # A document that a code execution action reads.
558
+ #
559
+ # @!attribute [rw] document_id
560
+ # The identifier of the document.
561
+ # @return [String]
562
+ #
563
+ # @!attribute [rw] source_retriever
564
+ # The source retriever associated with the document.
565
+ # @return [Types::AgenticRetrieveSourceRetriever]
566
+ #
567
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/AgenticRetrieveCodeExecutionDocument AWS API Documentation
568
+ #
569
+ class AgenticRetrieveCodeExecutionDocument < Struct.new(
570
+ :document_id,
571
+ :source_retriever)
572
+ SENSITIVE = []
573
+ include Aws::Structure
574
+ end
575
+
535
576
  # Configuration settings for the agentic retrieval operation.
536
577
  #
537
578
  # @!attribute [rw] foundation_model_configuration
@@ -56,7 +56,7 @@ module Aws::BedrockAgentRuntime
56
56
  autoload :Endpoints, 'aws-sdk-bedrockagentruntime/endpoints'
57
57
  autoload :EventStreams, 'aws-sdk-bedrockagentruntime/event_streams'
58
58
 
59
- GEM_VERSION = '1.88.0'
59
+ GEM_VERSION = '1.89.0'
60
60
 
61
61
  end
62
62
 
data/sig/types.rbs CHANGED
@@ -101,6 +101,7 @@ module Aws::BedrockAgentRuntime
101
101
  end
102
102
 
103
103
  class AgenticRetrieveAction
104
+ attr_accessor code_execution: Types::AgenticRetrieveCodeExecutionDetails
104
105
  attr_accessor full_document_expansion: Types::AgenticRetrieveFullDocExpansionDetails
105
106
  attr_accessor memory_retrieve: Types::AgenticRetrieveMemoryRetrieveDetails
106
107
  attr_accessor retrieve: Types::AgenticRetrieveActionDetails
@@ -147,6 +148,17 @@ module Aws::BedrockAgentRuntime
147
148
  SENSITIVE: []
148
149
  end
149
150
 
151
+ class AgenticRetrieveCodeExecutionDetails
152
+ attr_accessor documents: ::Array[Types::AgenticRetrieveCodeExecutionDocument]
153
+ SENSITIVE: []
154
+ end
155
+
156
+ class AgenticRetrieveCodeExecutionDocument
157
+ attr_accessor document_id: ::String
158
+ attr_accessor source_retriever: Types::AgenticRetrieveSourceRetriever
159
+ SENSITIVE: []
160
+ end
161
+
150
162
  class AgenticRetrieveConfiguration
151
163
  attr_accessor foundation_model_configuration: Types::FoundationModelConfiguration
152
164
  attr_accessor foundation_model_type: ("CUSTOM" | "MANAGED")
@@ -355,7 +367,7 @@ module Aws::BedrockAgentRuntime
355
367
  attr_accessor retrieval_metadata: ::Array[Types::AgenticRetrieveSourceMetadata]
356
368
  attr_accessor retrieval_response: ::Array[Types::AgenticRetrieveTraceResultItem]
357
369
  attr_accessor status: ("IN_PROGRESS" | "SUCCEEDED" | "FAILED")
358
- attr_accessor step: ("Planning" | "Retrieval" | "SpeculativeRetrieval" | "FullDocumentExpansion" | "SessionHistoryLoad")
370
+ attr_accessor step: ("Planning" | "Retrieval" | "SpeculativeRetrieval" | "FullDocumentExpansion" | "SessionHistoryLoad" | "CodeExecution")
359
371
  attr_accessor warnings: ::Array[Types::AgenticRetrieveWarning]
360
372
  SENSITIVE: []
361
373
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrockagentruntime
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.88.0
4
+ version: 1.89.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services