aws-sdk-bedrockagentruntime 1.30.0 → 1.32.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-bedrockagentruntime/client.rb +274 -3
- data/lib/aws-sdk-bedrockagentruntime/client_api.rb +137 -0
- data/lib/aws-sdk-bedrockagentruntime/event_streams.rb +74 -0
- data/lib/aws-sdk-bedrockagentruntime/types.rb +450 -64
- data/lib/aws-sdk-bedrockagentruntime.rb +1 -1
- data/sig/client.rbs +16 -0
- data/sig/types.rbs +139 -1
- metadata +2 -2
    
        data/sig/types.rbs
    CHANGED
    
    | @@ -31,6 +31,12 @@ module Aws::BedrockAgentRuntime | |
| 31 31 | 
             
                  SENSITIVE: [:text]
         | 
| 32 32 | 
             
                end
         | 
| 33 33 |  | 
| 34 | 
            +
                class AnalyzePromptEvent
         | 
| 35 | 
            +
                  attr_accessor message: ::String
         | 
| 36 | 
            +
                  attr_accessor event_type: untyped
         | 
| 37 | 
            +
                  SENSITIVE: []
         | 
| 38 | 
            +
                end
         | 
| 39 | 
            +
             | 
| 34 40 | 
             
                class ApiInvocationInput
         | 
| 35 41 | 
             
                  attr_accessor action_group: ::String
         | 
| 36 42 | 
             
                  attr_accessor action_invocation_type: ("RESULT" | "USER_CONFIRMATION" | "USER_CONFIRMATION_AND_RESULT")
         | 
| @@ -232,6 +238,89 @@ module Aws::BedrockAgentRuntime | |
| 232 238 | 
             
                  SENSITIVE: []
         | 
| 233 239 | 
             
                end
         | 
| 234 240 |  | 
| 241 | 
            +
                class FlowTrace
         | 
| 242 | 
            +
                  attr_accessor condition_node_result_trace: Types::FlowTraceConditionNodeResultEvent
         | 
| 243 | 
            +
                  attr_accessor node_input_trace: Types::FlowTraceNodeInputEvent
         | 
| 244 | 
            +
                  attr_accessor node_output_trace: Types::FlowTraceNodeOutputEvent
         | 
| 245 | 
            +
                  attr_accessor unknown: untyped
         | 
| 246 | 
            +
                  SENSITIVE: [:condition_node_result_trace, :node_input_trace, :node_output_trace]
         | 
| 247 | 
            +
             | 
| 248 | 
            +
                  class ConditionNodeResultTrace < FlowTrace
         | 
| 249 | 
            +
                  end
         | 
| 250 | 
            +
                  class NodeInputTrace < FlowTrace
         | 
| 251 | 
            +
                  end
         | 
| 252 | 
            +
                  class NodeOutputTrace < FlowTrace
         | 
| 253 | 
            +
                  end
         | 
| 254 | 
            +
                  class Unknown < FlowTrace
         | 
| 255 | 
            +
                  end
         | 
| 256 | 
            +
                end
         | 
| 257 | 
            +
             | 
| 258 | 
            +
                class FlowTraceCondition
         | 
| 259 | 
            +
                  attr_accessor condition_name: ::String
         | 
| 260 | 
            +
                  SENSITIVE: []
         | 
| 261 | 
            +
                end
         | 
| 262 | 
            +
             | 
| 263 | 
            +
                class FlowTraceConditionNodeResultEvent
         | 
| 264 | 
            +
                  attr_accessor node_name: ::String
         | 
| 265 | 
            +
                  attr_accessor satisfied_conditions: ::Array[Types::FlowTraceCondition]
         | 
| 266 | 
            +
                  attr_accessor timestamp: ::Time
         | 
| 267 | 
            +
                  SENSITIVE: []
         | 
| 268 | 
            +
                end
         | 
| 269 | 
            +
             | 
| 270 | 
            +
                class FlowTraceEvent
         | 
| 271 | 
            +
                  attr_accessor trace: Types::FlowTrace
         | 
| 272 | 
            +
                  attr_accessor event_type: untyped
         | 
| 273 | 
            +
                  SENSITIVE: [:trace]
         | 
| 274 | 
            +
                end
         | 
| 275 | 
            +
             | 
| 276 | 
            +
                class FlowTraceNodeInputContent
         | 
| 277 | 
            +
                  attr_accessor document: untyped
         | 
| 278 | 
            +
                  attr_accessor unknown: untyped
         | 
| 279 | 
            +
                  SENSITIVE: []
         | 
| 280 | 
            +
             | 
| 281 | 
            +
                  class Document < FlowTraceNodeInputContent
         | 
| 282 | 
            +
                  end
         | 
| 283 | 
            +
                  class Unknown < FlowTraceNodeInputContent
         | 
| 284 | 
            +
                  end
         | 
| 285 | 
            +
                end
         | 
| 286 | 
            +
             | 
| 287 | 
            +
                class FlowTraceNodeInputEvent
         | 
| 288 | 
            +
                  attr_accessor fields: ::Array[Types::FlowTraceNodeInputField]
         | 
| 289 | 
            +
                  attr_accessor node_name: ::String
         | 
| 290 | 
            +
                  attr_accessor timestamp: ::Time
         | 
| 291 | 
            +
                  SENSITIVE: []
         | 
| 292 | 
            +
                end
         | 
| 293 | 
            +
             | 
| 294 | 
            +
                class FlowTraceNodeInputField
         | 
| 295 | 
            +
                  attr_accessor content: Types::FlowTraceNodeInputContent
         | 
| 296 | 
            +
                  attr_accessor node_input_name: ::String
         | 
| 297 | 
            +
                  SENSITIVE: [:content]
         | 
| 298 | 
            +
                end
         | 
| 299 | 
            +
             | 
| 300 | 
            +
                class FlowTraceNodeOutputContent
         | 
| 301 | 
            +
                  attr_accessor document: untyped
         | 
| 302 | 
            +
                  attr_accessor unknown: untyped
         | 
| 303 | 
            +
                  SENSITIVE: []
         | 
| 304 | 
            +
             | 
| 305 | 
            +
                  class Document < FlowTraceNodeOutputContent
         | 
| 306 | 
            +
                  end
         | 
| 307 | 
            +
                  class Unknown < FlowTraceNodeOutputContent
         | 
| 308 | 
            +
                  end
         | 
| 309 | 
            +
                end
         | 
| 310 | 
            +
             | 
| 311 | 
            +
                class FlowTraceNodeOutputEvent
         | 
| 312 | 
            +
                  attr_accessor fields: ::Array[Types::FlowTraceNodeOutputField]
         | 
| 313 | 
            +
                  attr_accessor node_name: ::String
         | 
| 314 | 
            +
                  attr_accessor timestamp: ::Time
         | 
| 315 | 
            +
                  SENSITIVE: []
         | 
| 316 | 
            +
                end
         | 
| 317 | 
            +
             | 
| 318 | 
            +
                class FlowTraceNodeOutputField
         | 
| 319 | 
            +
                  attr_accessor content: Types::FlowTraceNodeOutputContent
         | 
| 320 | 
            +
                  attr_accessor node_output_name: ::String
         | 
| 321 | 
            +
                  SENSITIVE: []
         | 
| 322 | 
            +
                end
         | 
| 323 | 
            +
             | 
| 235 324 | 
             
                class FunctionInvocationInput
         | 
| 236 325 | 
             
                  attr_accessor action_group: ::String
         | 
| 237 326 | 
             
                  attr_accessor action_invocation_type: ("RESULT" | "USER_CONFIRMATION" | "USER_CONFIRMATION_AND_RESULT")
         | 
| @@ -392,6 +481,17 @@ module Aws::BedrockAgentRuntime | |
| 392 481 | 
             
                  SENSITIVE: []
         | 
| 393 482 | 
             
                end
         | 
| 394 483 |  | 
| 484 | 
            +
                class InputPrompt
         | 
| 485 | 
            +
                  attr_accessor text_prompt: Types::TextPrompt
         | 
| 486 | 
            +
                  attr_accessor unknown: untyped
         | 
| 487 | 
            +
                  SENSITIVE: [:text_prompt]
         | 
| 488 | 
            +
             | 
| 489 | 
            +
                  class TextPrompt < InputPrompt
         | 
| 490 | 
            +
                  end
         | 
| 491 | 
            +
                  class Unknown < InputPrompt
         | 
| 492 | 
            +
                  end
         | 
| 493 | 
            +
                end
         | 
| 494 | 
            +
             | 
| 395 495 | 
             
                class InternalServerException
         | 
| 396 496 | 
             
                  attr_accessor message: ::String
         | 
| 397 497 | 
             
                  attr_accessor event_type: untyped
         | 
| @@ -456,6 +556,7 @@ module Aws::BedrockAgentRuntime | |
| 456 556 | 
             
                end
         | 
| 457 557 |  | 
| 458 558 | 
             
                class InvokeFlowRequest
         | 
| 559 | 
            +
                  attr_accessor enable_trace: bool
         | 
| 459 560 | 
             
                  attr_accessor flow_alias_identifier: ::String
         | 
| 460 561 | 
             
                  attr_accessor flow_identifier: ::String
         | 
| 461 562 | 
             
                  attr_accessor inputs: ::Array[Types::FlowInput]
         | 
| @@ -565,6 +666,34 @@ module Aws::BedrockAgentRuntime | |
| 565 666 | 
             
                  SENSITIVE: [:reprompt_response]
         | 
| 566 667 | 
             
                end
         | 
| 567 668 |  | 
| 669 | 
            +
                class OptimizePromptRequest
         | 
| 670 | 
            +
                  attr_accessor input: Types::InputPrompt
         | 
| 671 | 
            +
                  attr_accessor target_model_id: ::String
         | 
| 672 | 
            +
                  SENSITIVE: []
         | 
| 673 | 
            +
                end
         | 
| 674 | 
            +
             | 
| 675 | 
            +
                class OptimizePromptResponse
         | 
| 676 | 
            +
                  attr_accessor optimized_prompt: Types::OptimizedPromptStream
         | 
| 677 | 
            +
                  SENSITIVE: []
         | 
| 678 | 
            +
                end
         | 
| 679 | 
            +
             | 
| 680 | 
            +
                class OptimizedPrompt
         | 
| 681 | 
            +
                  attr_accessor text_prompt: Types::TextPrompt
         | 
| 682 | 
            +
                  attr_accessor unknown: untyped
         | 
| 683 | 
            +
                  SENSITIVE: [:text_prompt]
         | 
| 684 | 
            +
             | 
| 685 | 
            +
                  class TextPrompt < OptimizedPrompt
         | 
| 686 | 
            +
                  end
         | 
| 687 | 
            +
                  class Unknown < OptimizedPrompt
         | 
| 688 | 
            +
                  end
         | 
| 689 | 
            +
                end
         | 
| 690 | 
            +
             | 
| 691 | 
            +
                class OptimizedPromptEvent
         | 
| 692 | 
            +
                  attr_accessor optimized_prompt: Types::OptimizedPrompt
         | 
| 693 | 
            +
                  attr_accessor event_type: untyped
         | 
| 694 | 
            +
                  SENSITIVE: []
         | 
| 695 | 
            +
                end
         | 
| 696 | 
            +
             | 
| 568 697 | 
             
                class OrchestrationConfiguration
         | 
| 569 698 | 
             
                  attr_accessor additional_model_request_fields: ::Hash[::String, untyped]
         | 
| 570 699 | 
             
                  attr_accessor inference_config: Types::InferenceConfig
         | 
| @@ -915,6 +1044,11 @@ module Aws::BedrockAgentRuntime | |
| 915 1044 | 
             
                  SENSITIVE: []
         | 
| 916 1045 | 
             
                end
         | 
| 917 1046 |  | 
| 1047 | 
            +
                class TextPrompt
         | 
| 1048 | 
            +
                  attr_accessor text: ::String
         | 
| 1049 | 
            +
                  SENSITIVE: []
         | 
| 1050 | 
            +
                end
         | 
| 1051 | 
            +
             | 
| 918 1052 | 
             
                class TextResponsePart
         | 
| 919 1053 | 
             
                  attr_accessor span: Types::Span
         | 
| 920 1054 | 
             
                  attr_accessor text: ::String
         | 
| @@ -973,7 +1107,11 @@ module Aws::BedrockAgentRuntime | |
| 973 1107 | 
             
                end
         | 
| 974 1108 |  | 
| 975 1109 | 
             
                class FlowResponseStream < Enumerator[untyped, untyped]
         | 
| 976 | 
            -
                  def event_types: () -> [:access_denied_exception, :bad_gateway_exception, :conflict_exception, :dependency_failed_exception, :flow_completion_event, :flow_output_event, :internal_server_exception, :resource_not_found_exception, :service_quota_exceeded_exception, :throttling_exception, :validation_exception]
         | 
| 1110 | 
            +
                  def event_types: () -> [:access_denied_exception, :bad_gateway_exception, :conflict_exception, :dependency_failed_exception, :flow_completion_event, :flow_output_event, :flow_trace_event, :internal_server_exception, :resource_not_found_exception, :service_quota_exceeded_exception, :throttling_exception, :validation_exception]
         | 
| 1111 | 
            +
                end
         | 
| 1112 | 
            +
             | 
| 1113 | 
            +
                class OptimizedPromptStream < Enumerator[untyped, untyped]
         | 
| 1114 | 
            +
                  def event_types: () -> [:access_denied_exception, :analyze_prompt_event, :bad_gateway_exception, :dependency_failed_exception, :internal_server_exception, :optimized_prompt_event, :throttling_exception, :validation_exception]
         | 
| 977 1115 | 
             
                end
         | 
| 978 1116 |  | 
| 979 1117 | 
             
                class ResponseStream < Enumerator[untyped, 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. | 
| 4 | 
            +
              version: 1.32.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: 2024-11- | 
| 11 | 
            +
            date: 2024-11-20 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: aws-sdk-core
         |