types-boto3-bedrock-runtime 1.40.62__py3-none-any.whl → 1.41.0__py3-none-any.whl
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/__main__.py +4 -4
- types_boto3_bedrock_runtime/client.py +14 -18
- types_boto3_bedrock_runtime/client.pyi +14 -18
- types_boto3_bedrock_runtime/literals.py +6 -1
- types_boto3_bedrock_runtime/literals.pyi +6 -1
- types_boto3_bedrock_runtime/type_defs.py +106 -52
- types_boto3_bedrock_runtime/type_defs.pyi +101 -52
- types_boto3_bedrock_runtime/version.py +1 -1
- {types_boto3_bedrock_runtime-1.40.62.dist-info → types_boto3_bedrock_runtime-1.41.0.dist-info}/METADATA +11 -25
- types_boto3_bedrock_runtime-1.41.0.dist-info/RECORD +18 -0
- types_boto3_bedrock_runtime-1.40.62.dist-info/RECORD +0 -18
- {types_boto3_bedrock_runtime-1.40.62.dist-info → types_boto3_bedrock_runtime-1.41.0.dist-info}/WHEEL +0 -0
- {types_boto3_bedrock_runtime-1.40.62.dist-info → types_boto3_bedrock_runtime-1.41.0.dist-info}/licenses/LICENSE +0 -0
- {types_boto3_bedrock_runtime-1.40.62.dist-info → types_boto3_bedrock_runtime-1.41.0.dist-info}/top_level.txt +0 -0
|
@@ -17,6 +17,7 @@ Usage::
|
|
|
17
17
|
from __future__ import annotations
|
|
18
18
|
|
|
19
19
|
import sys
|
|
20
|
+
from collections.abc import Mapping, Sequence
|
|
20
21
|
from datetime import datetime
|
|
21
22
|
from typing import IO, Any, Union
|
|
22
23
|
|
|
@@ -49,19 +50,15 @@ from .literals import (
|
|
|
49
50
|
GuardrailWordPolicyActionType,
|
|
50
51
|
ImageFormatType,
|
|
51
52
|
PerformanceConfigLatencyType,
|
|
53
|
+
ServiceTierTypeType,
|
|
52
54
|
SortOrderType,
|
|
53
55
|
StopReasonType,
|
|
54
56
|
ToolResultStatusType,
|
|
57
|
+
ToolUseTypeType,
|
|
55
58
|
TraceType,
|
|
56
59
|
VideoFormatType,
|
|
57
60
|
)
|
|
58
61
|
|
|
59
|
-
if sys.version_info >= (3, 9):
|
|
60
|
-
from builtins import dict as Dict
|
|
61
|
-
from builtins import list as List
|
|
62
|
-
from collections.abc import Mapping, Sequence
|
|
63
|
-
else:
|
|
64
|
-
from typing import Dict, List, Mapping, Sequence
|
|
65
62
|
if sys.version_info >= (3, 12):
|
|
66
63
|
from typing import Literal, NotRequired, TypedDict
|
|
67
64
|
else:
|
|
@@ -216,6 +213,12 @@ __all__ = (
|
|
|
216
213
|
"ResponseMetadataTypeDef",
|
|
217
214
|
"ResponseStreamTypeDef",
|
|
218
215
|
"S3LocationTypeDef",
|
|
216
|
+
"SearchResultBlockOutputTypeDef",
|
|
217
|
+
"SearchResultBlockTypeDef",
|
|
218
|
+
"SearchResultBlockUnionTypeDef",
|
|
219
|
+
"SearchResultContentBlockTypeDef",
|
|
220
|
+
"SearchResultLocationTypeDef",
|
|
221
|
+
"ServiceTierTypeDef",
|
|
219
222
|
"ServiceUnavailableExceptionTypeDef",
|
|
220
223
|
"SpecificToolChoiceTypeDef",
|
|
221
224
|
"StartAsyncInvokeRequestTypeDef",
|
|
@@ -271,7 +274,7 @@ class GuardrailUsageTypeDef(TypedDict):
|
|
|
271
274
|
class ResponseMetadataTypeDef(TypedDict):
|
|
272
275
|
RequestId: str
|
|
273
276
|
HTTPStatusCode: int
|
|
274
|
-
HTTPHeaders:
|
|
277
|
+
HTTPHeaders: dict[str, str]
|
|
275
278
|
RetryAttempts: int
|
|
276
279
|
HostId: NotRequired[str]
|
|
277
280
|
|
|
@@ -312,6 +315,11 @@ class DocumentPageLocationTypeDef(TypedDict):
|
|
|
312
315
|
start: NotRequired[int]
|
|
313
316
|
end: NotRequired[int]
|
|
314
317
|
|
|
318
|
+
class SearchResultLocationTypeDef(TypedDict):
|
|
319
|
+
searchResultIndex: NotRequired[int]
|
|
320
|
+
start: NotRequired[int]
|
|
321
|
+
end: NotRequired[int]
|
|
322
|
+
|
|
315
323
|
class WebLocationTypeDef(TypedDict):
|
|
316
324
|
url: NotRequired[str]
|
|
317
325
|
domain: NotRequired[str]
|
|
@@ -344,8 +352,8 @@ ToolUseBlockOutputTypeDef = TypedDict(
|
|
|
344
352
|
{
|
|
345
353
|
"toolUseId": str,
|
|
346
354
|
"name": str,
|
|
347
|
-
"input":
|
|
348
|
-
"type": NotRequired[
|
|
355
|
+
"input": dict[str, Any],
|
|
356
|
+
"type": NotRequired[ToolUseTypeType],
|
|
349
357
|
},
|
|
350
358
|
)
|
|
351
359
|
ToolResultBlockStartTypeDef = TypedDict(
|
|
@@ -361,7 +369,7 @@ ToolUseBlockStartTypeDef = TypedDict(
|
|
|
361
369
|
{
|
|
362
370
|
"toolUseId": str,
|
|
363
371
|
"name": str,
|
|
364
|
-
"type": NotRequired[
|
|
372
|
+
"type": NotRequired[ToolUseTypeType],
|
|
365
373
|
},
|
|
366
374
|
)
|
|
367
375
|
|
|
@@ -388,6 +396,13 @@ class PerformanceConfigurationTypeDef(TypedDict):
|
|
|
388
396
|
class PromptVariableValuesTypeDef(TypedDict):
|
|
389
397
|
text: NotRequired[str]
|
|
390
398
|
|
|
399
|
+
ServiceTierTypeDef = TypedDict(
|
|
400
|
+
"ServiceTierTypeDef",
|
|
401
|
+
{
|
|
402
|
+
"type": ServiceTierTypeType,
|
|
403
|
+
},
|
|
404
|
+
)
|
|
405
|
+
|
|
391
406
|
class TokenUsageTypeDef(TypedDict):
|
|
392
407
|
inputTokens: int
|
|
393
408
|
outputTokens: int
|
|
@@ -406,7 +421,7 @@ class MessageStartEventTypeDef(TypedDict):
|
|
|
406
421
|
|
|
407
422
|
class MessageStopEventTypeDef(TypedDict):
|
|
408
423
|
stopReason: StopReasonType
|
|
409
|
-
additionalModelResponseFields: NotRequired[
|
|
424
|
+
additionalModelResponseFields: NotRequired[dict[str, Any]]
|
|
410
425
|
|
|
411
426
|
class ModelStreamErrorExceptionTypeDef(TypedDict):
|
|
412
427
|
message: NotRequired[str]
|
|
@@ -479,7 +494,7 @@ GuardrailContextualGroundingFilterTypeDef = TypedDict(
|
|
|
479
494
|
|
|
480
495
|
class GuardrailConverseTextBlockOutputTypeDef(TypedDict):
|
|
481
496
|
text: str
|
|
482
|
-
qualifiers: NotRequired[
|
|
497
|
+
qualifiers: NotRequired[list[GuardrailConverseContentQualifierType]]
|
|
483
498
|
|
|
484
499
|
GuardrailConverseImageSourceOutputTypeDef = TypedDict(
|
|
485
500
|
"GuardrailConverseImageSourceOutputTypeDef",
|
|
@@ -561,6 +576,9 @@ class ReasoningTextBlockTypeDef(TypedDict):
|
|
|
561
576
|
text: str
|
|
562
577
|
signature: NotRequired[str]
|
|
563
578
|
|
|
579
|
+
class SearchResultContentBlockTypeDef(TypedDict):
|
|
580
|
+
text: str
|
|
581
|
+
|
|
564
582
|
class SpecificToolChoiceTypeDef(TypedDict):
|
|
565
583
|
name: str
|
|
566
584
|
|
|
@@ -580,7 +598,7 @@ ToolUseBlockTypeDef = TypedDict(
|
|
|
580
598
|
"toolUseId": str,
|
|
581
599
|
"name": str,
|
|
582
600
|
"input": Mapping[str, Any],
|
|
583
|
-
"type": NotRequired[
|
|
601
|
+
"type": NotRequired[ToolUseTypeType],
|
|
584
602
|
},
|
|
585
603
|
)
|
|
586
604
|
|
|
@@ -592,6 +610,7 @@ class InvokeModelResponseTypeDef(TypedDict):
|
|
|
592
610
|
body: StreamingBody
|
|
593
611
|
contentType: str
|
|
594
612
|
performanceConfigLatency: PerformanceConfigLatencyType
|
|
613
|
+
serviceTier: ServiceTierTypeType
|
|
595
614
|
ResponseMetadata: ResponseMetadataTypeDef
|
|
596
615
|
|
|
597
616
|
class StartAsyncInvokeResponseTypeDef(TypedDict):
|
|
@@ -629,6 +648,7 @@ class InvokeModelRequestTypeDef(TypedDict):
|
|
|
629
648
|
guardrailIdentifier: NotRequired[str]
|
|
630
649
|
guardrailVersion: NotRequired[str]
|
|
631
650
|
performanceConfigLatency: NotRequired[PerformanceConfigLatencyType]
|
|
651
|
+
serviceTier: NotRequired[ServiceTierTypeType]
|
|
632
652
|
|
|
633
653
|
class InvokeModelTokensRequestTypeDef(TypedDict):
|
|
634
654
|
body: BlobTypeDef
|
|
@@ -642,12 +662,14 @@ class InvokeModelWithResponseStreamRequestTypeDef(TypedDict):
|
|
|
642
662
|
guardrailIdentifier: NotRequired[str]
|
|
643
663
|
guardrailVersion: NotRequired[str]
|
|
644
664
|
performanceConfigLatency: NotRequired[PerformanceConfigLatencyType]
|
|
665
|
+
serviceTier: NotRequired[ServiceTierTypeType]
|
|
645
666
|
|
|
646
667
|
class CitationLocationTypeDef(TypedDict):
|
|
647
668
|
web: NotRequired[WebLocationTypeDef]
|
|
648
669
|
documentChar: NotRequired[DocumentCharLocationTypeDef]
|
|
649
670
|
documentPage: NotRequired[DocumentPageLocationTypeDef]
|
|
650
671
|
documentChunk: NotRequired[DocumentChunkLocationTypeDef]
|
|
672
|
+
searchResultLocation: NotRequired[SearchResultLocationTypeDef]
|
|
651
673
|
|
|
652
674
|
class ContentBlockStartTypeDef(TypedDict):
|
|
653
675
|
toolUse: NotRequired[ToolUseBlockStartTypeDef]
|
|
@@ -659,7 +681,7 @@ DocumentSourceOutputTypeDef = TypedDict(
|
|
|
659
681
|
"bytes": NotRequired[bytes],
|
|
660
682
|
"s3Location": NotRequired[S3LocationTypeDef],
|
|
661
683
|
"text": NotRequired[str],
|
|
662
|
-
"content": NotRequired[
|
|
684
|
+
"content": NotRequired[list[DocumentContentBlockTypeDef]],
|
|
663
685
|
},
|
|
664
686
|
)
|
|
665
687
|
DocumentSourceTypeDef = TypedDict(
|
|
@@ -703,26 +725,26 @@ GuardrailAutomatedReasoningLogicWarningTypeDef = TypedDict(
|
|
|
703
725
|
"GuardrailAutomatedReasoningLogicWarningTypeDef",
|
|
704
726
|
{
|
|
705
727
|
"type": NotRequired[GuardrailAutomatedReasoningLogicWarningTypeType],
|
|
706
|
-
"premises": NotRequired[
|
|
707
|
-
"claims": NotRequired[
|
|
728
|
+
"premises": NotRequired[list[GuardrailAutomatedReasoningStatementTypeDef]],
|
|
729
|
+
"claims": NotRequired[list[GuardrailAutomatedReasoningStatementTypeDef]],
|
|
708
730
|
},
|
|
709
731
|
)
|
|
710
732
|
|
|
711
733
|
class GuardrailAutomatedReasoningScenarioTypeDef(TypedDict):
|
|
712
|
-
statements: NotRequired[
|
|
734
|
+
statements: NotRequired[list[GuardrailAutomatedReasoningStatementTypeDef]]
|
|
713
735
|
|
|
714
736
|
class GuardrailAutomatedReasoningTranslationTypeDef(TypedDict):
|
|
715
|
-
premises: NotRequired[
|
|
716
|
-
claims: NotRequired[
|
|
717
|
-
untranslatedPremises: NotRequired[
|
|
718
|
-
untranslatedClaims: NotRequired[
|
|
737
|
+
premises: NotRequired[list[GuardrailAutomatedReasoningStatementTypeDef]]
|
|
738
|
+
claims: NotRequired[list[GuardrailAutomatedReasoningStatementTypeDef]]
|
|
739
|
+
untranslatedPremises: NotRequired[list[GuardrailAutomatedReasoningInputTextReferenceTypeDef]]
|
|
740
|
+
untranslatedClaims: NotRequired[list[GuardrailAutomatedReasoningInputTextReferenceTypeDef]]
|
|
719
741
|
confidence: NotRequired[float]
|
|
720
742
|
|
|
721
743
|
class GuardrailContentPolicyAssessmentTypeDef(TypedDict):
|
|
722
|
-
filters:
|
|
744
|
+
filters: list[GuardrailContentFilterTypeDef]
|
|
723
745
|
|
|
724
746
|
class GuardrailContextualGroundingPolicyAssessmentTypeDef(TypedDict):
|
|
725
|
-
filters: NotRequired[
|
|
747
|
+
filters: NotRequired[list[GuardrailContextualGroundingFilterTypeDef]]
|
|
726
748
|
|
|
727
749
|
GuardrailConverseImageBlockOutputTypeDef = TypedDict(
|
|
728
750
|
"GuardrailConverseImageBlockOutputTypeDef",
|
|
@@ -740,15 +762,15 @@ class GuardrailCoverageTypeDef(TypedDict):
|
|
|
740
762
|
images: NotRequired[GuardrailImageCoverageTypeDef]
|
|
741
763
|
|
|
742
764
|
class GuardrailWordPolicyAssessmentTypeDef(TypedDict):
|
|
743
|
-
customWords:
|
|
744
|
-
managedWordLists:
|
|
765
|
+
customWords: list[GuardrailCustomWordTypeDef]
|
|
766
|
+
managedWordLists: list[GuardrailManagedWordTypeDef]
|
|
745
767
|
|
|
746
768
|
class GuardrailSensitiveInformationPolicyAssessmentTypeDef(TypedDict):
|
|
747
|
-
piiEntities:
|
|
748
|
-
regexes:
|
|
769
|
+
piiEntities: list[GuardrailPiiEntityFilterTypeDef]
|
|
770
|
+
regexes: list[GuardrailRegexFilterTypeDef]
|
|
749
771
|
|
|
750
772
|
class GuardrailTopicPolicyAssessmentTypeDef(TypedDict):
|
|
751
|
-
topics:
|
|
773
|
+
topics: list[GuardrailTopicTypeDef]
|
|
752
774
|
|
|
753
775
|
class InvokeModelWithBidirectionalStreamOutputTypeDef(TypedDict):
|
|
754
776
|
chunk: NotRequired[BidirectionalOutputPayloadPartTypeDef]
|
|
@@ -793,6 +815,18 @@ class ReasoningContentBlockTypeDef(TypedDict):
|
|
|
793
815
|
reasoningText: NotRequired[ReasoningTextBlockTypeDef]
|
|
794
816
|
redactedContent: NotRequired[BlobTypeDef]
|
|
795
817
|
|
|
818
|
+
class SearchResultBlockOutputTypeDef(TypedDict):
|
|
819
|
+
source: str
|
|
820
|
+
title: str
|
|
821
|
+
content: list[SearchResultContentBlockTypeDef]
|
|
822
|
+
citations: NotRequired[CitationsConfigTypeDef]
|
|
823
|
+
|
|
824
|
+
class SearchResultBlockTypeDef(TypedDict):
|
|
825
|
+
source: str
|
|
826
|
+
title: str
|
|
827
|
+
content: Sequence[SearchResultContentBlockTypeDef]
|
|
828
|
+
citations: NotRequired[CitationsConfigTypeDef]
|
|
829
|
+
|
|
796
830
|
ToolChoiceTypeDef = TypedDict(
|
|
797
831
|
"ToolChoiceTypeDef",
|
|
798
832
|
{
|
|
@@ -855,17 +889,20 @@ GuardrailImageBlockTypeDef = TypedDict(
|
|
|
855
889
|
|
|
856
890
|
class CitationOutputTypeDef(TypedDict):
|
|
857
891
|
title: NotRequired[str]
|
|
858
|
-
|
|
892
|
+
source: NotRequired[str]
|
|
893
|
+
sourceContent: NotRequired[list[CitationSourceContentTypeDef]]
|
|
859
894
|
location: NotRequired[CitationLocationTypeDef]
|
|
860
895
|
|
|
861
896
|
class CitationTypeDef(TypedDict):
|
|
862
897
|
title: NotRequired[str]
|
|
898
|
+
source: NotRequired[str]
|
|
863
899
|
sourceContent: NotRequired[Sequence[CitationSourceContentTypeDef]]
|
|
864
900
|
location: NotRequired[CitationLocationTypeDef]
|
|
865
901
|
|
|
866
902
|
class CitationsDeltaTypeDef(TypedDict):
|
|
867
903
|
title: NotRequired[str]
|
|
868
|
-
|
|
904
|
+
source: NotRequired[str]
|
|
905
|
+
sourceContent: NotRequired[list[CitationSourceContentDeltaTypeDef]]
|
|
869
906
|
location: NotRequired[CitationLocationTypeDef]
|
|
870
907
|
|
|
871
908
|
class ContentBlockStartEventTypeDef(TypedDict):
|
|
@@ -902,12 +939,12 @@ VideoSourceUnionTypeDef = Union[VideoSourceTypeDef, VideoSourceOutputTypeDef]
|
|
|
902
939
|
|
|
903
940
|
class GuardrailAutomatedReasoningImpossibleFindingTypeDef(TypedDict):
|
|
904
941
|
translation: NotRequired[GuardrailAutomatedReasoningTranslationTypeDef]
|
|
905
|
-
contradictingRules: NotRequired[
|
|
942
|
+
contradictingRules: NotRequired[list[GuardrailAutomatedReasoningRuleTypeDef]]
|
|
906
943
|
logicWarning: NotRequired[GuardrailAutomatedReasoningLogicWarningTypeDef]
|
|
907
944
|
|
|
908
945
|
class GuardrailAutomatedReasoningInvalidFindingTypeDef(TypedDict):
|
|
909
946
|
translation: NotRequired[GuardrailAutomatedReasoningTranslationTypeDef]
|
|
910
|
-
contradictingRules: NotRequired[
|
|
947
|
+
contradictingRules: NotRequired[list[GuardrailAutomatedReasoningRuleTypeDef]]
|
|
911
948
|
logicWarning: NotRequired[GuardrailAutomatedReasoningLogicWarningTypeDef]
|
|
912
949
|
|
|
913
950
|
class GuardrailAutomatedReasoningSatisfiableFindingTypeDef(TypedDict):
|
|
@@ -917,12 +954,12 @@ class GuardrailAutomatedReasoningSatisfiableFindingTypeDef(TypedDict):
|
|
|
917
954
|
logicWarning: NotRequired[GuardrailAutomatedReasoningLogicWarningTypeDef]
|
|
918
955
|
|
|
919
956
|
class GuardrailAutomatedReasoningTranslationOptionTypeDef(TypedDict):
|
|
920
|
-
translations: NotRequired[
|
|
957
|
+
translations: NotRequired[list[GuardrailAutomatedReasoningTranslationTypeDef]]
|
|
921
958
|
|
|
922
959
|
class GuardrailAutomatedReasoningValidFindingTypeDef(TypedDict):
|
|
923
960
|
translation: NotRequired[GuardrailAutomatedReasoningTranslationTypeDef]
|
|
924
961
|
claimsTrueScenario: NotRequired[GuardrailAutomatedReasoningScenarioTypeDef]
|
|
925
|
-
supportingRules: NotRequired[
|
|
962
|
+
supportingRules: NotRequired[list[GuardrailAutomatedReasoningRuleTypeDef]]
|
|
926
963
|
logicWarning: NotRequired[GuardrailAutomatedReasoningLogicWarningTypeDef]
|
|
927
964
|
|
|
928
965
|
class GuardrailConverseContentBlockOutputTypeDef(TypedDict):
|
|
@@ -942,11 +979,13 @@ class InvokeModelWithResponseStreamResponseTypeDef(TypedDict):
|
|
|
942
979
|
body: EventStream[ResponseStreamTypeDef]
|
|
943
980
|
contentType: str
|
|
944
981
|
performanceConfigLatency: PerformanceConfigLatencyType
|
|
982
|
+
serviceTier: ServiceTierTypeType
|
|
945
983
|
ResponseMetadata: ResponseMetadataTypeDef
|
|
946
984
|
|
|
947
985
|
ReasoningContentBlockUnionTypeDef = Union[
|
|
948
986
|
ReasoningContentBlockTypeDef, ReasoningContentBlockOutputTypeDef
|
|
949
987
|
]
|
|
988
|
+
SearchResultBlockUnionTypeDef = Union[SearchResultBlockTypeDef, SearchResultBlockOutputTypeDef]
|
|
950
989
|
|
|
951
990
|
class ToolTypeDef(TypedDict):
|
|
952
991
|
toolSpec: NotRequired[ToolSpecificationTypeDef]
|
|
@@ -954,7 +993,7 @@ class ToolTypeDef(TypedDict):
|
|
|
954
993
|
cachePoint: NotRequired[CachePointBlockTypeDef]
|
|
955
994
|
|
|
956
995
|
class ListAsyncInvokesResponseTypeDef(TypedDict):
|
|
957
|
-
asyncInvokeSummaries:
|
|
996
|
+
asyncInvokeSummaries: list[AsyncInvokeSummaryTypeDef]
|
|
958
997
|
ResponseMetadata: ResponseMetadataTypeDef
|
|
959
998
|
nextToken: NotRequired[str]
|
|
960
999
|
|
|
@@ -975,15 +1014,15 @@ class GuardrailContentBlockTypeDef(TypedDict):
|
|
|
975
1014
|
image: NotRequired[GuardrailImageBlockTypeDef]
|
|
976
1015
|
|
|
977
1016
|
class CitationsContentBlockOutputTypeDef(TypedDict):
|
|
978
|
-
content: NotRequired[
|
|
979
|
-
citations: NotRequired[
|
|
1017
|
+
content: NotRequired[list[CitationGeneratedContentTypeDef]]
|
|
1018
|
+
citations: NotRequired[list[CitationOutputTypeDef]]
|
|
980
1019
|
|
|
981
1020
|
CitationUnionTypeDef = Union[CitationTypeDef, CitationOutputTypeDef]
|
|
982
1021
|
|
|
983
1022
|
class ContentBlockDeltaTypeDef(TypedDict):
|
|
984
1023
|
text: NotRequired[str]
|
|
985
1024
|
toolUse: NotRequired[ToolUseBlockDeltaTypeDef]
|
|
986
|
-
toolResult: NotRequired[
|
|
1025
|
+
toolResult: NotRequired[list[ToolResultBlockDeltaTypeDef]]
|
|
987
1026
|
reasoningContent: NotRequired[ReasoningContentBlockDeltaTypeDef]
|
|
988
1027
|
citation: NotRequired[CitationsDeltaTypeDef]
|
|
989
1028
|
|
|
@@ -1006,11 +1045,12 @@ ImageBlockTypeDef = TypedDict(
|
|
|
1006
1045
|
)
|
|
1007
1046
|
|
|
1008
1047
|
class ToolResultContentBlockOutputTypeDef(TypedDict):
|
|
1009
|
-
json: NotRequired[
|
|
1048
|
+
json: NotRequired[dict[str, Any]]
|
|
1010
1049
|
text: NotRequired[str]
|
|
1011
1050
|
image: NotRequired[ImageBlockOutputTypeDef]
|
|
1012
1051
|
document: NotRequired[DocumentBlockOutputTypeDef]
|
|
1013
1052
|
video: NotRequired[VideoBlockOutputTypeDef]
|
|
1053
|
+
searchResult: NotRequired[SearchResultBlockOutputTypeDef]
|
|
1014
1054
|
|
|
1015
1055
|
VideoBlockTypeDef = TypedDict(
|
|
1016
1056
|
"VideoBlockTypeDef",
|
|
@@ -1021,8 +1061,8 @@ VideoBlockTypeDef = TypedDict(
|
|
|
1021
1061
|
)
|
|
1022
1062
|
|
|
1023
1063
|
class GuardrailAutomatedReasoningTranslationAmbiguousFindingTypeDef(TypedDict):
|
|
1024
|
-
options: NotRequired[
|
|
1025
|
-
differenceScenarios: NotRequired[
|
|
1064
|
+
options: NotRequired[list[GuardrailAutomatedReasoningTranslationOptionTypeDef]]
|
|
1065
|
+
differenceScenarios: NotRequired[list[GuardrailAutomatedReasoningScenarioTypeDef]]
|
|
1026
1066
|
|
|
1027
1067
|
class ToolConfigurationTypeDef(TypedDict):
|
|
1028
1068
|
tools: Sequence[ToolTypeDef]
|
|
@@ -1053,7 +1093,7 @@ ToolResultBlockOutputTypeDef = TypedDict(
|
|
|
1053
1093
|
"ToolResultBlockOutputTypeDef",
|
|
1054
1094
|
{
|
|
1055
1095
|
"toolUseId": str,
|
|
1056
|
-
"content":
|
|
1096
|
+
"content": list[ToolResultContentBlockOutputTypeDef],
|
|
1057
1097
|
"status": NotRequired[ToolResultStatusType],
|
|
1058
1098
|
"type": NotRequired[str],
|
|
1059
1099
|
},
|
|
@@ -1066,8 +1106,8 @@ class GuardrailAutomatedReasoningFindingTypeDef(TypedDict):
|
|
|
1066
1106
|
satisfiable: NotRequired[GuardrailAutomatedReasoningSatisfiableFindingTypeDef]
|
|
1067
1107
|
impossible: NotRequired[GuardrailAutomatedReasoningImpossibleFindingTypeDef]
|
|
1068
1108
|
translationAmbiguous: NotRequired[GuardrailAutomatedReasoningTranslationAmbiguousFindingTypeDef]
|
|
1069
|
-
tooComplex: NotRequired[
|
|
1070
|
-
noTranslations: NotRequired[
|
|
1109
|
+
tooComplex: NotRequired[dict[str, Any]]
|
|
1110
|
+
noTranslations: NotRequired[dict[str, Any]]
|
|
1071
1111
|
|
|
1072
1112
|
class GuardrailConverseContentBlockTypeDef(TypedDict):
|
|
1073
1113
|
text: NotRequired[GuardrailConverseTextBlockUnionTypeDef]
|
|
@@ -1088,6 +1128,7 @@ class ContentBlockOutputTypeDef(TypedDict):
|
|
|
1088
1128
|
cachePoint: NotRequired[CachePointBlockTypeDef]
|
|
1089
1129
|
reasoningContent: NotRequired[ReasoningContentBlockOutputTypeDef]
|
|
1090
1130
|
citationsContent: NotRequired[CitationsContentBlockOutputTypeDef]
|
|
1131
|
+
searchResult: NotRequired[SearchResultBlockOutputTypeDef]
|
|
1091
1132
|
|
|
1092
1133
|
class ToolResultContentBlockTypeDef(TypedDict):
|
|
1093
1134
|
json: NotRequired[Mapping[str, Any]]
|
|
@@ -1095,9 +1136,10 @@ class ToolResultContentBlockTypeDef(TypedDict):
|
|
|
1095
1136
|
image: NotRequired[ImageBlockUnionTypeDef]
|
|
1096
1137
|
document: NotRequired[DocumentBlockUnionTypeDef]
|
|
1097
1138
|
video: NotRequired[VideoBlockUnionTypeDef]
|
|
1139
|
+
searchResult: NotRequired[SearchResultBlockUnionTypeDef]
|
|
1098
1140
|
|
|
1099
1141
|
class GuardrailAutomatedReasoningPolicyAssessmentTypeDef(TypedDict):
|
|
1100
|
-
findings: NotRequired[
|
|
1142
|
+
findings: NotRequired[list[GuardrailAutomatedReasoningFindingTypeDef]]
|
|
1101
1143
|
|
|
1102
1144
|
GuardrailConverseContentBlockUnionTypeDef = Union[
|
|
1103
1145
|
GuardrailConverseContentBlockTypeDef, GuardrailConverseContentBlockOutputTypeDef
|
|
@@ -1105,7 +1147,7 @@ GuardrailConverseContentBlockUnionTypeDef = Union[
|
|
|
1105
1147
|
|
|
1106
1148
|
class MessageOutputTypeDef(TypedDict):
|
|
1107
1149
|
role: ConversationRoleType
|
|
1108
|
-
content:
|
|
1150
|
+
content: list[ContentBlockOutputTypeDef]
|
|
1109
1151
|
|
|
1110
1152
|
ToolResultContentBlockUnionTypeDef = Union[
|
|
1111
1153
|
ToolResultContentBlockTypeDef, ToolResultContentBlockOutputTypeDef
|
|
@@ -1142,15 +1184,15 @@ class ApplyGuardrailResponseTypeDef(TypedDict):
|
|
|
1142
1184
|
usage: GuardrailUsageTypeDef
|
|
1143
1185
|
action: GuardrailActionType
|
|
1144
1186
|
actionReason: str
|
|
1145
|
-
outputs:
|
|
1146
|
-
assessments:
|
|
1187
|
+
outputs: list[GuardrailOutputContentTypeDef]
|
|
1188
|
+
assessments: list[GuardrailAssessmentTypeDef]
|
|
1147
1189
|
guardrailCoverage: GuardrailCoverageTypeDef
|
|
1148
1190
|
ResponseMetadata: ResponseMetadataTypeDef
|
|
1149
1191
|
|
|
1150
1192
|
class GuardrailTraceAssessmentTypeDef(TypedDict):
|
|
1151
|
-
modelOutput: NotRequired[
|
|
1152
|
-
inputAssessment: NotRequired[
|
|
1153
|
-
outputAssessments: NotRequired[
|
|
1193
|
+
modelOutput: NotRequired[list[str]]
|
|
1194
|
+
inputAssessment: NotRequired[dict[str, GuardrailAssessmentTypeDef]]
|
|
1195
|
+
outputAssessments: NotRequired[dict[str, list[GuardrailAssessmentTypeDef]]]
|
|
1154
1196
|
actionReason: NotRequired[str]
|
|
1155
1197
|
|
|
1156
1198
|
ToolResultBlockUnionTypeDef = Union[ToolResultBlockTypeDef, ToolResultBlockOutputTypeDef]
|
|
@@ -1174,21 +1216,24 @@ class ContentBlockTypeDef(TypedDict):
|
|
|
1174
1216
|
cachePoint: NotRequired[CachePointBlockTypeDef]
|
|
1175
1217
|
reasoningContent: NotRequired[ReasoningContentBlockUnionTypeDef]
|
|
1176
1218
|
citationsContent: NotRequired[CitationsContentBlockUnionTypeDef]
|
|
1219
|
+
searchResult: NotRequired[SearchResultBlockUnionTypeDef]
|
|
1177
1220
|
|
|
1178
1221
|
class ConverseStreamMetadataEventTypeDef(TypedDict):
|
|
1179
1222
|
usage: TokenUsageTypeDef
|
|
1180
1223
|
metrics: ConverseStreamMetricsTypeDef
|
|
1181
1224
|
trace: NotRequired[ConverseStreamTraceTypeDef]
|
|
1182
1225
|
performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
|
|
1226
|
+
serviceTier: NotRequired[ServiceTierTypeDef]
|
|
1183
1227
|
|
|
1184
1228
|
class ConverseResponseTypeDef(TypedDict):
|
|
1185
1229
|
output: ConverseOutputTypeDef
|
|
1186
1230
|
stopReason: StopReasonType
|
|
1187
1231
|
usage: TokenUsageTypeDef
|
|
1188
1232
|
metrics: ConverseMetricsTypeDef
|
|
1189
|
-
additionalModelResponseFields:
|
|
1233
|
+
additionalModelResponseFields: dict[str, Any]
|
|
1190
1234
|
trace: ConverseTraceTypeDef
|
|
1191
1235
|
performanceConfig: PerformanceConfigurationTypeDef
|
|
1236
|
+
serviceTier: ServiceTierTypeDef
|
|
1192
1237
|
ResponseMetadata: ResponseMetadataTypeDef
|
|
1193
1238
|
|
|
1194
1239
|
ContentBlockUnionTypeDef = Union[ContentBlockTypeDef, ContentBlockOutputTypeDef]
|
|
@@ -1228,6 +1273,7 @@ class ConverseRequestTypeDef(TypedDict):
|
|
|
1228
1273
|
additionalModelResponseFieldPaths: NotRequired[Sequence[str]]
|
|
1229
1274
|
requestMetadata: NotRequired[Mapping[str, str]]
|
|
1230
1275
|
performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
|
|
1276
|
+
serviceTier: NotRequired[ServiceTierTypeDef]
|
|
1231
1277
|
|
|
1232
1278
|
class ConverseStreamRequestTypeDef(TypedDict):
|
|
1233
1279
|
modelId: str
|
|
@@ -1241,10 +1287,13 @@ class ConverseStreamRequestTypeDef(TypedDict):
|
|
|
1241
1287
|
additionalModelResponseFieldPaths: NotRequired[Sequence[str]]
|
|
1242
1288
|
requestMetadata: NotRequired[Mapping[str, str]]
|
|
1243
1289
|
performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
|
|
1290
|
+
serviceTier: NotRequired[ServiceTierTypeDef]
|
|
1244
1291
|
|
|
1245
1292
|
class ConverseTokensRequestTypeDef(TypedDict):
|
|
1246
1293
|
messages: NotRequired[Sequence[MessageUnionTypeDef]]
|
|
1247
1294
|
system: NotRequired[Sequence[SystemContentBlockTypeDef]]
|
|
1295
|
+
toolConfig: NotRequired[ToolConfigurationTypeDef]
|
|
1296
|
+
additionalModelRequestFields: NotRequired[Mapping[str, Any]]
|
|
1248
1297
|
|
|
1249
1298
|
class CountTokensInputTypeDef(TypedDict):
|
|
1250
1299
|
invokeModel: NotRequired[InvokeModelTokensRequestTypeDef]
|
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: types-boto3-bedrock-runtime
|
|
3
|
-
Version: 1.
|
|
4
|
-
Summary: Type annotations for boto3 BedrockRuntime 1.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
License: MIT License
|
|
3
|
+
Version: 1.41.0
|
|
4
|
+
Summary: Type annotations for boto3 BedrockRuntime 1.41.0 service generated with mypy-boto3-builder 8.12.0
|
|
5
|
+
Author-email: Vlad Emelianov <vlad.emelianov.nz@gmail.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/youtype/mypy_boto3_builder
|
|
9
8
|
Project-URL: Documentation, https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/
|
|
10
9
|
Project-URL: Source, https://github.com/youtype/mypy_boto3_builder
|
|
11
10
|
Project-URL: Tracker, https://github.com/youtype/mypy_boto3_builder/issues
|
|
12
|
-
Keywords: boto3
|
|
11
|
+
Keywords: boto3,bedrock-runtime,boto3-stubs,type-annotations,mypy,typeshed,autocomplete
|
|
12
|
+
Platform: any
|
|
13
13
|
Classifier: Development Status :: 5 - Production/Stable
|
|
14
14
|
Classifier: Intended Audience :: Developers
|
|
15
15
|
Classifier: Environment :: Console
|
|
16
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
17
16
|
Classifier: Natural Language :: English
|
|
18
17
|
Classifier: Operating System :: OS Independent
|
|
19
18
|
Classifier: Programming Language :: Python :: 3
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
21
19
|
Classifier: Programming Language :: Python :: 3.9
|
|
22
20
|
Classifier: Programming Language :: Python :: 3.10
|
|
23
21
|
Classifier: Programming Language :: Python :: 3.11
|
|
@@ -27,23 +25,11 @@ Classifier: Programming Language :: Python :: 3.14
|
|
|
27
25
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
28
26
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
29
27
|
Classifier: Typing :: Stubs Only
|
|
30
|
-
Requires-Python: >=3.
|
|
28
|
+
Requires-Python: >=3.9
|
|
31
29
|
Description-Content-Type: text/markdown
|
|
32
30
|
License-File: LICENSE
|
|
33
31
|
Requires-Dist: typing-extensions; python_version < "3.12"
|
|
34
|
-
Dynamic: author
|
|
35
|
-
Dynamic: author-email
|
|
36
|
-
Dynamic: classifier
|
|
37
|
-
Dynamic: description
|
|
38
|
-
Dynamic: description-content-type
|
|
39
|
-
Dynamic: home-page
|
|
40
|
-
Dynamic: keywords
|
|
41
|
-
Dynamic: license
|
|
42
32
|
Dynamic: license-file
|
|
43
|
-
Dynamic: project-url
|
|
44
|
-
Dynamic: requires-dist
|
|
45
|
-
Dynamic: requires-python
|
|
46
|
-
Dynamic: summary
|
|
47
33
|
|
|
48
34
|
<a id="types-boto3-bedrock-runtime"></a>
|
|
49
35
|
|
|
@@ -57,7 +43,7 @@ Dynamic: summary
|
|
|
57
43
|

|
|
58
44
|
|
|
59
45
|
Type annotations for
|
|
60
|
-
[boto3 BedrockRuntime 1.
|
|
46
|
+
[boto3 BedrockRuntime 1.41.0](https://pypi.org/project/boto3/) compatible with
|
|
61
47
|
[VSCode](https://code.visualstudio.com/),
|
|
62
48
|
[PyCharm](https://www.jetbrains.com/pycharm/),
|
|
63
49
|
[Emacs](https://www.gnu.org/software/emacs/),
|
|
@@ -66,7 +52,7 @@ Type annotations for
|
|
|
66
52
|
[pyright](https://github.com/microsoft/pyright) and other tools.
|
|
67
53
|
|
|
68
54
|
Generated with
|
|
69
|
-
[mypy-boto3-builder 8.
|
|
55
|
+
[mypy-boto3-builder 8.12.0](https://github.com/youtype/mypy_boto3_builder).
|
|
70
56
|
|
|
71
57
|
More information can be found on
|
|
72
58
|
[types-boto3](https://pypi.org/project/types-boto3/) page and in
|
|
@@ -119,7 +105,7 @@ You can generate type annotations for `boto3` package locally with
|
|
|
119
105
|
isolation.
|
|
120
106
|
|
|
121
107
|
1. Run mypy-boto3-builder in your package root directory:
|
|
122
|
-
`uvx --with 'boto3==1.
|
|
108
|
+
`uvx --with 'boto3==1.41.0' mypy-boto3-builder`
|
|
123
109
|
2. Select `boto3` AWS SDK.
|
|
124
110
|
3. Add `BedrockRuntime` service.
|
|
125
111
|
4. Use provided commands to install generated packages.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
types_boto3_bedrock_runtime/__init__.py,sha256=yVTpBudgQiZdF0pSNhAE-1xbRZSFBHRcN9lRoforRqk,774
|
|
2
|
+
types_boto3_bedrock_runtime/__init__.pyi,sha256=FTe8oZW7DRJdbaUR0zeqYoUvSJbUFsNGBllLTCZwU4k,773
|
|
3
|
+
types_boto3_bedrock_runtime/__main__.py,sha256=o6fRCHahJMnXGGTFbnv6VvVZIsq1K6lGLygsrcIvtBw,1012
|
|
4
|
+
types_boto3_bedrock_runtime/client.py,sha256=gN_nm5GKPuUjmMh_qvJGHuSNHcm5-ui7FPQ3KyWiAxc,9982
|
|
5
|
+
types_boto3_bedrock_runtime/client.pyi,sha256=Ypg7CxQjo36qHy8fF2l6-cT9SIfHDxZNeVzCQNAccyE,9979
|
|
6
|
+
types_boto3_bedrock_runtime/literals.py,sha256=NSeZhnMiQpRwLD27S3ZBs1VREWaoFs9-fdC7dOAhVG0,13584
|
|
7
|
+
types_boto3_bedrock_runtime/literals.pyi,sha256=VtuXw_ooM09XsL0oa3brn2tClJElDg3UECmhUoyXHqI,13582
|
|
8
|
+
types_boto3_bedrock_runtime/paginator.py,sha256=5Jxr9RrOJKN9XVbJReCbUJpJopBTa6lkmC2vmFjI2nQ,2194
|
|
9
|
+
types_boto3_bedrock_runtime/paginator.pyi,sha256=63nEmXrjk6YpFdjbM7HiTP4pBDClAUG2z9KGCvvqdpw,2190
|
|
10
|
+
types_boto3_bedrock_runtime/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
+
types_boto3_bedrock_runtime/type_defs.py,sha256=gt2BmOvu_u_MQBa2nTw7E1qPlNgQRL2mUdxgzsQB49Q,45648
|
|
12
|
+
types_boto3_bedrock_runtime/type_defs.pyi,sha256=vd7tTkrNFRqYcOAr_NC_-lPW-Vp1pflf-PrZLJIbzUo,45485
|
|
13
|
+
types_boto3_bedrock_runtime/version.py,sha256=ZtEblsbAVbZWuGFYY23SYRu3T8sCoiDNfG49dV1XWUA,92
|
|
14
|
+
types_boto3_bedrock_runtime-1.41.0.dist-info/licenses/LICENSE,sha256=4jNgB8jJbXtUVJkeygwhUQi--6lAG8DIisfE-h_RiUU,1070
|
|
15
|
+
types_boto3_bedrock_runtime-1.41.0.dist-info/METADATA,sha256=xxH21lk-zJF6yvSLey6gD_GXffReKO1IwHNWXG5U9oI,15065
|
|
16
|
+
types_boto3_bedrock_runtime-1.41.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
17
|
+
types_boto3_bedrock_runtime-1.41.0.dist-info/top_level.txt,sha256=vs95SHzu94rM38mmauihzrtfinMIBV-tKDaYSV0eMww,28
|
|
18
|
+
types_boto3_bedrock_runtime-1.41.0.dist-info/RECORD,,
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
types_boto3_bedrock_runtime/__init__.py,sha256=yVTpBudgQiZdF0pSNhAE-1xbRZSFBHRcN9lRoforRqk,774
|
|
2
|
-
types_boto3_bedrock_runtime/__init__.pyi,sha256=FTe8oZW7DRJdbaUR0zeqYoUvSJbUFsNGBllLTCZwU4k,773
|
|
3
|
-
types_boto3_bedrock_runtime/__main__.py,sha256=K0WkLu6FJAQcq-NDLud987e_7YRV4VSax7Q0hSsZs3w,1015
|
|
4
|
-
types_boto3_bedrock_runtime/client.py,sha256=W4o6UKl_m5Sp3uic5eq5BKlFpTxd1LCfif0vB2B-aR8,10098
|
|
5
|
-
types_boto3_bedrock_runtime/client.pyi,sha256=nIshacSA3Qn0Ukg5X7ump-P5PDf3OG653bVeoX9IrcY,10095
|
|
6
|
-
types_boto3_bedrock_runtime/literals.py,sha256=oe4UGyz602raVViJBkRcTseTjZevrDiDlq8EO3en3yg,13417
|
|
7
|
-
types_boto3_bedrock_runtime/literals.pyi,sha256=JJ1m-QWXh5L-CMOxEnsHeaVgvBOhpIML-xNjdEQUcC0,13415
|
|
8
|
-
types_boto3_bedrock_runtime/paginator.py,sha256=5Jxr9RrOJKN9XVbJReCbUJpJopBTa6lkmC2vmFjI2nQ,2194
|
|
9
|
-
types_boto3_bedrock_runtime/paginator.pyi,sha256=63nEmXrjk6YpFdjbM7HiTP4pBDClAUG2z9KGCvvqdpw,2190
|
|
10
|
-
types_boto3_bedrock_runtime/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
-
types_boto3_bedrock_runtime/type_defs.py,sha256=r283so-x18UdsGI5p69ar17FbhnZ_f8BKQU8v3xQq4E,43940
|
|
12
|
-
types_boto3_bedrock_runtime/type_defs.pyi,sha256=fPNlcO9bi-64z2Z9Ffftyfk8CbmdTBYvIUpNVQbs-6I,43782
|
|
13
|
-
types_boto3_bedrock_runtime/version.py,sha256=L_7o1ed10fAo8eWgQ1hRRZmm0-ogpMdEx6RywjpJZK0,93
|
|
14
|
-
types_boto3_bedrock_runtime-1.40.62.dist-info/licenses/LICENSE,sha256=4jNgB8jJbXtUVJkeygwhUQi--6lAG8DIisfE-h_RiUU,1070
|
|
15
|
-
types_boto3_bedrock_runtime-1.40.62.dist-info/METADATA,sha256=J5DSSbEr3TuZ2bTVdwKobM09fjO1FUaNFhjqf8g33hk,15400
|
|
16
|
-
types_boto3_bedrock_runtime-1.40.62.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
17
|
-
types_boto3_bedrock_runtime-1.40.62.dist-info/top_level.txt,sha256=vs95SHzu94rM38mmauihzrtfinMIBV-tKDaYSV0eMww,28
|
|
18
|
-
types_boto3_bedrock_runtime-1.40.62.dist-info/RECORD,,
|
{types_boto3_bedrock_runtime-1.40.62.dist-info → types_boto3_bedrock_runtime-1.41.0.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|