types-boto3-bedrock-runtime 1.35.71__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 +25 -0
- types_boto3_bedrock_runtime/__init__.pyi +24 -0
- types_boto3_bedrock_runtime/__main__.py +42 -0
- types_boto3_bedrock_runtime/client.py +159 -0
- types_boto3_bedrock_runtime/client.pyi +155 -0
- types_boto3_bedrock_runtime/literals.py +532 -0
- types_boto3_bedrock_runtime/literals.pyi +530 -0
- types_boto3_bedrock_runtime/py.typed +0 -0
- types_boto3_bedrock_runtime/type_defs.py +766 -0
- types_boto3_bedrock_runtime/type_defs.pyi +674 -0
- types_boto3_bedrock_runtime/version.py +7 -0
- types_boto3_bedrock_runtime-1.35.71.dist-info/LICENSE +21 -0
- types_boto3_bedrock_runtime-1.35.71.dist-info/METADATA +409 -0
- types_boto3_bedrock_runtime-1.35.71.dist-info/RECORD +16 -0
- types_boto3_bedrock_runtime-1.35.71.dist-info/WHEEL +5 -0
- types_boto3_bedrock_runtime-1.35.71.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Main interface for bedrock-runtime service.
|
|
3
|
+
|
|
4
|
+
Usage::
|
|
5
|
+
|
|
6
|
+
```python
|
|
7
|
+
from boto3.session import Session
|
|
8
|
+
from types_boto3_bedrock_runtime import (
|
|
9
|
+
BedrockRuntimeClient,
|
|
10
|
+
Client,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
session = Session()
|
|
14
|
+
client: BedrockRuntimeClient = session.client("bedrock-runtime")
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Copyright 2024 Vlad Emelianov
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
from .client import BedrockRuntimeClient
|
|
21
|
+
|
|
22
|
+
Client = BedrockRuntimeClient
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
__all__ = ("BedrockRuntimeClient", "Client")
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Main interface for bedrock-runtime service.
|
|
3
|
+
|
|
4
|
+
Usage::
|
|
5
|
+
|
|
6
|
+
```python
|
|
7
|
+
from boto3.session import Session
|
|
8
|
+
from types_boto3_bedrock_runtime import (
|
|
9
|
+
BedrockRuntimeClient,
|
|
10
|
+
Client,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
session = Session()
|
|
14
|
+
client: BedrockRuntimeClient = session.client("bedrock-runtime")
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Copyright 2024 Vlad Emelianov
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
from .client import BedrockRuntimeClient
|
|
21
|
+
|
|
22
|
+
Client = BedrockRuntimeClient
|
|
23
|
+
|
|
24
|
+
__all__ = ("BedrockRuntimeClient", "Client")
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Main CLI entrypoint.
|
|
3
|
+
|
|
4
|
+
Copyright 2024 Vlad Emelianov
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
import sys
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def print_info() -> None:
|
|
11
|
+
"""
|
|
12
|
+
Print package info to stdout.
|
|
13
|
+
"""
|
|
14
|
+
print(
|
|
15
|
+
"Type annotations for boto3 BedrockRuntime 1.35.71\n"
|
|
16
|
+
"Version: 1.35.71\n"
|
|
17
|
+
"Builder version: 8.4.1\n"
|
|
18
|
+
"Docs: https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime//\n"
|
|
19
|
+
"Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime.html#bedrockruntime\n"
|
|
20
|
+
"Other services: https://pypi.org/project/boto3-stubs/\n"
|
|
21
|
+
"Changelog: https://github.com/youtype/mypy_boto3_builder/releases"
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def print_version() -> None:
|
|
26
|
+
"""
|
|
27
|
+
Print package version to stdout.
|
|
28
|
+
"""
|
|
29
|
+
print("1.35.71")
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def main() -> None:
|
|
33
|
+
"""
|
|
34
|
+
Main CLI entrypoint.
|
|
35
|
+
"""
|
|
36
|
+
if "--version" in sys.argv:
|
|
37
|
+
return print_version()
|
|
38
|
+
print_info()
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
if __name__ == "__main__":
|
|
42
|
+
main()
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Type annotations for bedrock-runtime service client.
|
|
3
|
+
|
|
4
|
+
[Open documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/)
|
|
5
|
+
|
|
6
|
+
Usage::
|
|
7
|
+
|
|
8
|
+
```python
|
|
9
|
+
from boto3.session import Session
|
|
10
|
+
from types_boto3_bedrock_runtime.client import BedrockRuntimeClient
|
|
11
|
+
|
|
12
|
+
session = Session()
|
|
13
|
+
client: BedrockRuntimeClient = session.client("bedrock-runtime")
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Copyright 2024 Vlad Emelianov
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
import sys
|
|
20
|
+
from typing import Any, Dict, Mapping, Type
|
|
21
|
+
|
|
22
|
+
from botocore.client import BaseClient, ClientMeta
|
|
23
|
+
|
|
24
|
+
from .type_defs import (
|
|
25
|
+
ApplyGuardrailRequestRequestTypeDef,
|
|
26
|
+
ApplyGuardrailResponseTypeDef,
|
|
27
|
+
ConverseRequestRequestTypeDef,
|
|
28
|
+
ConverseResponseTypeDef,
|
|
29
|
+
ConverseStreamRequestRequestTypeDef,
|
|
30
|
+
ConverseStreamResponseTypeDef,
|
|
31
|
+
InvokeModelRequestRequestTypeDef,
|
|
32
|
+
InvokeModelResponseTypeDef,
|
|
33
|
+
InvokeModelWithResponseStreamRequestRequestTypeDef,
|
|
34
|
+
InvokeModelWithResponseStreamResponseTypeDef,
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
if sys.version_info >= (3, 12):
|
|
38
|
+
from typing import Unpack
|
|
39
|
+
else:
|
|
40
|
+
from typing_extensions import Unpack
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
__all__ = ("BedrockRuntimeClient",)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class BotocoreClientError(Exception):
|
|
47
|
+
MSG_TEMPLATE: str
|
|
48
|
+
|
|
49
|
+
def __init__(self, error_response: Mapping[str, Any], operation_name: str) -> None:
|
|
50
|
+
self.response: Dict[str, Any]
|
|
51
|
+
self.operation_name: str
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
class Exceptions:
|
|
55
|
+
AccessDeniedException: Type[BotocoreClientError]
|
|
56
|
+
ClientError: Type[BotocoreClientError]
|
|
57
|
+
InternalServerException: Type[BotocoreClientError]
|
|
58
|
+
ModelErrorException: Type[BotocoreClientError]
|
|
59
|
+
ModelNotReadyException: Type[BotocoreClientError]
|
|
60
|
+
ModelStreamErrorException: Type[BotocoreClientError]
|
|
61
|
+
ModelTimeoutException: Type[BotocoreClientError]
|
|
62
|
+
ResourceNotFoundException: Type[BotocoreClientError]
|
|
63
|
+
ServiceQuotaExceededException: Type[BotocoreClientError]
|
|
64
|
+
ServiceUnavailableException: Type[BotocoreClientError]
|
|
65
|
+
ThrottlingException: Type[BotocoreClientError]
|
|
66
|
+
ValidationException: Type[BotocoreClientError]
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
class BedrockRuntimeClient(BaseClient):
|
|
70
|
+
"""
|
|
71
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime.html#BedrockRuntime.Client)
|
|
72
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/)
|
|
73
|
+
"""
|
|
74
|
+
|
|
75
|
+
meta: ClientMeta
|
|
76
|
+
|
|
77
|
+
@property
|
|
78
|
+
def exceptions(self) -> Exceptions:
|
|
79
|
+
"""
|
|
80
|
+
BedrockRuntimeClient exceptions.
|
|
81
|
+
|
|
82
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime.html#BedrockRuntime.Client)
|
|
83
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#exceptions)
|
|
84
|
+
"""
|
|
85
|
+
|
|
86
|
+
def can_paginate(self, operation_name: str) -> bool:
|
|
87
|
+
"""
|
|
88
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/can_paginate.html)
|
|
89
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#can_paginate)
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
def generate_presigned_url(
|
|
93
|
+
self,
|
|
94
|
+
ClientMethod: str,
|
|
95
|
+
Params: Mapping[str, Any] = ...,
|
|
96
|
+
ExpiresIn: int = 3600,
|
|
97
|
+
HttpMethod: str = ...,
|
|
98
|
+
) -> str:
|
|
99
|
+
"""
|
|
100
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/generate_presigned_url.html)
|
|
101
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#generate_presigned_url)
|
|
102
|
+
"""
|
|
103
|
+
|
|
104
|
+
def close(self) -> None:
|
|
105
|
+
"""
|
|
106
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/close.html)
|
|
107
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#close)
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
def apply_guardrail(
|
|
111
|
+
self, **kwargs: Unpack[ApplyGuardrailRequestRequestTypeDef]
|
|
112
|
+
) -> ApplyGuardrailResponseTypeDef:
|
|
113
|
+
"""
|
|
114
|
+
The action to apply a guardrail.
|
|
115
|
+
|
|
116
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/apply_guardrail.html)
|
|
117
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#apply_guardrail)
|
|
118
|
+
"""
|
|
119
|
+
|
|
120
|
+
def converse(self, **kwargs: Unpack[ConverseRequestRequestTypeDef]) -> ConverseResponseTypeDef:
|
|
121
|
+
"""
|
|
122
|
+
Sends messages to the specified Amazon Bedrock model.
|
|
123
|
+
|
|
124
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/converse.html)
|
|
125
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#converse)
|
|
126
|
+
"""
|
|
127
|
+
|
|
128
|
+
def converse_stream(
|
|
129
|
+
self, **kwargs: Unpack[ConverseStreamRequestRequestTypeDef]
|
|
130
|
+
) -> ConverseStreamResponseTypeDef:
|
|
131
|
+
"""
|
|
132
|
+
Sends messages to the specified Amazon Bedrock model and returns the response
|
|
133
|
+
in a stream.
|
|
134
|
+
|
|
135
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/converse_stream.html)
|
|
136
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#converse_stream)
|
|
137
|
+
"""
|
|
138
|
+
|
|
139
|
+
def invoke_model(
|
|
140
|
+
self, **kwargs: Unpack[InvokeModelRequestRequestTypeDef]
|
|
141
|
+
) -> InvokeModelResponseTypeDef:
|
|
142
|
+
"""
|
|
143
|
+
Invokes the specified Amazon Bedrock model to run inference using the prompt
|
|
144
|
+
and inference parameters provided in the request body.
|
|
145
|
+
|
|
146
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/invoke_model.html)
|
|
147
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#invoke_model)
|
|
148
|
+
"""
|
|
149
|
+
|
|
150
|
+
def invoke_model_with_response_stream(
|
|
151
|
+
self, **kwargs: Unpack[InvokeModelWithResponseStreamRequestRequestTypeDef]
|
|
152
|
+
) -> InvokeModelWithResponseStreamResponseTypeDef:
|
|
153
|
+
"""
|
|
154
|
+
Invoke the specified Amazon Bedrock model to run inference using the prompt and
|
|
155
|
+
inference parameters provided in the request body.
|
|
156
|
+
|
|
157
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/invoke_model_with_response_stream.html)
|
|
158
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#invoke_model_with_response_stream)
|
|
159
|
+
"""
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Type annotations for bedrock-runtime service client.
|
|
3
|
+
|
|
4
|
+
[Open documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/)
|
|
5
|
+
|
|
6
|
+
Usage::
|
|
7
|
+
|
|
8
|
+
```python
|
|
9
|
+
from boto3.session import Session
|
|
10
|
+
from types_boto3_bedrock_runtime.client import BedrockRuntimeClient
|
|
11
|
+
|
|
12
|
+
session = Session()
|
|
13
|
+
client: BedrockRuntimeClient = session.client("bedrock-runtime")
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Copyright 2024 Vlad Emelianov
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
import sys
|
|
20
|
+
from typing import Any, Dict, Mapping, Type
|
|
21
|
+
|
|
22
|
+
from botocore.client import BaseClient, ClientMeta
|
|
23
|
+
|
|
24
|
+
from .type_defs import (
|
|
25
|
+
ApplyGuardrailRequestRequestTypeDef,
|
|
26
|
+
ApplyGuardrailResponseTypeDef,
|
|
27
|
+
ConverseRequestRequestTypeDef,
|
|
28
|
+
ConverseResponseTypeDef,
|
|
29
|
+
ConverseStreamRequestRequestTypeDef,
|
|
30
|
+
ConverseStreamResponseTypeDef,
|
|
31
|
+
InvokeModelRequestRequestTypeDef,
|
|
32
|
+
InvokeModelResponseTypeDef,
|
|
33
|
+
InvokeModelWithResponseStreamRequestRequestTypeDef,
|
|
34
|
+
InvokeModelWithResponseStreamResponseTypeDef,
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
if sys.version_info >= (3, 12):
|
|
38
|
+
from typing import Unpack
|
|
39
|
+
else:
|
|
40
|
+
from typing_extensions import Unpack
|
|
41
|
+
|
|
42
|
+
__all__ = ("BedrockRuntimeClient",)
|
|
43
|
+
|
|
44
|
+
class BotocoreClientError(Exception):
|
|
45
|
+
MSG_TEMPLATE: str
|
|
46
|
+
|
|
47
|
+
def __init__(self, error_response: Mapping[str, Any], operation_name: str) -> None:
|
|
48
|
+
self.response: Dict[str, Any]
|
|
49
|
+
self.operation_name: str
|
|
50
|
+
|
|
51
|
+
class Exceptions:
|
|
52
|
+
AccessDeniedException: Type[BotocoreClientError]
|
|
53
|
+
ClientError: Type[BotocoreClientError]
|
|
54
|
+
InternalServerException: Type[BotocoreClientError]
|
|
55
|
+
ModelErrorException: Type[BotocoreClientError]
|
|
56
|
+
ModelNotReadyException: Type[BotocoreClientError]
|
|
57
|
+
ModelStreamErrorException: Type[BotocoreClientError]
|
|
58
|
+
ModelTimeoutException: Type[BotocoreClientError]
|
|
59
|
+
ResourceNotFoundException: Type[BotocoreClientError]
|
|
60
|
+
ServiceQuotaExceededException: Type[BotocoreClientError]
|
|
61
|
+
ServiceUnavailableException: Type[BotocoreClientError]
|
|
62
|
+
ThrottlingException: Type[BotocoreClientError]
|
|
63
|
+
ValidationException: Type[BotocoreClientError]
|
|
64
|
+
|
|
65
|
+
class BedrockRuntimeClient(BaseClient):
|
|
66
|
+
"""
|
|
67
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime.html#BedrockRuntime.Client)
|
|
68
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/)
|
|
69
|
+
"""
|
|
70
|
+
|
|
71
|
+
meta: ClientMeta
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def exceptions(self) -> Exceptions:
|
|
75
|
+
"""
|
|
76
|
+
BedrockRuntimeClient exceptions.
|
|
77
|
+
|
|
78
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime.html#BedrockRuntime.Client)
|
|
79
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#exceptions)
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
def can_paginate(self, operation_name: str) -> bool:
|
|
83
|
+
"""
|
|
84
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/can_paginate.html)
|
|
85
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#can_paginate)
|
|
86
|
+
"""
|
|
87
|
+
|
|
88
|
+
def generate_presigned_url(
|
|
89
|
+
self,
|
|
90
|
+
ClientMethod: str,
|
|
91
|
+
Params: Mapping[str, Any] = ...,
|
|
92
|
+
ExpiresIn: int = 3600,
|
|
93
|
+
HttpMethod: str = ...,
|
|
94
|
+
) -> str:
|
|
95
|
+
"""
|
|
96
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/generate_presigned_url.html)
|
|
97
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#generate_presigned_url)
|
|
98
|
+
"""
|
|
99
|
+
|
|
100
|
+
def close(self) -> None:
|
|
101
|
+
"""
|
|
102
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/close.html)
|
|
103
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#close)
|
|
104
|
+
"""
|
|
105
|
+
|
|
106
|
+
def apply_guardrail(
|
|
107
|
+
self, **kwargs: Unpack[ApplyGuardrailRequestRequestTypeDef]
|
|
108
|
+
) -> ApplyGuardrailResponseTypeDef:
|
|
109
|
+
"""
|
|
110
|
+
The action to apply a guardrail.
|
|
111
|
+
|
|
112
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/apply_guardrail.html)
|
|
113
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#apply_guardrail)
|
|
114
|
+
"""
|
|
115
|
+
|
|
116
|
+
def converse(self, **kwargs: Unpack[ConverseRequestRequestTypeDef]) -> ConverseResponseTypeDef:
|
|
117
|
+
"""
|
|
118
|
+
Sends messages to the specified Amazon Bedrock model.
|
|
119
|
+
|
|
120
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/converse.html)
|
|
121
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#converse)
|
|
122
|
+
"""
|
|
123
|
+
|
|
124
|
+
def converse_stream(
|
|
125
|
+
self, **kwargs: Unpack[ConverseStreamRequestRequestTypeDef]
|
|
126
|
+
) -> ConverseStreamResponseTypeDef:
|
|
127
|
+
"""
|
|
128
|
+
Sends messages to the specified Amazon Bedrock model and returns the response
|
|
129
|
+
in a stream.
|
|
130
|
+
|
|
131
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/converse_stream.html)
|
|
132
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#converse_stream)
|
|
133
|
+
"""
|
|
134
|
+
|
|
135
|
+
def invoke_model(
|
|
136
|
+
self, **kwargs: Unpack[InvokeModelRequestRequestTypeDef]
|
|
137
|
+
) -> InvokeModelResponseTypeDef:
|
|
138
|
+
"""
|
|
139
|
+
Invokes the specified Amazon Bedrock model to run inference using the prompt
|
|
140
|
+
and inference parameters provided in the request body.
|
|
141
|
+
|
|
142
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/invoke_model.html)
|
|
143
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#invoke_model)
|
|
144
|
+
"""
|
|
145
|
+
|
|
146
|
+
def invoke_model_with_response_stream(
|
|
147
|
+
self, **kwargs: Unpack[InvokeModelWithResponseStreamRequestRequestTypeDef]
|
|
148
|
+
) -> InvokeModelWithResponseStreamResponseTypeDef:
|
|
149
|
+
"""
|
|
150
|
+
Invoke the specified Amazon Bedrock model to run inference using the prompt and
|
|
151
|
+
inference parameters provided in the request body.
|
|
152
|
+
|
|
153
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/invoke_model_with_response_stream.html)
|
|
154
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#invoke_model_with_response_stream)
|
|
155
|
+
"""
|