types-boto3-bedrock-runtime 1.35.73__py3-none-any.whl → 1.35.74__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/__init__.py +5 -1
- types_boto3_bedrock_runtime/__init__.pyi +5 -1
- types_boto3_bedrock_runtime/__main__.py +3 -3
- types_boto3_bedrock_runtime/client.py +50 -2
- types_boto3_bedrock_runtime/client.pyi +50 -2
- types_boto3_bedrock_runtime/literals.py +16 -2
- types_boto3_bedrock_runtime/literals.pyi +16 -2
- types_boto3_bedrock_runtime/paginator.py +66 -0
- types_boto3_bedrock_runtime/paginator.pyi +61 -0
- types_boto3_bedrock_runtime/type_defs.py +203 -39
- types_boto3_bedrock_runtime/type_defs.pyi +179 -33
- types_boto3_bedrock_runtime/version.py +1 -1
- {types_boto3_bedrock_runtime-1.35.73.dist-info → types_boto3_bedrock_runtime-1.35.74.dist-info}/METADATA +26 -5
- types_boto3_bedrock_runtime-1.35.74.dist-info/RECORD +18 -0
- types_boto3_bedrock_runtime-1.35.73.dist-info/RECORD +0 -16
- {types_boto3_bedrock_runtime-1.35.73.dist-info → types_boto3_bedrock_runtime-1.35.74.dist-info}/LICENSE +0 -0
- {types_boto3_bedrock_runtime-1.35.73.dist-info → types_boto3_bedrock_runtime-1.35.74.dist-info}/WHEEL +0 -0
- {types_boto3_bedrock_runtime-1.35.73.dist-info → types_boto3_bedrock_runtime-1.35.74.dist-info}/top_level.txt +0 -0
|
@@ -15,12 +15,14 @@ Copyright 2024 Vlad Emelianov
|
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
17
|
import sys
|
|
18
|
+
from datetime import datetime
|
|
18
19
|
from typing import IO, Any, Dict, List, Mapping, Sequence, Union
|
|
19
20
|
|
|
20
21
|
from botocore.eventstream import EventStream
|
|
21
22
|
from botocore.response import StreamingBody
|
|
22
23
|
|
|
23
24
|
from .literals import (
|
|
25
|
+
AsyncInvokeStatusType,
|
|
24
26
|
ConversationRoleType,
|
|
25
27
|
DocumentFormatType,
|
|
26
28
|
GuardrailActionType,
|
|
@@ -38,9 +40,11 @@ from .literals import (
|
|
|
38
40
|
GuardrailTraceType,
|
|
39
41
|
ImageFormatType,
|
|
40
42
|
PerformanceConfigLatencyType,
|
|
43
|
+
SortOrderType,
|
|
41
44
|
StopReasonType,
|
|
42
45
|
ToolResultStatusType,
|
|
43
46
|
TraceType,
|
|
47
|
+
VideoFormatType,
|
|
44
48
|
)
|
|
45
49
|
|
|
46
50
|
if sys.version_info >= (3, 12):
|
|
@@ -51,6 +55,9 @@ else:
|
|
|
51
55
|
__all__ = (
|
|
52
56
|
"ApplyGuardrailRequestRequestTypeDef",
|
|
53
57
|
"ApplyGuardrailResponseTypeDef",
|
|
58
|
+
"AsyncInvokeOutputDataConfigTypeDef",
|
|
59
|
+
"AsyncInvokeS3OutputDataConfigTypeDef",
|
|
60
|
+
"AsyncInvokeSummaryTypeDef",
|
|
54
61
|
"BlobTypeDef",
|
|
55
62
|
"ContentBlockDeltaEventTypeDef",
|
|
56
63
|
"ContentBlockDeltaTypeDef",
|
|
@@ -77,6 +84,8 @@ __all__ = (
|
|
|
77
84
|
"DocumentSourceOutputTypeDef",
|
|
78
85
|
"DocumentSourceTypeDef",
|
|
79
86
|
"DocumentSourceUnionTypeDef",
|
|
87
|
+
"GetAsyncInvokeRequestRequestTypeDef",
|
|
88
|
+
"GetAsyncInvokeResponseTypeDef",
|
|
80
89
|
"GuardrailAssessmentTypeDef",
|
|
81
90
|
"GuardrailConfigurationTypeDef",
|
|
82
91
|
"GuardrailContentBlockTypeDef",
|
|
@@ -118,6 +127,9 @@ __all__ = (
|
|
|
118
127
|
"InvokeModelResponseTypeDef",
|
|
119
128
|
"InvokeModelWithResponseStreamRequestRequestTypeDef",
|
|
120
129
|
"InvokeModelWithResponseStreamResponseTypeDef",
|
|
130
|
+
"ListAsyncInvokesRequestListAsyncInvokesPaginateTypeDef",
|
|
131
|
+
"ListAsyncInvokesRequestRequestTypeDef",
|
|
132
|
+
"ListAsyncInvokesResponseTypeDef",
|
|
121
133
|
"MessageOutputTypeDef",
|
|
122
134
|
"MessageStartEventTypeDef",
|
|
123
135
|
"MessageStopEventTypeDef",
|
|
@@ -125,15 +137,21 @@ __all__ = (
|
|
|
125
137
|
"MessageUnionTypeDef",
|
|
126
138
|
"ModelStreamErrorExceptionTypeDef",
|
|
127
139
|
"ModelTimeoutExceptionTypeDef",
|
|
140
|
+
"PaginatorConfigTypeDef",
|
|
128
141
|
"PayloadPartTypeDef",
|
|
129
142
|
"PerformanceConfigurationTypeDef",
|
|
130
143
|
"PromptVariableValuesTypeDef",
|
|
131
144
|
"ResponseMetadataTypeDef",
|
|
132
145
|
"ResponseStreamTypeDef",
|
|
146
|
+
"S3LocationTypeDef",
|
|
133
147
|
"ServiceUnavailableExceptionTypeDef",
|
|
134
148
|
"SpecificToolChoiceTypeDef",
|
|
149
|
+
"StartAsyncInvokeRequestRequestTypeDef",
|
|
150
|
+
"StartAsyncInvokeResponseTypeDef",
|
|
135
151
|
"SystemContentBlockTypeDef",
|
|
152
|
+
"TagTypeDef",
|
|
136
153
|
"ThrottlingExceptionTypeDef",
|
|
154
|
+
"TimestampTypeDef",
|
|
137
155
|
"TokenUsageTypeDef",
|
|
138
156
|
"ToolChoiceTypeDef",
|
|
139
157
|
"ToolConfigurationTypeDef",
|
|
@@ -152,6 +170,12 @@ __all__ = (
|
|
|
152
170
|
"ToolUseBlockTypeDef",
|
|
153
171
|
"ToolUseBlockUnionTypeDef",
|
|
154
172
|
"ValidationExceptionTypeDef",
|
|
173
|
+
"VideoBlockOutputTypeDef",
|
|
174
|
+
"VideoBlockTypeDef",
|
|
175
|
+
"VideoBlockUnionTypeDef",
|
|
176
|
+
"VideoSourceOutputTypeDef",
|
|
177
|
+
"VideoSourceTypeDef",
|
|
178
|
+
"VideoSourceUnionTypeDef",
|
|
155
179
|
)
|
|
156
180
|
|
|
157
181
|
class GuardrailOutputContentTypeDef(TypedDict):
|
|
@@ -172,6 +196,11 @@ class ResponseMetadataTypeDef(TypedDict):
|
|
|
172
196
|
RetryAttempts: int
|
|
173
197
|
HostId: NotRequired[str]
|
|
174
198
|
|
|
199
|
+
class AsyncInvokeS3OutputDataConfigTypeDef(TypedDict):
|
|
200
|
+
s3Uri: str
|
|
201
|
+
kmsKeyId: NotRequired[str]
|
|
202
|
+
bucketOwner: NotRequired[str]
|
|
203
|
+
|
|
175
204
|
BlobTypeDef = Union[str, bytes, IO[Any], StreamingBody]
|
|
176
205
|
ToolUseBlockDeltaTypeDef = TypedDict(
|
|
177
206
|
"ToolUseBlockDeltaTypeDef",
|
|
@@ -260,6 +289,9 @@ DocumentSourceOutputTypeDef = TypedDict(
|
|
|
260
289
|
},
|
|
261
290
|
)
|
|
262
291
|
|
|
292
|
+
class GetAsyncInvokeRequestRequestTypeDef(TypedDict):
|
|
293
|
+
invocationArn: str
|
|
294
|
+
|
|
263
295
|
class GuardrailTextBlockTypeDef(TypedDict):
|
|
264
296
|
text: str
|
|
265
297
|
qualifiers: NotRequired[Sequence[GuardrailContentQualifierType]]
|
|
@@ -337,6 +369,13 @@ ImageSourceOutputTypeDef = TypedDict(
|
|
|
337
369
|
},
|
|
338
370
|
)
|
|
339
371
|
|
|
372
|
+
class PaginatorConfigTypeDef(TypedDict):
|
|
373
|
+
MaxItems: NotRequired[int]
|
|
374
|
+
PageSize: NotRequired[int]
|
|
375
|
+
StartingToken: NotRequired[str]
|
|
376
|
+
|
|
377
|
+
TimestampTypeDef = Union[datetime, str]
|
|
378
|
+
|
|
340
379
|
class ModelTimeoutExceptionTypeDef(TypedDict):
|
|
341
380
|
message: NotRequired[str]
|
|
342
381
|
|
|
@@ -347,9 +386,17 @@ PayloadPartTypeDef = TypedDict(
|
|
|
347
386
|
},
|
|
348
387
|
)
|
|
349
388
|
|
|
389
|
+
class S3LocationTypeDef(TypedDict):
|
|
390
|
+
uri: str
|
|
391
|
+
bucketOwner: NotRequired[str]
|
|
392
|
+
|
|
350
393
|
class SpecificToolChoiceTypeDef(TypedDict):
|
|
351
394
|
name: str
|
|
352
395
|
|
|
396
|
+
class TagTypeDef(TypedDict):
|
|
397
|
+
key: str
|
|
398
|
+
value: str
|
|
399
|
+
|
|
353
400
|
class ToolInputSchemaTypeDef(TypedDict):
|
|
354
401
|
json: NotRequired[Mapping[str, Any]]
|
|
355
402
|
|
|
@@ -368,6 +415,13 @@ class InvokeModelResponseTypeDef(TypedDict):
|
|
|
368
415
|
performanceConfigLatency: PerformanceConfigLatencyType
|
|
369
416
|
ResponseMetadata: ResponseMetadataTypeDef
|
|
370
417
|
|
|
418
|
+
class StartAsyncInvokeResponseTypeDef(TypedDict):
|
|
419
|
+
invocationArn: str
|
|
420
|
+
ResponseMetadata: ResponseMetadataTypeDef
|
|
421
|
+
|
|
422
|
+
class AsyncInvokeOutputDataConfigTypeDef(TypedDict):
|
|
423
|
+
s3OutputDataConfig: NotRequired[AsyncInvokeS3OutputDataConfigTypeDef]
|
|
424
|
+
|
|
371
425
|
DocumentSourceTypeDef = TypedDict(
|
|
372
426
|
"DocumentSourceTypeDef",
|
|
373
427
|
{
|
|
@@ -455,6 +509,23 @@ ImageBlockOutputTypeDef = TypedDict(
|
|
|
455
509
|
},
|
|
456
510
|
)
|
|
457
511
|
|
|
512
|
+
class ListAsyncInvokesRequestListAsyncInvokesPaginateTypeDef(TypedDict):
|
|
513
|
+
submitTimeAfter: NotRequired[TimestampTypeDef]
|
|
514
|
+
submitTimeBefore: NotRequired[TimestampTypeDef]
|
|
515
|
+
statusEquals: NotRequired[AsyncInvokeStatusType]
|
|
516
|
+
sortBy: NotRequired[Literal["SubmissionTime"]]
|
|
517
|
+
sortOrder: NotRequired[SortOrderType]
|
|
518
|
+
PaginationConfig: NotRequired[PaginatorConfigTypeDef]
|
|
519
|
+
|
|
520
|
+
class ListAsyncInvokesRequestRequestTypeDef(TypedDict):
|
|
521
|
+
submitTimeAfter: NotRequired[TimestampTypeDef]
|
|
522
|
+
submitTimeBefore: NotRequired[TimestampTypeDef]
|
|
523
|
+
statusEquals: NotRequired[AsyncInvokeStatusType]
|
|
524
|
+
maxResults: NotRequired[int]
|
|
525
|
+
nextToken: NotRequired[str]
|
|
526
|
+
sortBy: NotRequired[Literal["SubmissionTime"]]
|
|
527
|
+
sortOrder: NotRequired[SortOrderType]
|
|
528
|
+
|
|
458
529
|
class ResponseStreamTypeDef(TypedDict):
|
|
459
530
|
chunk: NotRequired[PayloadPartTypeDef]
|
|
460
531
|
internalServerException: NotRequired[InternalServerExceptionTypeDef]
|
|
@@ -464,6 +535,20 @@ class ResponseStreamTypeDef(TypedDict):
|
|
|
464
535
|
modelTimeoutException: NotRequired[ModelTimeoutExceptionTypeDef]
|
|
465
536
|
serviceUnavailableException: NotRequired[ServiceUnavailableExceptionTypeDef]
|
|
466
537
|
|
|
538
|
+
VideoSourceOutputTypeDef = TypedDict(
|
|
539
|
+
"VideoSourceOutputTypeDef",
|
|
540
|
+
{
|
|
541
|
+
"bytes": NotRequired[bytes],
|
|
542
|
+
"s3Location": NotRequired[S3LocationTypeDef],
|
|
543
|
+
},
|
|
544
|
+
)
|
|
545
|
+
VideoSourceTypeDef = TypedDict(
|
|
546
|
+
"VideoSourceTypeDef",
|
|
547
|
+
{
|
|
548
|
+
"bytes": NotRequired[BlobTypeDef],
|
|
549
|
+
"s3Location": NotRequired[S3LocationTypeDef],
|
|
550
|
+
},
|
|
551
|
+
)
|
|
467
552
|
ToolChoiceTypeDef = TypedDict(
|
|
468
553
|
"ToolChoiceTypeDef",
|
|
469
554
|
{
|
|
@@ -479,6 +564,37 @@ class ToolSpecificationTypeDef(TypedDict):
|
|
|
479
564
|
description: NotRequired[str]
|
|
480
565
|
|
|
481
566
|
ToolUseBlockUnionTypeDef = Union[ToolUseBlockTypeDef, ToolUseBlockOutputTypeDef]
|
|
567
|
+
|
|
568
|
+
class AsyncInvokeSummaryTypeDef(TypedDict):
|
|
569
|
+
invocationArn: str
|
|
570
|
+
modelArn: str
|
|
571
|
+
submitTime: datetime
|
|
572
|
+
outputDataConfig: AsyncInvokeOutputDataConfigTypeDef
|
|
573
|
+
clientRequestToken: NotRequired[str]
|
|
574
|
+
status: NotRequired[AsyncInvokeStatusType]
|
|
575
|
+
failureMessage: NotRequired[str]
|
|
576
|
+
lastModifiedTime: NotRequired[datetime]
|
|
577
|
+
endTime: NotRequired[datetime]
|
|
578
|
+
|
|
579
|
+
class GetAsyncInvokeResponseTypeDef(TypedDict):
|
|
580
|
+
invocationArn: str
|
|
581
|
+
modelArn: str
|
|
582
|
+
clientRequestToken: str
|
|
583
|
+
status: AsyncInvokeStatusType
|
|
584
|
+
failureMessage: str
|
|
585
|
+
submitTime: datetime
|
|
586
|
+
lastModifiedTime: datetime
|
|
587
|
+
endTime: datetime
|
|
588
|
+
outputDataConfig: AsyncInvokeOutputDataConfigTypeDef
|
|
589
|
+
ResponseMetadata: ResponseMetadataTypeDef
|
|
590
|
+
|
|
591
|
+
class StartAsyncInvokeRequestRequestTypeDef(TypedDict):
|
|
592
|
+
modelId: str
|
|
593
|
+
modelInput: Mapping[str, Any]
|
|
594
|
+
outputDataConfig: AsyncInvokeOutputDataConfigTypeDef
|
|
595
|
+
clientRequestToken: NotRequired[str]
|
|
596
|
+
tags: NotRequired[Sequence[TagTypeDef]]
|
|
597
|
+
|
|
482
598
|
DocumentSourceUnionTypeDef = Union[DocumentSourceTypeDef, DocumentSourceOutputTypeDef]
|
|
483
599
|
ImageSourceUnionTypeDef = Union[ImageSourceTypeDef, ImageSourceOutputTypeDef]
|
|
484
600
|
|
|
@@ -504,21 +620,29 @@ class GuardrailInvocationMetricsTypeDef(TypedDict):
|
|
|
504
620
|
usage: NotRequired[GuardrailUsageTypeDef]
|
|
505
621
|
guardrailCoverage: NotRequired[GuardrailCoverageTypeDef]
|
|
506
622
|
|
|
507
|
-
class ToolResultContentBlockOutputTypeDef(TypedDict):
|
|
508
|
-
json: NotRequired[Dict[str, Any]]
|
|
509
|
-
text: NotRequired[str]
|
|
510
|
-
image: NotRequired[ImageBlockOutputTypeDef]
|
|
511
|
-
document: NotRequired[DocumentBlockOutputTypeDef]
|
|
512
|
-
|
|
513
623
|
class InvokeModelWithResponseStreamResponseTypeDef(TypedDict):
|
|
514
624
|
body: "EventStream[ResponseStreamTypeDef]"
|
|
515
625
|
contentType: str
|
|
516
626
|
performanceConfigLatency: PerformanceConfigLatencyType
|
|
517
627
|
ResponseMetadata: ResponseMetadataTypeDef
|
|
518
628
|
|
|
629
|
+
VideoBlockOutputTypeDef = TypedDict(
|
|
630
|
+
"VideoBlockOutputTypeDef",
|
|
631
|
+
{
|
|
632
|
+
"format": VideoFormatType,
|
|
633
|
+
"source": VideoSourceOutputTypeDef,
|
|
634
|
+
},
|
|
635
|
+
)
|
|
636
|
+
VideoSourceUnionTypeDef = Union[VideoSourceTypeDef, VideoSourceOutputTypeDef]
|
|
637
|
+
|
|
519
638
|
class ToolTypeDef(TypedDict):
|
|
520
639
|
toolSpec: NotRequired[ToolSpecificationTypeDef]
|
|
521
640
|
|
|
641
|
+
class ListAsyncInvokesResponseTypeDef(TypedDict):
|
|
642
|
+
asyncInvokeSummaries: List[AsyncInvokeSummaryTypeDef]
|
|
643
|
+
ResponseMetadata: ResponseMetadataTypeDef
|
|
644
|
+
nextToken: NotRequired[str]
|
|
645
|
+
|
|
522
646
|
DocumentBlockTypeDef = TypedDict(
|
|
523
647
|
"DocumentBlockTypeDef",
|
|
524
648
|
{
|
|
@@ -546,10 +670,20 @@ class GuardrailAssessmentTypeDef(TypedDict):
|
|
|
546
670
|
contextualGroundingPolicy: NotRequired[GuardrailContextualGroundingPolicyAssessmentTypeDef]
|
|
547
671
|
invocationMetrics: NotRequired[GuardrailInvocationMetricsTypeDef]
|
|
548
672
|
|
|
549
|
-
class
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
673
|
+
class ToolResultContentBlockOutputTypeDef(TypedDict):
|
|
674
|
+
json: NotRequired[Dict[str, Any]]
|
|
675
|
+
text: NotRequired[str]
|
|
676
|
+
image: NotRequired[ImageBlockOutputTypeDef]
|
|
677
|
+
document: NotRequired[DocumentBlockOutputTypeDef]
|
|
678
|
+
video: NotRequired[VideoBlockOutputTypeDef]
|
|
679
|
+
|
|
680
|
+
VideoBlockTypeDef = TypedDict(
|
|
681
|
+
"VideoBlockTypeDef",
|
|
682
|
+
{
|
|
683
|
+
"format": VideoFormatType,
|
|
684
|
+
"source": VideoSourceUnionTypeDef,
|
|
685
|
+
},
|
|
686
|
+
)
|
|
553
687
|
|
|
554
688
|
class ToolConfigurationTypeDef(TypedDict):
|
|
555
689
|
tools: Sequence[ToolTypeDef]
|
|
@@ -575,10 +709,24 @@ class GuardrailTraceAssessmentTypeDef(TypedDict):
|
|
|
575
709
|
inputAssessment: NotRequired[Dict[str, GuardrailAssessmentTypeDef]]
|
|
576
710
|
outputAssessments: NotRequired[Dict[str, List[GuardrailAssessmentTypeDef]]]
|
|
577
711
|
|
|
712
|
+
class ToolResultBlockOutputTypeDef(TypedDict):
|
|
713
|
+
toolUseId: str
|
|
714
|
+
content: List[ToolResultContentBlockOutputTypeDef]
|
|
715
|
+
status: NotRequired[ToolResultStatusType]
|
|
716
|
+
|
|
717
|
+
VideoBlockUnionTypeDef = Union[VideoBlockTypeDef, VideoBlockOutputTypeDef]
|
|
718
|
+
|
|
719
|
+
class ConverseStreamTraceTypeDef(TypedDict):
|
|
720
|
+
guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
|
|
721
|
+
|
|
722
|
+
class ConverseTraceTypeDef(TypedDict):
|
|
723
|
+
guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
|
|
724
|
+
|
|
578
725
|
class ContentBlockOutputTypeDef(TypedDict):
|
|
579
726
|
text: NotRequired[str]
|
|
580
727
|
image: NotRequired[ImageBlockOutputTypeDef]
|
|
581
728
|
document: NotRequired[DocumentBlockOutputTypeDef]
|
|
729
|
+
video: NotRequired[VideoBlockOutputTypeDef]
|
|
582
730
|
toolUse: NotRequired[ToolUseBlockOutputTypeDef]
|
|
583
731
|
toolResult: NotRequired[ToolResultBlockOutputTypeDef]
|
|
584
732
|
guardContent: NotRequired[GuardrailConverseContentBlockOutputTypeDef]
|
|
@@ -588,12 +736,13 @@ class ToolResultContentBlockTypeDef(TypedDict):
|
|
|
588
736
|
text: NotRequired[str]
|
|
589
737
|
image: NotRequired[ImageBlockUnionTypeDef]
|
|
590
738
|
document: NotRequired[DocumentBlockUnionTypeDef]
|
|
739
|
+
video: NotRequired[VideoBlockUnionTypeDef]
|
|
591
740
|
|
|
592
|
-
class
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
741
|
+
class ConverseStreamMetadataEventTypeDef(TypedDict):
|
|
742
|
+
usage: TokenUsageTypeDef
|
|
743
|
+
metrics: ConverseStreamMetricsTypeDef
|
|
744
|
+
trace: NotRequired[ConverseStreamTraceTypeDef]
|
|
745
|
+
performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
|
|
597
746
|
|
|
598
747
|
class MessageOutputTypeDef(TypedDict):
|
|
599
748
|
role: ConversationRoleType
|
|
@@ -603,20 +752,6 @@ ToolResultContentBlockUnionTypeDef = Union[
|
|
|
603
752
|
ToolResultContentBlockTypeDef, ToolResultContentBlockOutputTypeDef
|
|
604
753
|
]
|
|
605
754
|
|
|
606
|
-
class ConverseStreamMetadataEventTypeDef(TypedDict):
|
|
607
|
-
usage: TokenUsageTypeDef
|
|
608
|
-
metrics: ConverseStreamMetricsTypeDef
|
|
609
|
-
trace: NotRequired[ConverseStreamTraceTypeDef]
|
|
610
|
-
performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
|
|
611
|
-
|
|
612
|
-
class ConverseOutputTypeDef(TypedDict):
|
|
613
|
-
message: NotRequired[MessageOutputTypeDef]
|
|
614
|
-
|
|
615
|
-
class ToolResultBlockTypeDef(TypedDict):
|
|
616
|
-
toolUseId: str
|
|
617
|
-
content: Sequence[ToolResultContentBlockUnionTypeDef]
|
|
618
|
-
status: NotRequired[ToolResultStatusType]
|
|
619
|
-
|
|
620
755
|
class ConverseStreamOutputTypeDef(TypedDict):
|
|
621
756
|
messageStart: NotRequired[MessageStartEventTypeDef]
|
|
622
757
|
contentBlockStart: NotRequired[ContentBlockStartEventTypeDef]
|
|
@@ -630,6 +765,18 @@ class ConverseStreamOutputTypeDef(TypedDict):
|
|
|
630
765
|
throttlingException: NotRequired[ThrottlingExceptionTypeDef]
|
|
631
766
|
serviceUnavailableException: NotRequired[ServiceUnavailableExceptionTypeDef]
|
|
632
767
|
|
|
768
|
+
class ConverseOutputTypeDef(TypedDict):
|
|
769
|
+
message: NotRequired[MessageOutputTypeDef]
|
|
770
|
+
|
|
771
|
+
class ToolResultBlockTypeDef(TypedDict):
|
|
772
|
+
toolUseId: str
|
|
773
|
+
content: Sequence[ToolResultContentBlockUnionTypeDef]
|
|
774
|
+
status: NotRequired[ToolResultStatusType]
|
|
775
|
+
|
|
776
|
+
class ConverseStreamResponseTypeDef(TypedDict):
|
|
777
|
+
stream: "EventStream[ConverseStreamOutputTypeDef]"
|
|
778
|
+
ResponseMetadata: ResponseMetadataTypeDef
|
|
779
|
+
|
|
633
780
|
class ConverseResponseTypeDef(TypedDict):
|
|
634
781
|
output: ConverseOutputTypeDef
|
|
635
782
|
stopReason: StopReasonType
|
|
@@ -642,14 +789,11 @@ class ConverseResponseTypeDef(TypedDict):
|
|
|
642
789
|
|
|
643
790
|
ToolResultBlockUnionTypeDef = Union[ToolResultBlockTypeDef, ToolResultBlockOutputTypeDef]
|
|
644
791
|
|
|
645
|
-
class ConverseStreamResponseTypeDef(TypedDict):
|
|
646
|
-
stream: "EventStream[ConverseStreamOutputTypeDef]"
|
|
647
|
-
ResponseMetadata: ResponseMetadataTypeDef
|
|
648
|
-
|
|
649
792
|
class ContentBlockTypeDef(TypedDict):
|
|
650
793
|
text: NotRequired[str]
|
|
651
794
|
image: NotRequired[ImageBlockUnionTypeDef]
|
|
652
795
|
document: NotRequired[DocumentBlockUnionTypeDef]
|
|
796
|
+
video: NotRequired[VideoBlockUnionTypeDef]
|
|
653
797
|
toolUse: NotRequired[ToolUseBlockUnionTypeDef]
|
|
654
798
|
toolResult: NotRequired[ToolResultBlockUnionTypeDef]
|
|
655
799
|
guardContent: NotRequired[GuardrailConverseContentBlockUnionTypeDef]
|
|
@@ -670,6 +814,7 @@ class ConverseStreamRequestRequestTypeDef(TypedDict):
|
|
|
670
814
|
additionalModelRequestFields: NotRequired[Mapping[str, Any]]
|
|
671
815
|
promptVariables: NotRequired[Mapping[str, PromptVariableValuesTypeDef]]
|
|
672
816
|
additionalModelResponseFieldPaths: NotRequired[Sequence[str]]
|
|
817
|
+
requestMetadata: NotRequired[Mapping[str, str]]
|
|
673
818
|
performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
|
|
674
819
|
|
|
675
820
|
MessageUnionTypeDef = Union[MessageTypeDef, MessageOutputTypeDef]
|
|
@@ -684,4 +829,5 @@ class ConverseRequestRequestTypeDef(TypedDict):
|
|
|
684
829
|
additionalModelRequestFields: NotRequired[Mapping[str, Any]]
|
|
685
830
|
promptVariables: NotRequired[Mapping[str, PromptVariableValuesTypeDef]]
|
|
686
831
|
additionalModelResponseFieldPaths: NotRequired[Sequence[str]]
|
|
832
|
+
requestMetadata: NotRequired[Mapping[str, str]]
|
|
687
833
|
performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: types-boto3-bedrock-runtime
|
|
3
|
-
Version: 1.35.
|
|
4
|
-
Summary: Type annotations for boto3 BedrockRuntime 1.35.
|
|
3
|
+
Version: 1.35.74
|
|
4
|
+
Summary: Type annotations for boto3 BedrockRuntime 1.35.74 service generated with mypy-boto3-builder 8.5.0
|
|
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
|
|
@@ -44,7 +44,7 @@ Requires-Dist: typing-extensions>=4.1.0; python_version < "3.12"
|
|
|
44
44
|

|
|
45
45
|
|
|
46
46
|
Type annotations for
|
|
47
|
-
[boto3 BedrockRuntime 1.35.
|
|
47
|
+
[boto3 BedrockRuntime 1.35.74](https://pypi.org/project/boto3/) compatible with
|
|
48
48
|
[VSCode](https://code.visualstudio.com/),
|
|
49
49
|
[PyCharm](https://www.jetbrains.com/pycharm/),
|
|
50
50
|
[Emacs](https://www.gnu.org/software/emacs/),
|
|
@@ -79,6 +79,7 @@ See how it helps you find and fix potential bugs:
|
|
|
79
79
|
- [Pylint compatibility](#pylint-compatibility)
|
|
80
80
|
- [Explicit type annotations](#explicit-type-annotations)
|
|
81
81
|
- [Client annotations](#client-annotations)
|
|
82
|
+
- [Paginators annotations](#paginators-annotations)
|
|
82
83
|
- [Literals](#literals)
|
|
83
84
|
- [Type definitions](#type-definitions)
|
|
84
85
|
- [How it works](#how-it-works)
|
|
@@ -315,6 +316,26 @@ client: BedrockRuntimeClient = Session().client("bedrock-runtime")
|
|
|
315
316
|
# now client usage is checked by mypy and IDE should provide code completion
|
|
316
317
|
```
|
|
317
318
|
|
|
319
|
+
<a id="paginators-annotations"></a>
|
|
320
|
+
|
|
321
|
+
### Paginators annotations
|
|
322
|
+
|
|
323
|
+
`types_boto3_bedrock_runtime.paginator` module contains type annotations for
|
|
324
|
+
all paginators.
|
|
325
|
+
|
|
326
|
+
```python
|
|
327
|
+
from boto3.session import Session
|
|
328
|
+
|
|
329
|
+
from types_boto3_bedrock_runtime import BedrockRuntimeClient
|
|
330
|
+
from types_boto3_bedrock_runtime.paginator import ListAsyncInvokesPaginator
|
|
331
|
+
|
|
332
|
+
client: BedrockRuntimeClient = Session().client("bedrock-runtime")
|
|
333
|
+
|
|
334
|
+
# Explicit type annotations are optional here
|
|
335
|
+
# Types should be correctly discovered by mypy and IDEs
|
|
336
|
+
list_async_invokes_paginator: ListAsyncInvokesPaginator = client.get_paginator("list_async_invokes")
|
|
337
|
+
```
|
|
338
|
+
|
|
318
339
|
<a id="literals"></a>
|
|
319
340
|
|
|
320
341
|
### Literals
|
|
@@ -326,10 +347,10 @@ Full list of `BedrockRuntime` Literals can be found in
|
|
|
326
347
|
[docs](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/literals/).
|
|
327
348
|
|
|
328
349
|
```python
|
|
329
|
-
from types_boto3_bedrock_runtime.literals import
|
|
350
|
+
from types_boto3_bedrock_runtime.literals import AsyncInvokeStatusType
|
|
330
351
|
|
|
331
352
|
|
|
332
|
-
def check_value(value:
|
|
353
|
+
def check_value(value: AsyncInvokeStatusType) -> bool: ...
|
|
333
354
|
```
|
|
334
355
|
|
|
335
356
|
<a id="type-definitions"></a>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
types_boto3_bedrock_runtime/__init__.py,sha256=Mwpd9xKG3liMABQUjeJqrcCbwBgLo_Sz__t48x--KYY,684
|
|
2
|
+
types_boto3_bedrock_runtime/__init__.pyi,sha256=z3ZSV0fLVUZGq5g1mUjy-4IXEM_h2S05W0MTMQaUG78,683
|
|
3
|
+
types_boto3_bedrock_runtime/__main__.py,sha256=CQLxmJn2qnj6nFM7cIDmxwzwTQfovzWGe5D_GVVI4g0,980
|
|
4
|
+
types_boto3_bedrock_runtime/client.py,sha256=4Yo8rPiMrICJIifwj1qlEc4oWvmmkGJC2_YCq5f-zBU,9102
|
|
5
|
+
types_boto3_bedrock_runtime/client.pyi,sha256=RqTf0hyQkig2Cg1NdgezhVLeNgb3PE-WUYbx-TvpE2s,9098
|
|
6
|
+
types_boto3_bedrock_runtime/literals.py,sha256=dBuIMYufxOGhVe6eSzRgVJhUvxS0SxEwWLdUhNcvQRA,12672
|
|
7
|
+
types_boto3_bedrock_runtime/literals.pyi,sha256=BHOZTkCaiB6Zz5-__nFqA2ynON-2dGhrpXOQ8O1GTCw,12670
|
|
8
|
+
types_boto3_bedrock_runtime/paginator.py,sha256=kO2rc014ZBXybo7hHNZPhuFekfDiaG83JcvOKPqWhGQ,2221
|
|
9
|
+
types_boto3_bedrock_runtime/paginator.pyi,sha256=cHJiRKWIvQlRoxuf8VBCDYCbRzaITMOJ_ovFNICjavo,2216
|
|
10
|
+
types_boto3_bedrock_runtime/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
+
types_boto3_bedrock_runtime/type_defs.py,sha256=4aw7eLXRTZY2XKh9q2GLNtT5wwAx3I5sv2xvUAXi-Wc,27401
|
|
12
|
+
types_boto3_bedrock_runtime/type_defs.pyi,sha256=ccoe6O3xZ2ayT3z1kN79IWw4_eZdzSbZ1OjQcQntE_k,27290
|
|
13
|
+
types_boto3_bedrock_runtime/version.py,sha256=B0P5JUO-cREkwttMqs7oU9i3UOmgK6CWkZC0OK5p5h4,93
|
|
14
|
+
types_boto3_bedrock_runtime-1.35.74.dist-info/LICENSE,sha256=eQDadZQZ3vRCiNF510ZT4yJV2zgo4000AOBoDRZyvKg,1070
|
|
15
|
+
types_boto3_bedrock_runtime-1.35.74.dist-info/METADATA,sha256=O1XpfmjugH0qi0yWo8fCuHnwD5MwzJ1aocnnu1VNNWs,14469
|
|
16
|
+
types_boto3_bedrock_runtime-1.35.74.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
17
|
+
types_boto3_bedrock_runtime-1.35.74.dist-info/top_level.txt,sha256=vs95SHzu94rM38mmauihzrtfinMIBV-tKDaYSV0eMww,28
|
|
18
|
+
types_boto3_bedrock_runtime-1.35.74.dist-info/RECORD,,
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
types_boto3_bedrock_runtime/__init__.py,sha256=r-rq-o_jkunMs_VLIQoWdKyVFPBCgxAKEY5R7CAwylM,465
|
|
2
|
-
types_boto3_bedrock_runtime/__init__.pyi,sha256=xwBsd5gEbvm2y_5yvAkZcnTKuHFx5vvj6iARjrcKJnQ,464
|
|
3
|
-
types_boto3_bedrock_runtime/__main__.py,sha256=TkakJxMFUiB4_fiA2ZR9dg_SvDIMdECxyyR8W8n-PXA,980
|
|
4
|
-
types_boto3_bedrock_runtime/client.py,sha256=t5DH__TAJgbO4636F1M9vMhvLr_5hTCcxySnAxKEOj0,6744
|
|
5
|
-
types_boto3_bedrock_runtime/client.pyi,sha256=XH77kX0Fkfhmmpb6SORoooMpVKopeoifuLCjcEyOiOw,6740
|
|
6
|
-
types_boto3_bedrock_runtime/literals.py,sha256=ya1PHDCLq0i4ylHbEkAe_Duw4xsSMVC9I8Wn12RWwzY,12100
|
|
7
|
-
types_boto3_bedrock_runtime/literals.pyi,sha256=bmar_NXp7KAI0QqMOqf2MjYGGETaiEMGvUu-ytqODVk,12098
|
|
8
|
-
types_boto3_bedrock_runtime/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
-
types_boto3_bedrock_runtime/type_defs.py,sha256=1mYaXDJ0NWiuTzIVQHvxq3TF5z4WjRwMwv5DKzBloug,22774
|
|
10
|
-
types_boto3_bedrock_runtime/type_defs.pyi,sha256=XcG25xoFWhjLB8xCShVb-QqxAqhADTR41-ifCQ1i0B0,22681
|
|
11
|
-
types_boto3_bedrock_runtime/version.py,sha256=jCYdcrMS0iwNK0BgcXNV92uAnGp2Em-udUAnOKU-wZ0,93
|
|
12
|
-
types_boto3_bedrock_runtime-1.35.73.dist-info/LICENSE,sha256=eQDadZQZ3vRCiNF510ZT4yJV2zgo4000AOBoDRZyvKg,1070
|
|
13
|
-
types_boto3_bedrock_runtime-1.35.73.dist-info/METADATA,sha256=VpC8KGkfq6ZWzfJHeJtGCCs73jpLqRB8ghHwGM4GArA,13793
|
|
14
|
-
types_boto3_bedrock_runtime-1.35.73.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
15
|
-
types_boto3_bedrock_runtime-1.35.73.dist-info/top_level.txt,sha256=vs95SHzu94rM38mmauihzrtfinMIBV-tKDaYSV0eMww,28
|
|
16
|
-
types_boto3_bedrock_runtime-1.35.73.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|