Commit Graph

26 Commits

Author SHA1 Message Date
5e0fc06327 Chore: update dependencies
Some checks failed
CI / Check (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Clippy (push) Has been cancelled
CI / Format (push) Has been cancelled
CI / Documentation (push) Has been cancelled
2026-04-03 14:32:12 +01:00
2ed8d881c6 Add GitHub Actions CI workflow
Runs check, test, clippy, format, and documentation jobs on pushes
and pull requests targeting main.
2026-01-31 07:00:43 +00:00
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
f8a4323117 Fix SSE data field to append instead of overwrite
Per the SSE specification, multiple data: lines within a single event
should be concatenated with newline separators. Previously, each data:
line overwrote the previous value.
2026-01-31 06:40:45 +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
4c156fbb33 Remove unnecessary unsafe impl Send/Sync for GeminiClient
Both reqwest::Client and String already implement Send and Sync,
so the manual unsafe impls were redundant.
2026-01-30 20:27:54 +00:00
92030a0dd9 Remove prompt_conversation and dialogue module
Drop prompt_conversation, collect_text_from_response, Message,
and Dialogue to redesign the conversation feature later.
2026-01-30 20:26:31 +00:00
56cf4f280b Remove outdated failing tests from generate_content.rs 2026-01-30 20:23:06 +00:00
09c8696a36 Removes .DS_Store and ignores it 2026-01-30 19:01:00 +00:00
8a23ba1c49 Adds README.md 2026-01-30 18:59:27 +00:00
fa94677910 Clean unused imports 2026-01-29 20:24:56 +00:00
36f8965547 Clean up unused dependencies 2026-01-29 20:14:49 +00:00
ab8e4ede60 Drops the serde_eventsource dependency
serde_eventsource is taking a while to update to reqwest 13.*. This
PR implements handling SSE in the library code.
2026-01-29 20:04:33 +00:00
941614e550 Initial EventSource implementationo 2026-01-28 21:34:20 +00:00
e380b88b62 Revert reqwest to v0.12
Revertes the reqwest library version back to 0.12 as reqwest-eventsource
is incompatible with reqwest 0.13+.
2026-01-16 18:50:36 +00:00
92cc558725 Utility method for system prompt creation 2026-01-15 21:36:33 +00:00
c797209b7d Update deps 2026-01-14 21:23:55 +00:00
fafff9ce1f Makes SafetyRating severty optional 2026-01-14 21:14:49 +00:00
246004f026 Chore: update dependencies 2025-12-02 19:43:58 +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