aws-sdk-bedrockagentruntime 1.47.0 → 1.49.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.
data/sig/client.rbs CHANGED
@@ -380,7 +380,15 @@ module Aws
380
380
  http_method: ::String?,
381
381
  http_status_code: ::Integer?,
382
382
  response_body: Hash[::String, {
383
- body: ::String?
383
+ body: ::String?,
384
+ images: Array[
385
+ {
386
+ format: ("png" | "jpeg" | "gif" | "webp"),
387
+ source: {
388
+ bytes: ::String?
389
+ }
390
+ },
391
+ ]?
384
392
  }]?,
385
393
  response_state: ("FAILURE" | "REPROMPT")?
386
394
  }?,
@@ -390,7 +398,15 @@ module Aws
390
398
  confirmation_state: ("CONFIRM" | "DENY")?,
391
399
  function: ::String?,
392
400
  response_body: Hash[::String, {
393
- body: ::String?
401
+ body: ::String?,
402
+ images: Array[
403
+ {
404
+ format: ("png" | "jpeg" | "gif" | "webp"),
405
+ source: {
406
+ bytes: ::String?
407
+ }
408
+ },
409
+ ]?
394
410
  }]?,
395
411
  response_state: ("FAILURE" | "REPROMPT")?
396
412
  }?
@@ -473,14 +489,212 @@ module Aws
473
489
  },
474
490
  ]?
475
491
  }?,
476
- parent_action_group_signature: ("AMAZON.UserInput" | "AMAZON.CodeInterpreter")?
492
+ parent_action_group_signature: ("AMAZON.UserInput" | "AMAZON.CodeInterpreter" | "ANTHROPIC.Computer" | "ANTHROPIC.Bash" | "ANTHROPIC.TextEditor")?,
493
+ parent_action_group_signature_params: Hash[::String, ::String]?
477
494
  },
478
495
  ],
496
+ ?agent_collaboration: ("SUPERVISOR" | "SUPERVISOR_ROUTER" | "DISABLED"),
479
497
  ?bedrock_model_configurations: {
480
498
  performance_config: {
481
499
  latency: ("standard" | "optimized")?
482
500
  }?
483
501
  },
502
+ ?collaborator_configurations: Array[
503
+ {
504
+ agent_alias_arn: ::String?,
505
+ collaborator_instruction: ::String,
506
+ collaborator_name: ::String,
507
+ relay_conversation_history: ("TO_COLLABORATOR" | "DISABLED")?
508
+ },
509
+ ],
510
+ ?collaborators: Array[
511
+ {
512
+ action_groups: Array[
513
+ {
514
+ action_group_executor: {
515
+ custom_control: ("RETURN_CONTROL")?,
516
+ lambda: ::String?
517
+ }?,
518
+ action_group_name: ::String,
519
+ api_schema: {
520
+ payload: ::String?,
521
+ s3: {
522
+ s3_bucket_name: ::String?,
523
+ s3_object_key: ::String?
524
+ }?
525
+ }?,
526
+ description: ::String?,
527
+ function_schema: {
528
+ functions: Array[
529
+ {
530
+ description: ::String?,
531
+ name: ::String,
532
+ parameters: Hash[::String, {
533
+ description: ::String?,
534
+ required: bool?,
535
+ type: ("string" | "number" | "integer" | "boolean" | "array")
536
+ }]?,
537
+ require_confirmation: ("ENABLED" | "DISABLED")?
538
+ },
539
+ ]?
540
+ }?,
541
+ parent_action_group_signature: ("AMAZON.UserInput" | "AMAZON.CodeInterpreter" | "ANTHROPIC.Computer" | "ANTHROPIC.Bash" | "ANTHROPIC.TextEditor")?,
542
+ parent_action_group_signature_params: Hash[::String, ::String]?
543
+ },
544
+ ]?,
545
+ agent_collaboration: ("SUPERVISOR" | "SUPERVISOR_ROUTER" | "DISABLED")?,
546
+ agent_name: ::String?,
547
+ collaborator_configurations: Array[
548
+ {
549
+ agent_alias_arn: ::String?,
550
+ collaborator_instruction: ::String,
551
+ collaborator_name: ::String,
552
+ relay_conversation_history: ("TO_COLLABORATOR" | "DISABLED")?
553
+ },
554
+ ]?,
555
+ customer_encryption_key_arn: ::String?,
556
+ foundation_model: ::String,
557
+ guardrail_configuration: {
558
+ guardrail_identifier: ::String,
559
+ guardrail_version: ::String
560
+ }?,
561
+ idle_session_ttl_in_seconds: ::Integer?,
562
+ instruction: ::String,
563
+ knowledge_bases: Array[
564
+ {
565
+ description: ::String,
566
+ knowledge_base_id: ::String,
567
+ retrieval_configuration: {
568
+ vector_search_configuration: {
569
+ filter: {
570
+ and_all: Array[
571
+ untyped,
572
+ ]?,
573
+ equals: {
574
+ key: ::String,
575
+ value: {
576
+ }
577
+ }?,
578
+ greater_than: {
579
+ key: ::String,
580
+ value: {
581
+ }
582
+ }?,
583
+ greater_than_or_equals: {
584
+ key: ::String,
585
+ value: {
586
+ }
587
+ }?,
588
+ in: {
589
+ key: ::String,
590
+ value: {
591
+ }
592
+ }?,
593
+ less_than: {
594
+ key: ::String,
595
+ value: {
596
+ }
597
+ }?,
598
+ less_than_or_equals: {
599
+ key: ::String,
600
+ value: {
601
+ }
602
+ }?,
603
+ list_contains: {
604
+ key: ::String,
605
+ value: {
606
+ }
607
+ }?,
608
+ not_equals: {
609
+ key: ::String,
610
+ value: {
611
+ }
612
+ }?,
613
+ not_in: {
614
+ key: ::String,
615
+ value: {
616
+ }
617
+ }?,
618
+ or_all: Array[
619
+ untyped,
620
+ ]?,
621
+ starts_with: {
622
+ key: ::String,
623
+ value: {
624
+ }
625
+ }?,
626
+ string_contains: {
627
+ key: ::String,
628
+ value: {
629
+ }
630
+ }?
631
+ }?,
632
+ implicit_filter_configuration: {
633
+ metadata_attributes: Array[
634
+ {
635
+ description: ::String,
636
+ key: ::String,
637
+ type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST")
638
+ },
639
+ ],
640
+ model_arn: ::String
641
+ }?,
642
+ number_of_results: ::Integer?,
643
+ override_search_type: ("HYBRID" | "SEMANTIC")?,
644
+ reranking_configuration: {
645
+ bedrock_reranking_configuration: {
646
+ metadata_configuration: {
647
+ selection_mode: ("SELECTIVE" | "ALL"),
648
+ selective_mode_configuration: {
649
+ fields_to_exclude: Array[
650
+ {
651
+ field_name: ::String
652
+ },
653
+ ]?,
654
+ fields_to_include: Array[
655
+ {
656
+ field_name: ::String
657
+ },
658
+ ]?
659
+ }?
660
+ }?,
661
+ model_configuration: {
662
+ additional_model_request_fields: Hash[::String, {
663
+ }]?,
664
+ model_arn: ::String
665
+ },
666
+ number_of_reranked_results: ::Integer?
667
+ }?,
668
+ type: ("BEDROCK_RERANKING_MODEL")
669
+ }?
670
+ }
671
+ }?
672
+ },
673
+ ]?,
674
+ prompt_override_configuration: {
675
+ override_lambda: ::String?,
676
+ prompt_configurations: Array[
677
+ {
678
+ additional_model_request_fields: {
679
+ }?,
680
+ base_prompt_template: ::String?,
681
+ foundation_model: ::String?,
682
+ inference_configuration: {
683
+ maximum_length: ::Integer?,
684
+ stop_sequences: Array[::String]?,
685
+ temperature: ::Float?,
686
+ top_k: ::Integer?,
687
+ top_p: ::Float?
688
+ }?,
689
+ parser_mode: ("DEFAULT" | "OVERRIDDEN")?,
690
+ prompt_creation_mode: ("DEFAULT" | "OVERRIDDEN")?,
691
+ prompt_state: ("ENABLED" | "DISABLED")?,
692
+ prompt_type: ("PRE_PROCESSING" | "ORCHESTRATION" | "KNOWLEDGE_BASE_RESPONSE_GENERATION" | "POST_PROCESSING" | "ROUTING_CLASSIFIER")?
693
+ },
694
+ ]
695
+ }?
696
+ },
697
+ ],
484
698
  ?customer_encryption_key_arn: ::String,
485
699
  ?enable_trace: bool,
486
700
  ?end_session: bool,
@@ -491,6 +705,18 @@ module Aws
491
705
  },
492
706
  ?idle_session_ttl_in_seconds: ::Integer,
493
707
  ?inline_session_state: {
708
+ conversation_history: {
709
+ messages: Array[
710
+ {
711
+ content: Array[
712
+ {
713
+ text: ::String?
714
+ },
715
+ ],
716
+ role: ("user" | "assistant")
717
+ },
718
+ ]?
719
+ }?,
494
720
  files: Array[
495
721
  {
496
722
  name: ::String,
@@ -519,7 +745,15 @@ module Aws
519
745
  http_method: ::String?,
520
746
  http_status_code: ::Integer?,
521
747
  response_body: Hash[::String, {
522
- body: ::String?
748
+ body: ::String?,
749
+ images: Array[
750
+ {
751
+ format: ("png" | "jpeg" | "gif" | "webp"),
752
+ source: {
753
+ bytes: ::String?
754
+ }
755
+ },
756
+ ]?
523
757
  }]?,
524
758
  response_state: ("FAILURE" | "REPROMPT")?
525
759
  }?,
@@ -529,7 +763,15 @@ module Aws
529
763
  confirmation_state: ("CONFIRM" | "DENY")?,
530
764
  function: ::String?,
531
765
  response_body: Hash[::String, {
532
- body: ::String?
766
+ body: ::String?,
767
+ images: Array[
768
+ {
769
+ format: ("png" | "jpeg" | "gif" | "webp"),
770
+ source: {
771
+ bytes: ::String?
772
+ }
773
+ },
774
+ ]?
533
775
  }]?,
534
776
  response_state: ("FAILURE" | "REPROMPT")?
535
777
  }?
@@ -657,6 +899,7 @@ module Aws
657
899
  additional_model_request_fields: {
658
900
  }?,
659
901
  base_prompt_template: ::String?,
902
+ foundation_model: ::String?,
660
903
  inference_configuration: {
661
904
  maximum_length: ::Integer?,
662
905
  stop_sequences: Array[::String]?,
data/sig/types.rbs CHANGED
@@ -65,7 +65,8 @@ module Aws::BedrockAgentRuntime
65
65
  attr_accessor api_schema: Types::APISchema
66
66
  attr_accessor description: ::String
67
67
  attr_accessor function_schema: Types::FunctionSchema
68
- attr_accessor parent_action_group_signature: ("AMAZON.UserInput" | "AMAZON.CodeInterpreter")
68
+ attr_accessor parent_action_group_signature: ("AMAZON.UserInput" | "AMAZON.CodeInterpreter" | "ANTHROPIC.Computer" | "ANTHROPIC.Bash" | "ANTHROPIC.TextEditor")
69
+ attr_accessor parent_action_group_signature_params: ::Hash[::String, ::String]
69
70
  SENSITIVE: [:action_group_name, :description]
70
71
  end
71
72
 
@@ -234,6 +235,29 @@ module Aws::BedrockAgentRuntime
234
235
  SENSITIVE: []
235
236
  end
236
237
 
238
+ class Collaborator
239
+ attr_accessor action_groups: ::Array[Types::AgentActionGroup]
240
+ attr_accessor agent_collaboration: ("SUPERVISOR" | "SUPERVISOR_ROUTER" | "DISABLED")
241
+ attr_accessor agent_name: ::String
242
+ attr_accessor collaborator_configurations: ::Array[Types::CollaboratorConfiguration]
243
+ attr_accessor customer_encryption_key_arn: ::String
244
+ attr_accessor foundation_model: ::String
245
+ attr_accessor guardrail_configuration: Types::GuardrailConfigurationWithArn
246
+ attr_accessor idle_session_ttl_in_seconds: ::Integer
247
+ attr_accessor instruction: ::String
248
+ attr_accessor knowledge_bases: ::Array[Types::KnowledgeBase]
249
+ attr_accessor prompt_override_configuration: Types::PromptOverrideConfiguration
250
+ SENSITIVE: [:agent_name, :instruction, :prompt_override_configuration]
251
+ end
252
+
253
+ class CollaboratorConfiguration
254
+ attr_accessor agent_alias_arn: ::String
255
+ attr_accessor collaborator_instruction: ::String
256
+ attr_accessor collaborator_name: ::String
257
+ attr_accessor relay_conversation_history: ("TO_COLLABORATOR" | "DISABLED")
258
+ SENSITIVE: [:collaborator_instruction, :collaborator_name]
259
+ end
260
+
237
261
  class ConflictException
238
262
  attr_accessor message: ::String
239
263
  attr_accessor event_type: untyped
@@ -253,6 +277,7 @@ module Aws::BedrockAgentRuntime
253
277
 
254
278
  class ContentBody
255
279
  attr_accessor body: ::String
280
+ attr_accessor images: ::Array[Types::ImageInput]
256
281
  SENSITIVE: []
257
282
  end
258
283
 
@@ -768,6 +793,23 @@ module Aws::BedrockAgentRuntime
768
793
  SENSITIVE: []
769
794
  end
770
795
 
796
+ class ImageInput
797
+ attr_accessor format: ("png" | "jpeg" | "gif" | "webp")
798
+ attr_accessor source: Types::ImageInputSource
799
+ SENSITIVE: []
800
+ end
801
+
802
+ class ImageInputSource
803
+ attr_accessor bytes: ::String
804
+ attr_accessor unknown: untyped
805
+ SENSITIVE: []
806
+
807
+ class Bytes < ImageInputSource
808
+ end
809
+ class Unknown < ImageInputSource
810
+ end
811
+ end
812
+
771
813
  class ImageSource
772
814
  attr_accessor bytes: ::String
773
815
  attr_accessor s3_location: Types::S3Location
@@ -835,6 +877,7 @@ module Aws::BedrockAgentRuntime
835
877
  end
836
878
 
837
879
  class InlineSessionState
880
+ attr_accessor conversation_history: Types::ConversationHistory
838
881
  attr_accessor files: ::Array[Types::InputFile]
839
882
  attr_accessor invocation_id: ::String
840
883
  attr_accessor prompt_session_attributes: ::Hash[::String, ::String]
@@ -982,7 +1025,10 @@ module Aws::BedrockAgentRuntime
982
1025
 
983
1026
  class InvokeInlineAgentRequest
984
1027
  attr_accessor action_groups: ::Array[Types::AgentActionGroup]
1028
+ attr_accessor agent_collaboration: ("SUPERVISOR" | "SUPERVISOR_ROUTER" | "DISABLED")
985
1029
  attr_accessor bedrock_model_configurations: Types::InlineBedrockModelConfigurations
1030
+ attr_accessor collaborator_configurations: ::Array[Types::CollaboratorConfiguration]
1031
+ attr_accessor collaborators: ::Array[Types::Collaborator]
986
1032
  attr_accessor customer_encryption_key_arn: ::String
987
1033
  attr_accessor enable_trace: bool
988
1034
  attr_accessor end_session: bool
@@ -1355,6 +1401,7 @@ module Aws::BedrockAgentRuntime
1355
1401
  class PromptConfiguration
1356
1402
  attr_accessor additional_model_request_fields: untyped
1357
1403
  attr_accessor base_prompt_template: ::String
1404
+ attr_accessor foundation_model: ::String
1358
1405
  attr_accessor inference_configuration: Types::InferenceConfiguration
1359
1406
  attr_accessor parser_mode: ("DEFAULT" | "OVERRIDDEN")
1360
1407
  attr_accessor prompt_creation_mode: ("DEFAULT" | "OVERRIDDEN")
@@ -1892,6 +1939,7 @@ module Aws::BedrockAgentRuntime
1892
1939
  attr_accessor agent_version: ::String
1893
1940
  attr_accessor caller_chain: ::Array[Types::Caller]
1894
1941
  attr_accessor collaborator_name: ::String
1942
+ attr_accessor event_time: ::Time
1895
1943
  attr_accessor session_id: ::String
1896
1944
  attr_accessor trace: Types::Trace
1897
1945
  attr_accessor event_type: 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.47.0
4
+ version: 1.49.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-02-27 00:00:00.000000000 Z
11
+ date: 2025-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core