Skip to content

Commit 4a49640

Browse files
committed
Update docstring.
Change-Id: I805473f9aaeb04e922a9f66bb5f40716d42fb738
1 parent c884dc2 commit 4a49640

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

google/generativeai/protos.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
"""
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.**
1719
1820
ProtoBufers are Google API's serilization format. They are strongly typed and efficient.
1921
2022
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.
2225
2326
If you have any uncertainty about what the API may accept or return, these classes provide the
2427
complete/unambiguous answer. They come from the `google-ai-generativelanguage` package which is
@@ -48,7 +51,7 @@
4851
>>> p_dict
4952
{'inline_data': {'mime_type': 'image/png', 'data': 'UE5H'}}
5053
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
5255
constructor:
5356
5457
>>> p = protos.Part(p_dict)

0 commit comments

Comments
 (0)