types-boto3-bedrock-runtime 1.38.0__tar.gz → 1.38.4__tar.gz
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.
- {types_boto3_bedrock_runtime-1.38.0/types_boto3_bedrock_runtime.egg-info → types_boto3_bedrock_runtime-1.38.4}/PKG-INFO +4 -4
- {types_boto3_bedrock_runtime-1.38.0 → types_boto3_bedrock_runtime-1.38.4}/README.md +2 -2
- {types_boto3_bedrock_runtime-1.38.0 → types_boto3_bedrock_runtime-1.38.4}/setup.py +2 -2
- {types_boto3_bedrock_runtime-1.38.0 → types_boto3_bedrock_runtime-1.38.4}/types_boto3_bedrock_runtime/__main__.py +3 -3
- {types_boto3_bedrock_runtime-1.38.0 → types_boto3_bedrock_runtime-1.38.4}/types_boto3_bedrock_runtime/type_defs.py +128 -126
- {types_boto3_bedrock_runtime-1.38.0 → types_boto3_bedrock_runtime-1.38.4}/types_boto3_bedrock_runtime/type_defs.pyi +118 -115
- {types_boto3_bedrock_runtime-1.38.0 → types_boto3_bedrock_runtime-1.38.4}/types_boto3_bedrock_runtime/version.py +1 -1
- {types_boto3_bedrock_runtime-1.38.0 → types_boto3_bedrock_runtime-1.38.4/types_boto3_bedrock_runtime.egg-info}/PKG-INFO +4 -4
- {types_boto3_bedrock_runtime-1.38.0 → types_boto3_bedrock_runtime-1.38.4}/LICENSE +0 -0
- {types_boto3_bedrock_runtime-1.38.0 → types_boto3_bedrock_runtime-1.38.4}/setup.cfg +0 -0
- {types_boto3_bedrock_runtime-1.38.0 → types_boto3_bedrock_runtime-1.38.4}/types_boto3_bedrock_runtime/__init__.py +0 -0
- {types_boto3_bedrock_runtime-1.38.0 → types_boto3_bedrock_runtime-1.38.4}/types_boto3_bedrock_runtime/__init__.pyi +0 -0
- {types_boto3_bedrock_runtime-1.38.0 → types_boto3_bedrock_runtime-1.38.4}/types_boto3_bedrock_runtime/client.py +0 -0
- {types_boto3_bedrock_runtime-1.38.0 → types_boto3_bedrock_runtime-1.38.4}/types_boto3_bedrock_runtime/client.pyi +0 -0
- {types_boto3_bedrock_runtime-1.38.0 → types_boto3_bedrock_runtime-1.38.4}/types_boto3_bedrock_runtime/literals.py +0 -0
- {types_boto3_bedrock_runtime-1.38.0 → types_boto3_bedrock_runtime-1.38.4}/types_boto3_bedrock_runtime/literals.pyi +0 -0
- {types_boto3_bedrock_runtime-1.38.0 → types_boto3_bedrock_runtime-1.38.4}/types_boto3_bedrock_runtime/paginator.py +0 -0
- {types_boto3_bedrock_runtime-1.38.0 → types_boto3_bedrock_runtime-1.38.4}/types_boto3_bedrock_runtime/paginator.pyi +0 -0
- {types_boto3_bedrock_runtime-1.38.0 → types_boto3_bedrock_runtime-1.38.4}/types_boto3_bedrock_runtime/py.typed +0 -0
- {types_boto3_bedrock_runtime-1.38.0 → types_boto3_bedrock_runtime-1.38.4}/types_boto3_bedrock_runtime.egg-info/SOURCES.txt +0 -0
- {types_boto3_bedrock_runtime-1.38.0 → types_boto3_bedrock_runtime-1.38.4}/types_boto3_bedrock_runtime.egg-info/dependency_links.txt +0 -0
- {types_boto3_bedrock_runtime-1.38.0 → types_boto3_bedrock_runtime-1.38.4}/types_boto3_bedrock_runtime.egg-info/not-zip-safe +0 -0
- {types_boto3_bedrock_runtime-1.38.0 → types_boto3_bedrock_runtime-1.38.4}/types_boto3_bedrock_runtime.egg-info/requires.txt +0 -0
- {types_boto3_bedrock_runtime-1.38.0 → types_boto3_bedrock_runtime-1.38.4}/types_boto3_bedrock_runtime.egg-info/top_level.txt +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: types-boto3-bedrock-runtime
|
|
3
|
-
Version: 1.38.
|
|
4
|
-
Summary: Type annotations for boto3 BedrockRuntime 1.38.
|
|
3
|
+
Version: 1.38.4
|
|
4
|
+
Summary: Type annotations for boto3 BedrockRuntime 1.38.4 service generated with mypy-boto3-builder 8.10.1
|
|
5
5
|
Home-page: https://github.com/youtype/mypy_boto3_builder
|
|
6
6
|
Author: Vlad Emelianov
|
|
7
7
|
Author-email: vlad.emelianov.nz@gmail.com
|
|
@@ -57,7 +57,7 @@ Dynamic: summary
|
|
|
57
57
|

|
|
58
58
|
|
|
59
59
|
Type annotations for
|
|
60
|
-
[boto3 BedrockRuntime 1.38.
|
|
60
|
+
[boto3 BedrockRuntime 1.38.4](https://pypi.org/project/boto3/) compatible with
|
|
61
61
|
[VSCode](https://code.visualstudio.com/),
|
|
62
62
|
[PyCharm](https://www.jetbrains.com/pycharm/),
|
|
63
63
|
[Emacs](https://www.gnu.org/software/emacs/),
|
|
@@ -119,7 +119,7 @@ You can generate type annotations for `boto3` package locally with
|
|
|
119
119
|
isolation.
|
|
120
120
|
|
|
121
121
|
1. Run mypy-boto3-builder in your package root directory:
|
|
122
|
-
`uvx --with 'boto3==1.38.
|
|
122
|
+
`uvx --with 'boto3==1.38.4' mypy-boto3-builder`
|
|
123
123
|
2. Select `boto3` AWS SDK.
|
|
124
124
|
3. Add `BedrockRuntime` service.
|
|
125
125
|
4. Use provided commands to install generated packages.
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|

|
|
11
11
|
|
|
12
12
|
Type annotations for
|
|
13
|
-
[boto3 BedrockRuntime 1.38.
|
|
13
|
+
[boto3 BedrockRuntime 1.38.4](https://pypi.org/project/boto3/) compatible with
|
|
14
14
|
[VSCode](https://code.visualstudio.com/),
|
|
15
15
|
[PyCharm](https://www.jetbrains.com/pycharm/),
|
|
16
16
|
[Emacs](https://www.gnu.org/software/emacs/),
|
|
@@ -72,7 +72,7 @@ You can generate type annotations for `boto3` package locally with
|
|
|
72
72
|
isolation.
|
|
73
73
|
|
|
74
74
|
1. Run mypy-boto3-builder in your package root directory:
|
|
75
|
-
`uvx --with 'boto3==1.38.
|
|
75
|
+
`uvx --with 'boto3==1.38.4' mypy-boto3-builder`
|
|
76
76
|
2. Select `boto3` AWS SDK.
|
|
77
77
|
3. Add `BedrockRuntime` service.
|
|
78
78
|
4. Use provided commands to install generated packages.
|
|
@@ -13,13 +13,13 @@ LONG_DESCRIPTION = (Path(__file__).parent / "README.md").read_text()
|
|
|
13
13
|
|
|
14
14
|
setup(
|
|
15
15
|
name="types-boto3-bedrock-runtime",
|
|
16
|
-
version="1.38.
|
|
16
|
+
version="1.38.4",
|
|
17
17
|
packages=["types_boto3_bedrock_runtime"],
|
|
18
18
|
url="https://github.com/youtype/mypy_boto3_builder",
|
|
19
19
|
license="MIT License",
|
|
20
20
|
author="Vlad Emelianov",
|
|
21
21
|
author_email="vlad.emelianov.nz@gmail.com",
|
|
22
|
-
description="Type annotations for boto3 BedrockRuntime 1.38.
|
|
22
|
+
description="Type annotations for boto3 BedrockRuntime 1.38.4 service generated with mypy-boto3-builder 8.10.1",
|
|
23
23
|
classifiers=[
|
|
24
24
|
"Development Status :: 5 - Production/Stable",
|
|
25
25
|
"Intended Audience :: Developers",
|
|
@@ -12,8 +12,8 @@ def print_info() -> None:
|
|
|
12
12
|
Print package info to stdout.
|
|
13
13
|
"""
|
|
14
14
|
sys.stdout.write(
|
|
15
|
-
"Type annotations for boto3 BedrockRuntime 1.38.
|
|
16
|
-
"Version: 1.38.
|
|
15
|
+
"Type annotations for boto3 BedrockRuntime 1.38.4\n"
|
|
16
|
+
"Version: 1.38.4\n"
|
|
17
17
|
"Builder version: 8.10.1\n"
|
|
18
18
|
"Docs: https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime//\n"
|
|
19
19
|
"Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime.html#bedrockruntime\n"
|
|
@@ -26,7 +26,7 @@ def print_version() -> None:
|
|
|
26
26
|
"""
|
|
27
27
|
Print package version to stdout.
|
|
28
28
|
"""
|
|
29
|
-
sys.stdout.write("1.38.
|
|
29
|
+
sys.stdout.write("1.38.4\n")
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def main() -> None:
|
|
@@ -369,12 +369,9 @@ class PromptRouterTraceTypeDef(TypedDict):
|
|
|
369
369
|
invokedModelId: NotRequired[str]
|
|
370
370
|
|
|
371
371
|
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
"bytes": NotRequired[bytes],
|
|
376
|
-
},
|
|
377
|
-
)
|
|
372
|
+
class S3LocationTypeDef(TypedDict):
|
|
373
|
+
uri: str
|
|
374
|
+
bucketOwner: NotRequired[str]
|
|
378
375
|
|
|
379
376
|
|
|
380
377
|
class GetAsyncInvokeRequestTypeDef(TypedDict):
|
|
@@ -479,12 +476,6 @@ GuardrailTopicTypeDef = TypedDict(
|
|
|
479
476
|
"detected": NotRequired[bool],
|
|
480
477
|
},
|
|
481
478
|
)
|
|
482
|
-
ImageSourceOutputTypeDef = TypedDict(
|
|
483
|
-
"ImageSourceOutputTypeDef",
|
|
484
|
-
{
|
|
485
|
-
"bytes": NotRequired[bytes],
|
|
486
|
-
},
|
|
487
|
-
)
|
|
488
479
|
|
|
489
480
|
|
|
490
481
|
class ModelTimeoutExceptionTypeDef(TypedDict):
|
|
@@ -511,11 +502,6 @@ class ReasoningTextBlockTypeDef(TypedDict):
|
|
|
511
502
|
signature: NotRequired[str]
|
|
512
503
|
|
|
513
504
|
|
|
514
|
-
class S3LocationTypeDef(TypedDict):
|
|
515
|
-
uri: str
|
|
516
|
-
bucketOwner: NotRequired[str]
|
|
517
|
-
|
|
518
|
-
|
|
519
505
|
class SpecificToolChoiceTypeDef(TypedDict):
|
|
520
506
|
name: str
|
|
521
507
|
|
|
@@ -561,12 +547,6 @@ BidirectionalInputPayloadPartTypeDef = TypedDict(
|
|
|
561
547
|
"bytes": NotRequired[BlobTypeDef],
|
|
562
548
|
},
|
|
563
549
|
)
|
|
564
|
-
DocumentSourceTypeDef = TypedDict(
|
|
565
|
-
"DocumentSourceTypeDef",
|
|
566
|
-
{
|
|
567
|
-
"bytes": NotRequired[BlobTypeDef],
|
|
568
|
-
},
|
|
569
|
-
)
|
|
570
550
|
GuardrailConverseImageSourceTypeDef = TypedDict(
|
|
571
551
|
"GuardrailConverseImageSourceTypeDef",
|
|
572
552
|
{
|
|
@@ -579,12 +559,6 @@ GuardrailImageSourceTypeDef = TypedDict(
|
|
|
579
559
|
"bytes": NotRequired[BlobTypeDef],
|
|
580
560
|
},
|
|
581
561
|
)
|
|
582
|
-
ImageSourceTypeDef = TypedDict(
|
|
583
|
-
"ImageSourceTypeDef",
|
|
584
|
-
{
|
|
585
|
-
"bytes": NotRequired[BlobTypeDef],
|
|
586
|
-
},
|
|
587
|
-
)
|
|
588
562
|
|
|
589
563
|
|
|
590
564
|
class InvokeModelRequestTypeDef(TypedDict):
|
|
@@ -619,12 +593,46 @@ class ContentBlockStartTypeDef(TypedDict):
|
|
|
619
593
|
toolUse: NotRequired[ToolUseBlockStartTypeDef]
|
|
620
594
|
|
|
621
595
|
|
|
622
|
-
|
|
623
|
-
"
|
|
596
|
+
DocumentSourceOutputTypeDef = TypedDict(
|
|
597
|
+
"DocumentSourceOutputTypeDef",
|
|
624
598
|
{
|
|
625
|
-
"
|
|
626
|
-
"
|
|
627
|
-
|
|
599
|
+
"bytes": NotRequired[bytes],
|
|
600
|
+
"s3Location": NotRequired[S3LocationTypeDef],
|
|
601
|
+
},
|
|
602
|
+
)
|
|
603
|
+
DocumentSourceTypeDef = TypedDict(
|
|
604
|
+
"DocumentSourceTypeDef",
|
|
605
|
+
{
|
|
606
|
+
"bytes": NotRequired[BlobTypeDef],
|
|
607
|
+
"s3Location": NotRequired[S3LocationTypeDef],
|
|
608
|
+
},
|
|
609
|
+
)
|
|
610
|
+
ImageSourceOutputTypeDef = TypedDict(
|
|
611
|
+
"ImageSourceOutputTypeDef",
|
|
612
|
+
{
|
|
613
|
+
"bytes": NotRequired[bytes],
|
|
614
|
+
"s3Location": NotRequired[S3LocationTypeDef],
|
|
615
|
+
},
|
|
616
|
+
)
|
|
617
|
+
ImageSourceTypeDef = TypedDict(
|
|
618
|
+
"ImageSourceTypeDef",
|
|
619
|
+
{
|
|
620
|
+
"bytes": NotRequired[BlobTypeDef],
|
|
621
|
+
"s3Location": NotRequired[S3LocationTypeDef],
|
|
622
|
+
},
|
|
623
|
+
)
|
|
624
|
+
VideoSourceOutputTypeDef = TypedDict(
|
|
625
|
+
"VideoSourceOutputTypeDef",
|
|
626
|
+
{
|
|
627
|
+
"bytes": NotRequired[bytes],
|
|
628
|
+
"s3Location": NotRequired[S3LocationTypeDef],
|
|
629
|
+
},
|
|
630
|
+
)
|
|
631
|
+
VideoSourceTypeDef = TypedDict(
|
|
632
|
+
"VideoSourceTypeDef",
|
|
633
|
+
{
|
|
634
|
+
"bytes": NotRequired[BlobTypeDef],
|
|
635
|
+
"s3Location": NotRequired[S3LocationTypeDef],
|
|
628
636
|
},
|
|
629
637
|
)
|
|
630
638
|
|
|
@@ -668,15 +676,6 @@ class GuardrailTopicPolicyAssessmentTypeDef(TypedDict):
|
|
|
668
676
|
topics: List[GuardrailTopicTypeDef]
|
|
669
677
|
|
|
670
678
|
|
|
671
|
-
ImageBlockOutputTypeDef = TypedDict(
|
|
672
|
-
"ImageBlockOutputTypeDef",
|
|
673
|
-
{
|
|
674
|
-
"format": ImageFormatType,
|
|
675
|
-
"source": ImageSourceOutputTypeDef,
|
|
676
|
-
},
|
|
677
|
-
)
|
|
678
|
-
|
|
679
|
-
|
|
680
679
|
class InvokeModelWithBidirectionalStreamOutputTypeDef(TypedDict):
|
|
681
680
|
chunk: NotRequired[BidirectionalOutputPayloadPartTypeDef]
|
|
682
681
|
internalServerException: NotRequired[InternalServerExceptionTypeDef]
|
|
@@ -726,20 +725,6 @@ class ReasoningContentBlockTypeDef(TypedDict):
|
|
|
726
725
|
redactedContent: NotRequired[BlobTypeDef]
|
|
727
726
|
|
|
728
727
|
|
|
729
|
-
VideoSourceOutputTypeDef = TypedDict(
|
|
730
|
-
"VideoSourceOutputTypeDef",
|
|
731
|
-
{
|
|
732
|
-
"bytes": NotRequired[bytes],
|
|
733
|
-
"s3Location": NotRequired[S3LocationTypeDef],
|
|
734
|
-
},
|
|
735
|
-
)
|
|
736
|
-
VideoSourceTypeDef = TypedDict(
|
|
737
|
-
"VideoSourceTypeDef",
|
|
738
|
-
{
|
|
739
|
-
"bytes": NotRequired[BlobTypeDef],
|
|
740
|
-
"s3Location": NotRequired[S3LocationTypeDef],
|
|
741
|
-
},
|
|
742
|
-
)
|
|
743
728
|
ToolChoiceTypeDef = TypedDict(
|
|
744
729
|
"ToolChoiceTypeDef",
|
|
745
730
|
{
|
|
@@ -796,7 +781,6 @@ class InvokeModelWithBidirectionalStreamInputTypeDef(TypedDict):
|
|
|
796
781
|
chunk: NotRequired[BidirectionalInputPayloadPartTypeDef]
|
|
797
782
|
|
|
798
783
|
|
|
799
|
-
DocumentSourceUnionTypeDef = Union[DocumentSourceTypeDef, DocumentSourceOutputTypeDef]
|
|
800
784
|
GuardrailConverseImageSourceUnionTypeDef = Union[
|
|
801
785
|
GuardrailConverseImageSourceTypeDef, GuardrailConverseImageSourceOutputTypeDef
|
|
802
786
|
]
|
|
@@ -807,7 +791,6 @@ GuardrailImageBlockTypeDef = TypedDict(
|
|
|
807
791
|
"source": GuardrailImageSourceTypeDef,
|
|
808
792
|
},
|
|
809
793
|
)
|
|
810
|
-
ImageSourceUnionTypeDef = Union[ImageSourceTypeDef, ImageSourceOutputTypeDef]
|
|
811
794
|
|
|
812
795
|
|
|
813
796
|
class ContentBlockDeltaEventTypeDef(TypedDict):
|
|
@@ -820,6 +803,33 @@ class ContentBlockStartEventTypeDef(TypedDict):
|
|
|
820
803
|
contentBlockIndex: int
|
|
821
804
|
|
|
822
805
|
|
|
806
|
+
DocumentBlockOutputTypeDef = TypedDict(
|
|
807
|
+
"DocumentBlockOutputTypeDef",
|
|
808
|
+
{
|
|
809
|
+
"format": DocumentFormatType,
|
|
810
|
+
"name": str,
|
|
811
|
+
"source": DocumentSourceOutputTypeDef,
|
|
812
|
+
},
|
|
813
|
+
)
|
|
814
|
+
DocumentSourceUnionTypeDef = Union[DocumentSourceTypeDef, DocumentSourceOutputTypeDef]
|
|
815
|
+
ImageBlockOutputTypeDef = TypedDict(
|
|
816
|
+
"ImageBlockOutputTypeDef",
|
|
817
|
+
{
|
|
818
|
+
"format": ImageFormatType,
|
|
819
|
+
"source": ImageSourceOutputTypeDef,
|
|
820
|
+
},
|
|
821
|
+
)
|
|
822
|
+
ImageSourceUnionTypeDef = Union[ImageSourceTypeDef, ImageSourceOutputTypeDef]
|
|
823
|
+
VideoBlockOutputTypeDef = TypedDict(
|
|
824
|
+
"VideoBlockOutputTypeDef",
|
|
825
|
+
{
|
|
826
|
+
"format": VideoFormatType,
|
|
827
|
+
"source": VideoSourceOutputTypeDef,
|
|
828
|
+
},
|
|
829
|
+
)
|
|
830
|
+
VideoSourceUnionTypeDef = Union[VideoSourceTypeDef, VideoSourceOutputTypeDef]
|
|
831
|
+
|
|
832
|
+
|
|
823
833
|
class GuardrailConverseContentBlockOutputTypeDef(TypedDict):
|
|
824
834
|
text: NotRequired[GuardrailConverseTextBlockOutputTypeDef]
|
|
825
835
|
image: NotRequired[GuardrailConverseImageBlockOutputTypeDef]
|
|
@@ -846,14 +856,6 @@ class InvokeModelWithResponseStreamResponseTypeDef(TypedDict):
|
|
|
846
856
|
ReasoningContentBlockUnionTypeDef = Union[
|
|
847
857
|
ReasoningContentBlockTypeDef, ReasoningContentBlockOutputTypeDef
|
|
848
858
|
]
|
|
849
|
-
VideoBlockOutputTypeDef = TypedDict(
|
|
850
|
-
"VideoBlockOutputTypeDef",
|
|
851
|
-
{
|
|
852
|
-
"format": VideoFormatType,
|
|
853
|
-
"source": VideoSourceOutputTypeDef,
|
|
854
|
-
},
|
|
855
|
-
)
|
|
856
|
-
VideoSourceUnionTypeDef = Union[VideoSourceTypeDef, VideoSourceOutputTypeDef]
|
|
857
859
|
|
|
858
860
|
|
|
859
861
|
class ToolTypeDef(TypedDict):
|
|
@@ -872,14 +874,6 @@ class InvokeModelWithBidirectionalStreamRequestTypeDef(TypedDict):
|
|
|
872
874
|
body: EventStream[InvokeModelWithBidirectionalStreamInputTypeDef]
|
|
873
875
|
|
|
874
876
|
|
|
875
|
-
DocumentBlockTypeDef = TypedDict(
|
|
876
|
-
"DocumentBlockTypeDef",
|
|
877
|
-
{
|
|
878
|
-
"format": DocumentFormatType,
|
|
879
|
-
"name": str,
|
|
880
|
-
"source": DocumentSourceUnionTypeDef,
|
|
881
|
-
},
|
|
882
|
-
)
|
|
883
877
|
GuardrailConverseImageBlockTypeDef = TypedDict(
|
|
884
878
|
"GuardrailConverseImageBlockTypeDef",
|
|
885
879
|
{
|
|
@@ -894,6 +888,14 @@ class GuardrailContentBlockTypeDef(TypedDict):
|
|
|
894
888
|
image: NotRequired[GuardrailImageBlockTypeDef]
|
|
895
889
|
|
|
896
890
|
|
|
891
|
+
DocumentBlockTypeDef = TypedDict(
|
|
892
|
+
"DocumentBlockTypeDef",
|
|
893
|
+
{
|
|
894
|
+
"format": DocumentFormatType,
|
|
895
|
+
"name": str,
|
|
896
|
+
"source": DocumentSourceUnionTypeDef,
|
|
897
|
+
},
|
|
898
|
+
)
|
|
897
899
|
ImageBlockTypeDef = TypedDict(
|
|
898
900
|
"ImageBlockTypeDef",
|
|
899
901
|
{
|
|
@@ -903,15 +905,6 @@ ImageBlockTypeDef = TypedDict(
|
|
|
903
905
|
)
|
|
904
906
|
|
|
905
907
|
|
|
906
|
-
class GuardrailAssessmentTypeDef(TypedDict):
|
|
907
|
-
topicPolicy: NotRequired[GuardrailTopicPolicyAssessmentTypeDef]
|
|
908
|
-
contentPolicy: NotRequired[GuardrailContentPolicyAssessmentTypeDef]
|
|
909
|
-
wordPolicy: NotRequired[GuardrailWordPolicyAssessmentTypeDef]
|
|
910
|
-
sensitiveInformationPolicy: NotRequired[GuardrailSensitiveInformationPolicyAssessmentTypeDef]
|
|
911
|
-
contextualGroundingPolicy: NotRequired[GuardrailContextualGroundingPolicyAssessmentTypeDef]
|
|
912
|
-
invocationMetrics: NotRequired[GuardrailInvocationMetricsTypeDef]
|
|
913
|
-
|
|
914
|
-
|
|
915
908
|
class ToolResultContentBlockOutputTypeDef(TypedDict):
|
|
916
909
|
json: NotRequired[Dict[str, Any]]
|
|
917
910
|
text: NotRequired[str]
|
|
@@ -929,12 +922,20 @@ VideoBlockTypeDef = TypedDict(
|
|
|
929
922
|
)
|
|
930
923
|
|
|
931
924
|
|
|
925
|
+
class GuardrailAssessmentTypeDef(TypedDict):
|
|
926
|
+
topicPolicy: NotRequired[GuardrailTopicPolicyAssessmentTypeDef]
|
|
927
|
+
contentPolicy: NotRequired[GuardrailContentPolicyAssessmentTypeDef]
|
|
928
|
+
wordPolicy: NotRequired[GuardrailWordPolicyAssessmentTypeDef]
|
|
929
|
+
sensitiveInformationPolicy: NotRequired[GuardrailSensitiveInformationPolicyAssessmentTypeDef]
|
|
930
|
+
contextualGroundingPolicy: NotRequired[GuardrailContextualGroundingPolicyAssessmentTypeDef]
|
|
931
|
+
invocationMetrics: NotRequired[GuardrailInvocationMetricsTypeDef]
|
|
932
|
+
|
|
933
|
+
|
|
932
934
|
class ToolConfigurationTypeDef(TypedDict):
|
|
933
935
|
tools: Sequence[ToolTypeDef]
|
|
934
936
|
toolChoice: NotRequired[ToolChoiceTypeDef]
|
|
935
937
|
|
|
936
938
|
|
|
937
|
-
DocumentBlockUnionTypeDef = Union[DocumentBlockTypeDef, DocumentBlockOutputTypeDef]
|
|
938
939
|
GuardrailConverseImageBlockUnionTypeDef = Union[
|
|
939
940
|
GuardrailConverseImageBlockTypeDef, GuardrailConverseImageBlockOutputTypeDef
|
|
940
941
|
]
|
|
@@ -948,9 +949,19 @@ class ApplyGuardrailRequestTypeDef(TypedDict):
|
|
|
948
949
|
outputScope: NotRequired[GuardrailOutputScopeType]
|
|
949
950
|
|
|
950
951
|
|
|
952
|
+
DocumentBlockUnionTypeDef = Union[DocumentBlockTypeDef, DocumentBlockOutputTypeDef]
|
|
951
953
|
ImageBlockUnionTypeDef = Union[ImageBlockTypeDef, ImageBlockOutputTypeDef]
|
|
952
954
|
|
|
953
955
|
|
|
956
|
+
class ToolResultBlockOutputTypeDef(TypedDict):
|
|
957
|
+
toolUseId: str
|
|
958
|
+
content: List[ToolResultContentBlockOutputTypeDef]
|
|
959
|
+
status: NotRequired[ToolResultStatusType]
|
|
960
|
+
|
|
961
|
+
|
|
962
|
+
VideoBlockUnionTypeDef = Union[VideoBlockTypeDef, VideoBlockOutputTypeDef]
|
|
963
|
+
|
|
964
|
+
|
|
954
965
|
class ApplyGuardrailResponseTypeDef(TypedDict):
|
|
955
966
|
usage: GuardrailUsageTypeDef
|
|
956
967
|
action: GuardrailActionType
|
|
@@ -968,30 +979,11 @@ class GuardrailTraceAssessmentTypeDef(TypedDict):
|
|
|
968
979
|
actionReason: NotRequired[str]
|
|
969
980
|
|
|
970
981
|
|
|
971
|
-
class ToolResultBlockOutputTypeDef(TypedDict):
|
|
972
|
-
toolUseId: str
|
|
973
|
-
content: List[ToolResultContentBlockOutputTypeDef]
|
|
974
|
-
status: NotRequired[ToolResultStatusType]
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
VideoBlockUnionTypeDef = Union[VideoBlockTypeDef, VideoBlockOutputTypeDef]
|
|
978
|
-
|
|
979
|
-
|
|
980
982
|
class GuardrailConverseContentBlockTypeDef(TypedDict):
|
|
981
983
|
text: NotRequired[GuardrailConverseTextBlockUnionTypeDef]
|
|
982
984
|
image: NotRequired[GuardrailConverseImageBlockUnionTypeDef]
|
|
983
985
|
|
|
984
986
|
|
|
985
|
-
class ConverseStreamTraceTypeDef(TypedDict):
|
|
986
|
-
guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
|
|
987
|
-
promptRouter: NotRequired[PromptRouterTraceTypeDef]
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
class ConverseTraceTypeDef(TypedDict):
|
|
991
|
-
guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
|
|
992
|
-
promptRouter: NotRequired[PromptRouterTraceTypeDef]
|
|
993
|
-
|
|
994
|
-
|
|
995
987
|
class ContentBlockOutputTypeDef(TypedDict):
|
|
996
988
|
text: NotRequired[str]
|
|
997
989
|
image: NotRequired[ImageBlockOutputTypeDef]
|
|
@@ -1012,18 +1004,21 @@ class ToolResultContentBlockTypeDef(TypedDict):
|
|
|
1012
1004
|
video: NotRequired[VideoBlockUnionTypeDef]
|
|
1013
1005
|
|
|
1014
1006
|
|
|
1007
|
+
class ConverseStreamTraceTypeDef(TypedDict):
|
|
1008
|
+
guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
|
|
1009
|
+
promptRouter: NotRequired[PromptRouterTraceTypeDef]
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
class ConverseTraceTypeDef(TypedDict):
|
|
1013
|
+
guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
|
|
1014
|
+
promptRouter: NotRequired[PromptRouterTraceTypeDef]
|
|
1015
|
+
|
|
1016
|
+
|
|
1015
1017
|
GuardrailConverseContentBlockUnionTypeDef = Union[
|
|
1016
1018
|
GuardrailConverseContentBlockTypeDef, GuardrailConverseContentBlockOutputTypeDef
|
|
1017
1019
|
]
|
|
1018
1020
|
|
|
1019
1021
|
|
|
1020
|
-
class ConverseStreamMetadataEventTypeDef(TypedDict):
|
|
1021
|
-
usage: TokenUsageTypeDef
|
|
1022
|
-
metrics: ConverseStreamMetricsTypeDef
|
|
1023
|
-
trace: NotRequired[ConverseStreamTraceTypeDef]
|
|
1024
|
-
performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
1022
|
class MessageOutputTypeDef(TypedDict):
|
|
1028
1023
|
role: ConversationRoleType
|
|
1029
1024
|
content: List[ContentBlockOutputTypeDef]
|
|
@@ -1034,12 +1029,29 @@ ToolResultContentBlockUnionTypeDef = Union[
|
|
|
1034
1029
|
]
|
|
1035
1030
|
|
|
1036
1031
|
|
|
1032
|
+
class ConverseStreamMetadataEventTypeDef(TypedDict):
|
|
1033
|
+
usage: TokenUsageTypeDef
|
|
1034
|
+
metrics: ConverseStreamMetricsTypeDef
|
|
1035
|
+
trace: NotRequired[ConverseStreamTraceTypeDef]
|
|
1036
|
+
performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
|
|
1037
|
+
|
|
1038
|
+
|
|
1037
1039
|
class SystemContentBlockTypeDef(TypedDict):
|
|
1038
1040
|
text: NotRequired[str]
|
|
1039
1041
|
guardContent: NotRequired[GuardrailConverseContentBlockUnionTypeDef]
|
|
1040
1042
|
cachePoint: NotRequired[CachePointBlockTypeDef]
|
|
1041
1043
|
|
|
1042
1044
|
|
|
1045
|
+
class ConverseOutputTypeDef(TypedDict):
|
|
1046
|
+
message: NotRequired[MessageOutputTypeDef]
|
|
1047
|
+
|
|
1048
|
+
|
|
1049
|
+
class ToolResultBlockTypeDef(TypedDict):
|
|
1050
|
+
toolUseId: str
|
|
1051
|
+
content: Sequence[ToolResultContentBlockUnionTypeDef]
|
|
1052
|
+
status: NotRequired[ToolResultStatusType]
|
|
1053
|
+
|
|
1054
|
+
|
|
1043
1055
|
class ConverseStreamOutputTypeDef(TypedDict):
|
|
1044
1056
|
messageStart: NotRequired[MessageStartEventTypeDef]
|
|
1045
1057
|
contentBlockStart: NotRequired[ContentBlockStartEventTypeDef]
|
|
@@ -1054,21 +1066,6 @@ class ConverseStreamOutputTypeDef(TypedDict):
|
|
|
1054
1066
|
serviceUnavailableException: NotRequired[ServiceUnavailableExceptionTypeDef]
|
|
1055
1067
|
|
|
1056
1068
|
|
|
1057
|
-
class ConverseOutputTypeDef(TypedDict):
|
|
1058
|
-
message: NotRequired[MessageOutputTypeDef]
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
class ToolResultBlockTypeDef(TypedDict):
|
|
1062
|
-
toolUseId: str
|
|
1063
|
-
content: Sequence[ToolResultContentBlockUnionTypeDef]
|
|
1064
|
-
status: NotRequired[ToolResultStatusType]
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
class ConverseStreamResponseTypeDef(TypedDict):
|
|
1068
|
-
stream: EventStream[ConverseStreamOutputTypeDef]
|
|
1069
|
-
ResponseMetadata: ResponseMetadataTypeDef
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
1069
|
class ConverseResponseTypeDef(TypedDict):
|
|
1073
1070
|
output: ConverseOutputTypeDef
|
|
1074
1071
|
stopReason: StopReasonType
|
|
@@ -1083,6 +1080,11 @@ class ConverseResponseTypeDef(TypedDict):
|
|
|
1083
1080
|
ToolResultBlockUnionTypeDef = Union[ToolResultBlockTypeDef, ToolResultBlockOutputTypeDef]
|
|
1084
1081
|
|
|
1085
1082
|
|
|
1083
|
+
class ConverseStreamResponseTypeDef(TypedDict):
|
|
1084
|
+
stream: EventStream[ConverseStreamOutputTypeDef]
|
|
1085
|
+
ResponseMetadata: ResponseMetadataTypeDef
|
|
1086
|
+
|
|
1087
|
+
|
|
1086
1088
|
class ContentBlockTypeDef(TypedDict):
|
|
1087
1089
|
text: NotRequired[str]
|
|
1088
1090
|
image: NotRequired[ImageBlockUnionTypeDef]
|
|
@@ -342,12 +342,9 @@ class GuardrailStreamConfigurationTypeDef(TypedDict):
|
|
|
342
342
|
class PromptRouterTraceTypeDef(TypedDict):
|
|
343
343
|
invokedModelId: NotRequired[str]
|
|
344
344
|
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
"bytes": NotRequired[bytes],
|
|
349
|
-
},
|
|
350
|
-
)
|
|
345
|
+
class S3LocationTypeDef(TypedDict):
|
|
346
|
+
uri: str
|
|
347
|
+
bucketOwner: NotRequired[str]
|
|
351
348
|
|
|
352
349
|
class GetAsyncInvokeRequestTypeDef(TypedDict):
|
|
353
350
|
invocationArn: str
|
|
@@ -440,12 +437,6 @@ GuardrailTopicTypeDef = TypedDict(
|
|
|
440
437
|
"detected": NotRequired[bool],
|
|
441
438
|
},
|
|
442
439
|
)
|
|
443
|
-
ImageSourceOutputTypeDef = TypedDict(
|
|
444
|
-
"ImageSourceOutputTypeDef",
|
|
445
|
-
{
|
|
446
|
-
"bytes": NotRequired[bytes],
|
|
447
|
-
},
|
|
448
|
-
)
|
|
449
440
|
|
|
450
441
|
class ModelTimeoutExceptionTypeDef(TypedDict):
|
|
451
442
|
message: NotRequired[str]
|
|
@@ -467,10 +458,6 @@ class ReasoningTextBlockTypeDef(TypedDict):
|
|
|
467
458
|
text: str
|
|
468
459
|
signature: NotRequired[str]
|
|
469
460
|
|
|
470
|
-
class S3LocationTypeDef(TypedDict):
|
|
471
|
-
uri: str
|
|
472
|
-
bucketOwner: NotRequired[str]
|
|
473
|
-
|
|
474
461
|
class SpecificToolChoiceTypeDef(TypedDict):
|
|
475
462
|
name: str
|
|
476
463
|
|
|
@@ -509,12 +496,6 @@ BidirectionalInputPayloadPartTypeDef = TypedDict(
|
|
|
509
496
|
"bytes": NotRequired[BlobTypeDef],
|
|
510
497
|
},
|
|
511
498
|
)
|
|
512
|
-
DocumentSourceTypeDef = TypedDict(
|
|
513
|
-
"DocumentSourceTypeDef",
|
|
514
|
-
{
|
|
515
|
-
"bytes": NotRequired[BlobTypeDef],
|
|
516
|
-
},
|
|
517
|
-
)
|
|
518
499
|
GuardrailConverseImageSourceTypeDef = TypedDict(
|
|
519
500
|
"GuardrailConverseImageSourceTypeDef",
|
|
520
501
|
{
|
|
@@ -527,12 +508,6 @@ GuardrailImageSourceTypeDef = TypedDict(
|
|
|
527
508
|
"bytes": NotRequired[BlobTypeDef],
|
|
528
509
|
},
|
|
529
510
|
)
|
|
530
|
-
ImageSourceTypeDef = TypedDict(
|
|
531
|
-
"ImageSourceTypeDef",
|
|
532
|
-
{
|
|
533
|
-
"bytes": NotRequired[BlobTypeDef],
|
|
534
|
-
},
|
|
535
|
-
)
|
|
536
511
|
|
|
537
512
|
class InvokeModelRequestTypeDef(TypedDict):
|
|
538
513
|
modelId: str
|
|
@@ -562,12 +537,46 @@ class ContentBlockDeltaTypeDef(TypedDict):
|
|
|
562
537
|
class ContentBlockStartTypeDef(TypedDict):
|
|
563
538
|
toolUse: NotRequired[ToolUseBlockStartTypeDef]
|
|
564
539
|
|
|
565
|
-
|
|
566
|
-
"
|
|
540
|
+
DocumentSourceOutputTypeDef = TypedDict(
|
|
541
|
+
"DocumentSourceOutputTypeDef",
|
|
567
542
|
{
|
|
568
|
-
"
|
|
569
|
-
"
|
|
570
|
-
|
|
543
|
+
"bytes": NotRequired[bytes],
|
|
544
|
+
"s3Location": NotRequired[S3LocationTypeDef],
|
|
545
|
+
},
|
|
546
|
+
)
|
|
547
|
+
DocumentSourceTypeDef = TypedDict(
|
|
548
|
+
"DocumentSourceTypeDef",
|
|
549
|
+
{
|
|
550
|
+
"bytes": NotRequired[BlobTypeDef],
|
|
551
|
+
"s3Location": NotRequired[S3LocationTypeDef],
|
|
552
|
+
},
|
|
553
|
+
)
|
|
554
|
+
ImageSourceOutputTypeDef = TypedDict(
|
|
555
|
+
"ImageSourceOutputTypeDef",
|
|
556
|
+
{
|
|
557
|
+
"bytes": NotRequired[bytes],
|
|
558
|
+
"s3Location": NotRequired[S3LocationTypeDef],
|
|
559
|
+
},
|
|
560
|
+
)
|
|
561
|
+
ImageSourceTypeDef = TypedDict(
|
|
562
|
+
"ImageSourceTypeDef",
|
|
563
|
+
{
|
|
564
|
+
"bytes": NotRequired[BlobTypeDef],
|
|
565
|
+
"s3Location": NotRequired[S3LocationTypeDef],
|
|
566
|
+
},
|
|
567
|
+
)
|
|
568
|
+
VideoSourceOutputTypeDef = TypedDict(
|
|
569
|
+
"VideoSourceOutputTypeDef",
|
|
570
|
+
{
|
|
571
|
+
"bytes": NotRequired[bytes],
|
|
572
|
+
"s3Location": NotRequired[S3LocationTypeDef],
|
|
573
|
+
},
|
|
574
|
+
)
|
|
575
|
+
VideoSourceTypeDef = TypedDict(
|
|
576
|
+
"VideoSourceTypeDef",
|
|
577
|
+
{
|
|
578
|
+
"bytes": NotRequired[BlobTypeDef],
|
|
579
|
+
"s3Location": NotRequired[S3LocationTypeDef],
|
|
571
580
|
},
|
|
572
581
|
)
|
|
573
582
|
|
|
@@ -603,14 +612,6 @@ class GuardrailSensitiveInformationPolicyAssessmentTypeDef(TypedDict):
|
|
|
603
612
|
class GuardrailTopicPolicyAssessmentTypeDef(TypedDict):
|
|
604
613
|
topics: List[GuardrailTopicTypeDef]
|
|
605
614
|
|
|
606
|
-
ImageBlockOutputTypeDef = TypedDict(
|
|
607
|
-
"ImageBlockOutputTypeDef",
|
|
608
|
-
{
|
|
609
|
-
"format": ImageFormatType,
|
|
610
|
-
"source": ImageSourceOutputTypeDef,
|
|
611
|
-
},
|
|
612
|
-
)
|
|
613
|
-
|
|
614
615
|
class InvokeModelWithBidirectionalStreamOutputTypeDef(TypedDict):
|
|
615
616
|
chunk: NotRequired[BidirectionalOutputPayloadPartTypeDef]
|
|
616
617
|
internalServerException: NotRequired[InternalServerExceptionTypeDef]
|
|
@@ -654,20 +655,6 @@ class ReasoningContentBlockTypeDef(TypedDict):
|
|
|
654
655
|
reasoningText: NotRequired[ReasoningTextBlockTypeDef]
|
|
655
656
|
redactedContent: NotRequired[BlobTypeDef]
|
|
656
657
|
|
|
657
|
-
VideoSourceOutputTypeDef = TypedDict(
|
|
658
|
-
"VideoSourceOutputTypeDef",
|
|
659
|
-
{
|
|
660
|
-
"bytes": NotRequired[bytes],
|
|
661
|
-
"s3Location": NotRequired[S3LocationTypeDef],
|
|
662
|
-
},
|
|
663
|
-
)
|
|
664
|
-
VideoSourceTypeDef = TypedDict(
|
|
665
|
-
"VideoSourceTypeDef",
|
|
666
|
-
{
|
|
667
|
-
"bytes": NotRequired[BlobTypeDef],
|
|
668
|
-
"s3Location": NotRequired[S3LocationTypeDef],
|
|
669
|
-
},
|
|
670
|
-
)
|
|
671
658
|
ToolChoiceTypeDef = TypedDict(
|
|
672
659
|
"ToolChoiceTypeDef",
|
|
673
660
|
{
|
|
@@ -717,7 +704,6 @@ class StartAsyncInvokeRequestTypeDef(TypedDict):
|
|
|
717
704
|
class InvokeModelWithBidirectionalStreamInputTypeDef(TypedDict):
|
|
718
705
|
chunk: NotRequired[BidirectionalInputPayloadPartTypeDef]
|
|
719
706
|
|
|
720
|
-
DocumentSourceUnionTypeDef = Union[DocumentSourceTypeDef, DocumentSourceOutputTypeDef]
|
|
721
707
|
GuardrailConverseImageSourceUnionTypeDef = Union[
|
|
722
708
|
GuardrailConverseImageSourceTypeDef, GuardrailConverseImageSourceOutputTypeDef
|
|
723
709
|
]
|
|
@@ -728,7 +714,6 @@ GuardrailImageBlockTypeDef = TypedDict(
|
|
|
728
714
|
"source": GuardrailImageSourceTypeDef,
|
|
729
715
|
},
|
|
730
716
|
)
|
|
731
|
-
ImageSourceUnionTypeDef = Union[ImageSourceTypeDef, ImageSourceOutputTypeDef]
|
|
732
717
|
|
|
733
718
|
class ContentBlockDeltaEventTypeDef(TypedDict):
|
|
734
719
|
delta: ContentBlockDeltaTypeDef
|
|
@@ -738,6 +723,32 @@ class ContentBlockStartEventTypeDef(TypedDict):
|
|
|
738
723
|
start: ContentBlockStartTypeDef
|
|
739
724
|
contentBlockIndex: int
|
|
740
725
|
|
|
726
|
+
DocumentBlockOutputTypeDef = TypedDict(
|
|
727
|
+
"DocumentBlockOutputTypeDef",
|
|
728
|
+
{
|
|
729
|
+
"format": DocumentFormatType,
|
|
730
|
+
"name": str,
|
|
731
|
+
"source": DocumentSourceOutputTypeDef,
|
|
732
|
+
},
|
|
733
|
+
)
|
|
734
|
+
DocumentSourceUnionTypeDef = Union[DocumentSourceTypeDef, DocumentSourceOutputTypeDef]
|
|
735
|
+
ImageBlockOutputTypeDef = TypedDict(
|
|
736
|
+
"ImageBlockOutputTypeDef",
|
|
737
|
+
{
|
|
738
|
+
"format": ImageFormatType,
|
|
739
|
+
"source": ImageSourceOutputTypeDef,
|
|
740
|
+
},
|
|
741
|
+
)
|
|
742
|
+
ImageSourceUnionTypeDef = Union[ImageSourceTypeDef, ImageSourceOutputTypeDef]
|
|
743
|
+
VideoBlockOutputTypeDef = TypedDict(
|
|
744
|
+
"VideoBlockOutputTypeDef",
|
|
745
|
+
{
|
|
746
|
+
"format": VideoFormatType,
|
|
747
|
+
"source": VideoSourceOutputTypeDef,
|
|
748
|
+
},
|
|
749
|
+
)
|
|
750
|
+
VideoSourceUnionTypeDef = Union[VideoSourceTypeDef, VideoSourceOutputTypeDef]
|
|
751
|
+
|
|
741
752
|
class GuardrailConverseContentBlockOutputTypeDef(TypedDict):
|
|
742
753
|
text: NotRequired[GuardrailConverseTextBlockOutputTypeDef]
|
|
743
754
|
image: NotRequired[GuardrailConverseImageBlockOutputTypeDef]
|
|
@@ -760,14 +771,6 @@ class InvokeModelWithResponseStreamResponseTypeDef(TypedDict):
|
|
|
760
771
|
ReasoningContentBlockUnionTypeDef = Union[
|
|
761
772
|
ReasoningContentBlockTypeDef, ReasoningContentBlockOutputTypeDef
|
|
762
773
|
]
|
|
763
|
-
VideoBlockOutputTypeDef = TypedDict(
|
|
764
|
-
"VideoBlockOutputTypeDef",
|
|
765
|
-
{
|
|
766
|
-
"format": VideoFormatType,
|
|
767
|
-
"source": VideoSourceOutputTypeDef,
|
|
768
|
-
},
|
|
769
|
-
)
|
|
770
|
-
VideoSourceUnionTypeDef = Union[VideoSourceTypeDef, VideoSourceOutputTypeDef]
|
|
771
774
|
|
|
772
775
|
class ToolTypeDef(TypedDict):
|
|
773
776
|
toolSpec: NotRequired[ToolSpecificationTypeDef]
|
|
@@ -782,14 +785,6 @@ class InvokeModelWithBidirectionalStreamRequestTypeDef(TypedDict):
|
|
|
782
785
|
modelId: str
|
|
783
786
|
body: EventStream[InvokeModelWithBidirectionalStreamInputTypeDef]
|
|
784
787
|
|
|
785
|
-
DocumentBlockTypeDef = TypedDict(
|
|
786
|
-
"DocumentBlockTypeDef",
|
|
787
|
-
{
|
|
788
|
-
"format": DocumentFormatType,
|
|
789
|
-
"name": str,
|
|
790
|
-
"source": DocumentSourceUnionTypeDef,
|
|
791
|
-
},
|
|
792
|
-
)
|
|
793
788
|
GuardrailConverseImageBlockTypeDef = TypedDict(
|
|
794
789
|
"GuardrailConverseImageBlockTypeDef",
|
|
795
790
|
{
|
|
@@ -802,6 +797,14 @@ class GuardrailContentBlockTypeDef(TypedDict):
|
|
|
802
797
|
text: NotRequired[GuardrailTextBlockTypeDef]
|
|
803
798
|
image: NotRequired[GuardrailImageBlockTypeDef]
|
|
804
799
|
|
|
800
|
+
DocumentBlockTypeDef = TypedDict(
|
|
801
|
+
"DocumentBlockTypeDef",
|
|
802
|
+
{
|
|
803
|
+
"format": DocumentFormatType,
|
|
804
|
+
"name": str,
|
|
805
|
+
"source": DocumentSourceUnionTypeDef,
|
|
806
|
+
},
|
|
807
|
+
)
|
|
805
808
|
ImageBlockTypeDef = TypedDict(
|
|
806
809
|
"ImageBlockTypeDef",
|
|
807
810
|
{
|
|
@@ -810,14 +813,6 @@ ImageBlockTypeDef = TypedDict(
|
|
|
810
813
|
},
|
|
811
814
|
)
|
|
812
815
|
|
|
813
|
-
class GuardrailAssessmentTypeDef(TypedDict):
|
|
814
|
-
topicPolicy: NotRequired[GuardrailTopicPolicyAssessmentTypeDef]
|
|
815
|
-
contentPolicy: NotRequired[GuardrailContentPolicyAssessmentTypeDef]
|
|
816
|
-
wordPolicy: NotRequired[GuardrailWordPolicyAssessmentTypeDef]
|
|
817
|
-
sensitiveInformationPolicy: NotRequired[GuardrailSensitiveInformationPolicyAssessmentTypeDef]
|
|
818
|
-
contextualGroundingPolicy: NotRequired[GuardrailContextualGroundingPolicyAssessmentTypeDef]
|
|
819
|
-
invocationMetrics: NotRequired[GuardrailInvocationMetricsTypeDef]
|
|
820
|
-
|
|
821
816
|
class ToolResultContentBlockOutputTypeDef(TypedDict):
|
|
822
817
|
json: NotRequired[Dict[str, Any]]
|
|
823
818
|
text: NotRequired[str]
|
|
@@ -833,11 +828,18 @@ VideoBlockTypeDef = TypedDict(
|
|
|
833
828
|
},
|
|
834
829
|
)
|
|
835
830
|
|
|
831
|
+
class GuardrailAssessmentTypeDef(TypedDict):
|
|
832
|
+
topicPolicy: NotRequired[GuardrailTopicPolicyAssessmentTypeDef]
|
|
833
|
+
contentPolicy: NotRequired[GuardrailContentPolicyAssessmentTypeDef]
|
|
834
|
+
wordPolicy: NotRequired[GuardrailWordPolicyAssessmentTypeDef]
|
|
835
|
+
sensitiveInformationPolicy: NotRequired[GuardrailSensitiveInformationPolicyAssessmentTypeDef]
|
|
836
|
+
contextualGroundingPolicy: NotRequired[GuardrailContextualGroundingPolicyAssessmentTypeDef]
|
|
837
|
+
invocationMetrics: NotRequired[GuardrailInvocationMetricsTypeDef]
|
|
838
|
+
|
|
836
839
|
class ToolConfigurationTypeDef(TypedDict):
|
|
837
840
|
tools: Sequence[ToolTypeDef]
|
|
838
841
|
toolChoice: NotRequired[ToolChoiceTypeDef]
|
|
839
842
|
|
|
840
|
-
DocumentBlockUnionTypeDef = Union[DocumentBlockTypeDef, DocumentBlockOutputTypeDef]
|
|
841
843
|
GuardrailConverseImageBlockUnionTypeDef = Union[
|
|
842
844
|
GuardrailConverseImageBlockTypeDef, GuardrailConverseImageBlockOutputTypeDef
|
|
843
845
|
]
|
|
@@ -849,8 +851,16 @@ class ApplyGuardrailRequestTypeDef(TypedDict):
|
|
|
849
851
|
content: Sequence[GuardrailContentBlockTypeDef]
|
|
850
852
|
outputScope: NotRequired[GuardrailOutputScopeType]
|
|
851
853
|
|
|
854
|
+
DocumentBlockUnionTypeDef = Union[DocumentBlockTypeDef, DocumentBlockOutputTypeDef]
|
|
852
855
|
ImageBlockUnionTypeDef = Union[ImageBlockTypeDef, ImageBlockOutputTypeDef]
|
|
853
856
|
|
|
857
|
+
class ToolResultBlockOutputTypeDef(TypedDict):
|
|
858
|
+
toolUseId: str
|
|
859
|
+
content: List[ToolResultContentBlockOutputTypeDef]
|
|
860
|
+
status: NotRequired[ToolResultStatusType]
|
|
861
|
+
|
|
862
|
+
VideoBlockUnionTypeDef = Union[VideoBlockTypeDef, VideoBlockOutputTypeDef]
|
|
863
|
+
|
|
854
864
|
class ApplyGuardrailResponseTypeDef(TypedDict):
|
|
855
865
|
usage: GuardrailUsageTypeDef
|
|
856
866
|
action: GuardrailActionType
|
|
@@ -866,25 +876,10 @@ class GuardrailTraceAssessmentTypeDef(TypedDict):
|
|
|
866
876
|
outputAssessments: NotRequired[Dict[str, List[GuardrailAssessmentTypeDef]]]
|
|
867
877
|
actionReason: NotRequired[str]
|
|
868
878
|
|
|
869
|
-
class ToolResultBlockOutputTypeDef(TypedDict):
|
|
870
|
-
toolUseId: str
|
|
871
|
-
content: List[ToolResultContentBlockOutputTypeDef]
|
|
872
|
-
status: NotRequired[ToolResultStatusType]
|
|
873
|
-
|
|
874
|
-
VideoBlockUnionTypeDef = Union[VideoBlockTypeDef, VideoBlockOutputTypeDef]
|
|
875
|
-
|
|
876
879
|
class GuardrailConverseContentBlockTypeDef(TypedDict):
|
|
877
880
|
text: NotRequired[GuardrailConverseTextBlockUnionTypeDef]
|
|
878
881
|
image: NotRequired[GuardrailConverseImageBlockUnionTypeDef]
|
|
879
882
|
|
|
880
|
-
class ConverseStreamTraceTypeDef(TypedDict):
|
|
881
|
-
guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
|
|
882
|
-
promptRouter: NotRequired[PromptRouterTraceTypeDef]
|
|
883
|
-
|
|
884
|
-
class ConverseTraceTypeDef(TypedDict):
|
|
885
|
-
guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
|
|
886
|
-
promptRouter: NotRequired[PromptRouterTraceTypeDef]
|
|
887
|
-
|
|
888
883
|
class ContentBlockOutputTypeDef(TypedDict):
|
|
889
884
|
text: NotRequired[str]
|
|
890
885
|
image: NotRequired[ImageBlockOutputTypeDef]
|
|
@@ -903,16 +898,18 @@ class ToolResultContentBlockTypeDef(TypedDict):
|
|
|
903
898
|
document: NotRequired[DocumentBlockUnionTypeDef]
|
|
904
899
|
video: NotRequired[VideoBlockUnionTypeDef]
|
|
905
900
|
|
|
901
|
+
class ConverseStreamTraceTypeDef(TypedDict):
|
|
902
|
+
guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
|
|
903
|
+
promptRouter: NotRequired[PromptRouterTraceTypeDef]
|
|
904
|
+
|
|
905
|
+
class ConverseTraceTypeDef(TypedDict):
|
|
906
|
+
guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
|
|
907
|
+
promptRouter: NotRequired[PromptRouterTraceTypeDef]
|
|
908
|
+
|
|
906
909
|
GuardrailConverseContentBlockUnionTypeDef = Union[
|
|
907
910
|
GuardrailConverseContentBlockTypeDef, GuardrailConverseContentBlockOutputTypeDef
|
|
908
911
|
]
|
|
909
912
|
|
|
910
|
-
class ConverseStreamMetadataEventTypeDef(TypedDict):
|
|
911
|
-
usage: TokenUsageTypeDef
|
|
912
|
-
metrics: ConverseStreamMetricsTypeDef
|
|
913
|
-
trace: NotRequired[ConverseStreamTraceTypeDef]
|
|
914
|
-
performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
|
|
915
|
-
|
|
916
913
|
class MessageOutputTypeDef(TypedDict):
|
|
917
914
|
role: ConversationRoleType
|
|
918
915
|
content: List[ContentBlockOutputTypeDef]
|
|
@@ -921,11 +918,25 @@ ToolResultContentBlockUnionTypeDef = Union[
|
|
|
921
918
|
ToolResultContentBlockTypeDef, ToolResultContentBlockOutputTypeDef
|
|
922
919
|
]
|
|
923
920
|
|
|
921
|
+
class ConverseStreamMetadataEventTypeDef(TypedDict):
|
|
922
|
+
usage: TokenUsageTypeDef
|
|
923
|
+
metrics: ConverseStreamMetricsTypeDef
|
|
924
|
+
trace: NotRequired[ConverseStreamTraceTypeDef]
|
|
925
|
+
performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
|
|
926
|
+
|
|
924
927
|
class SystemContentBlockTypeDef(TypedDict):
|
|
925
928
|
text: NotRequired[str]
|
|
926
929
|
guardContent: NotRequired[GuardrailConverseContentBlockUnionTypeDef]
|
|
927
930
|
cachePoint: NotRequired[CachePointBlockTypeDef]
|
|
928
931
|
|
|
932
|
+
class ConverseOutputTypeDef(TypedDict):
|
|
933
|
+
message: NotRequired[MessageOutputTypeDef]
|
|
934
|
+
|
|
935
|
+
class ToolResultBlockTypeDef(TypedDict):
|
|
936
|
+
toolUseId: str
|
|
937
|
+
content: Sequence[ToolResultContentBlockUnionTypeDef]
|
|
938
|
+
status: NotRequired[ToolResultStatusType]
|
|
939
|
+
|
|
929
940
|
class ConverseStreamOutputTypeDef(TypedDict):
|
|
930
941
|
messageStart: NotRequired[MessageStartEventTypeDef]
|
|
931
942
|
contentBlockStart: NotRequired[ContentBlockStartEventTypeDef]
|
|
@@ -939,18 +950,6 @@ class ConverseStreamOutputTypeDef(TypedDict):
|
|
|
939
950
|
throttlingException: NotRequired[ThrottlingExceptionTypeDef]
|
|
940
951
|
serviceUnavailableException: NotRequired[ServiceUnavailableExceptionTypeDef]
|
|
941
952
|
|
|
942
|
-
class ConverseOutputTypeDef(TypedDict):
|
|
943
|
-
message: NotRequired[MessageOutputTypeDef]
|
|
944
|
-
|
|
945
|
-
class ToolResultBlockTypeDef(TypedDict):
|
|
946
|
-
toolUseId: str
|
|
947
|
-
content: Sequence[ToolResultContentBlockUnionTypeDef]
|
|
948
|
-
status: NotRequired[ToolResultStatusType]
|
|
949
|
-
|
|
950
|
-
class ConverseStreamResponseTypeDef(TypedDict):
|
|
951
|
-
stream: EventStream[ConverseStreamOutputTypeDef]
|
|
952
|
-
ResponseMetadata: ResponseMetadataTypeDef
|
|
953
|
-
|
|
954
953
|
class ConverseResponseTypeDef(TypedDict):
|
|
955
954
|
output: ConverseOutputTypeDef
|
|
956
955
|
stopReason: StopReasonType
|
|
@@ -963,6 +962,10 @@ class ConverseResponseTypeDef(TypedDict):
|
|
|
963
962
|
|
|
964
963
|
ToolResultBlockUnionTypeDef = Union[ToolResultBlockTypeDef, ToolResultBlockOutputTypeDef]
|
|
965
964
|
|
|
965
|
+
class ConverseStreamResponseTypeDef(TypedDict):
|
|
966
|
+
stream: EventStream[ConverseStreamOutputTypeDef]
|
|
967
|
+
ResponseMetadata: ResponseMetadataTypeDef
|
|
968
|
+
|
|
966
969
|
class ContentBlockTypeDef(TypedDict):
|
|
967
970
|
text: NotRequired[str]
|
|
968
971
|
image: NotRequired[ImageBlockUnionTypeDef]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: types-boto3-bedrock-runtime
|
|
3
|
-
Version: 1.38.
|
|
4
|
-
Summary: Type annotations for boto3 BedrockRuntime 1.38.
|
|
3
|
+
Version: 1.38.4
|
|
4
|
+
Summary: Type annotations for boto3 BedrockRuntime 1.38.4 service generated with mypy-boto3-builder 8.10.1
|
|
5
5
|
Home-page: https://github.com/youtype/mypy_boto3_builder
|
|
6
6
|
Author: Vlad Emelianov
|
|
7
7
|
Author-email: vlad.emelianov.nz@gmail.com
|
|
@@ -57,7 +57,7 @@ Dynamic: summary
|
|
|
57
57
|

|
|
58
58
|
|
|
59
59
|
Type annotations for
|
|
60
|
-
[boto3 BedrockRuntime 1.38.
|
|
60
|
+
[boto3 BedrockRuntime 1.38.4](https://pypi.org/project/boto3/) compatible with
|
|
61
61
|
[VSCode](https://code.visualstudio.com/),
|
|
62
62
|
[PyCharm](https://www.jetbrains.com/pycharm/),
|
|
63
63
|
[Emacs](https://www.gnu.org/software/emacs/),
|
|
@@ -119,7 +119,7 @@ You can generate type annotations for `boto3` package locally with
|
|
|
119
119
|
isolation.
|
|
120
120
|
|
|
121
121
|
1. Run mypy-boto3-builder in your package root directory:
|
|
122
|
-
`uvx --with 'boto3==1.38.
|
|
122
|
+
`uvx --with 'boto3==1.38.4' mypy-boto3-builder`
|
|
123
123
|
2. Select `boto3` AWS SDK.
|
|
124
124
|
3. Add `BedrockRuntime` service.
|
|
125
125
|
4. Use provided commands to install generated packages.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|