Enhance functions Documentation and Improve Error Messages #350
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Proposed Changes:
Added Missing Docstrings:
Enhanced Existing Docstrings:
Improved Error Messages:
Changed files
google/generativeai/answer.py
- 13 changes (6 additions & 7 deletions)google/generativeai/client.py
- 10 changes (7 additions & 3 deletions)google/generativeai/discuss.py
- 34 changes (21 additions & 13 deletions)google/generativeai/embedding.py
- 11 changes (6 additions & 5 deletions)google/generativeai/files.py
- 5 changes (4 additions & 1 deletion)google/generativeai/generative_models.py
- 48 changes (25 additions & 23 deletions)google/generativeai/models.py
- 48 changes (29 additions & 19 deletions)google/generativeai/operations.py
- 8 changes (6 additions & 2 deletions)google/generativeai/permission.py
- 8 changes (3 additions & 5 deletions)google/generativeai/responder.py
- 12 changes (6 additions & 6 deletions)google/generativeai/retriever.py
- 16 changes (6 additions & 10 deletions)google/generativeai/text.py
- 8 changes (6 additions & 2 deletions)google/generativeai/types/content_types.py
- 85 changes (50 additions & 35 deletions)google/generativeai/types/file_types.py
- 6 changes (5 additions & 1 deletion)google/generativeai/types/generation_types.py
- 33 changes (14 additions & 19 deletions)google/generativeai/types/helper_types.py
- 5 changes (4 additions & 1 deletion)google/generativeai/types/model_types.py
- 18 changes (14 additions & 4 deletions)google/generativeai/types/permission_types.py
- 9 changes (4 additions & 5 deletions)google/generativeai/types/retriever_types.py
- 63 changes (38 additions & 25 deletions)google/generativeai/utils.py
- 2 changes (2 additions & 0 deletions)tests/test_client.py
- 2 changes (1 addition & 1 deletion)Checklist
Black
pytest
build_docs.py