Commit Graph

13 Commits

Author SHA1 Message Date
c4acf465ba Add rustdoc comments to all public items
Document all public structs, enums, traits, functions, fields, and
variants across the library. Adds crate-level documentation with a
usage example, module-level docs, and API reference links where
applicable. Also fixes four bare URL warnings in existing doc comments.
2026-01-31 06:59:08 +00:00
d1bd00ce95 Adds missing Clone/Debugs 2026-01-30 20:39:35 +00:00
a8fbe658bb Add consistent error handling to text_embeddings and count_tokens
- Check HTTP status before parsing response body, matching the
  pattern used by generate_content and predict_image
- Unwrap TextEmbeddingResponse enum, returning TextEmbeddingResponseOk
- Extract CountTokensResponseResult struct and add into_result(),
  returning the unwrapped result instead of the raw enum
- All endpoints now consistently return the success type directly
  and surface API errors as GeminiError or GenericApiError
2026-01-30 20:32:40 +00:00
eb38c65ac5 Remove dead code and fix typo
- Remove unused AUTH_SCOPE constant from client.rs
- Remove unused ErrorType, ErrorInfoMetadata, FieldViolation,
  and Link types from types/error.rs
- Fix "EventSourrce" typo in error.rs Display impl
2026-01-30 20:29:55 +00:00
56cf4f280b Remove outdated failing tests from generate_content.rs 2026-01-30 20:23:06 +00:00
36f8965547 Clean up unused dependencies 2026-01-29 20:14:49 +00:00
92cc558725 Utility method for system prompt creation 2026-01-15 21:36:33 +00:00
fafff9ce1f Makes SafetyRating severty optional 2026-01-14 21:14:49 +00:00
5fb31d468b Updates FunctionResponse 2025-12-02 10:15:29 +00:00
46525071e9 Makes thinking budget optional 2025-12-02 10:12:37 +00:00
fe0e0cf672 Add missing properties for FunctionResponsePart 2025-12-01 21:43:58 +00:00
163d3154ea Thinking configuration 2025-12-01 12:26:43 +00:00
6786a5e9f0 Initial Commit 2025-11-26 17:51:15 +00:00