File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 13
13
# See the License for the specific language governing permissions and
14
14
# limitations under the License.
15
15
"""
16
- This module publishes the ProtoBuffer "Message" classes used by the API.
16
+ This module provides low level access to theProtoBuffer "Message" classes used by the API.
17
+
18
+ **For typical usage of this SDK you do not need to use any of these classes.**
17
19
18
20
ProtoBufers are Google API's serilization format. They are strongly typed and efficient.
19
21
20
22
The `genai` SDK tries to be permissive about what objects it will accept from a user, but in the end
21
- the SDK always converts input to an appropriate Proto Message object to send as the request.
23
+ the SDK always converts input to an appropriate Proto Message object to send as the request. Each API request
24
+ has a `*Request` and `*Response` Message defined here.
22
25
23
26
If you have any uncertainty about what the API may accept or return, these classes provide the
24
27
complete/unambiguous answer. They come from the `google-ai-generativelanguage` package which is
48
51
>>> p_dict
49
52
{'inline_data': {'mime_type': 'image/png', 'data': 'UE5H'}}
50
53
51
- A compatible dict can ve converted to an instance of a Message class by passing it as the first argument to the
54
+ A compatible dict can be converted to an instance of a Message class by passing it as the first argument to the
52
55
constructor:
53
56
54
57
>>> p = protos.Part(p_dict)
You can’t perform that action at this time.
0 commit comments