gemini-client-api 7.2.2

Library to use Google Gemini API. Automatic context management, schema generation, function calling and more.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
## Change log 5.6 -> 7

- `Session::ask()` -> `Session::ask_parts()`
- `Session::ask_string()` -> `Session::ask()` and can take any part valid apart from just `String`
- `Part` -> `PartType` inside a struct. To migrate, just use `.into()`. Eg.  
    **Before**
    ```rust
    session.ask(vec![Part::InlineData(InlineData::new(base64, mime)), ..])
    ```
    **Now**
    ```rust
    session.ask_parts(vec![InlineData::new(base64, mime).into(), ..])
    ```
- `response.get_text_no_think("\n")` -> `response.get_chat().get_text_no_think("\n")`