@google/genai 2.8.0 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -4
- package/dist/genai.d.ts +3396 -2529
- package/dist/index.cjs +4108 -1893
- package/dist/index.mjs +4108 -1893
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +4153 -1938
- package/dist/node/index.mjs +4153 -1938
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +3396 -2529
- package/dist/tokenizer/node.cjs +64 -64
- package/dist/tokenizer/node.mjs +64 -64
- package/dist/tokenizer/node.mjs.map +1 -1
- package/dist/vertex_internal/index.cjs +65 -65
- package/dist/vertex_internal/index.cjs.map +1 -1
- package/dist/vertex_internal/index.d.ts +50 -40
- package/dist/vertex_internal/index.js +65 -65
- package/dist/vertex_internal/index.js.map +1 -1
- package/dist/web/index.mjs +4152 -1938
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +3396 -2529
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -13,6 +13,13 @@ TypeScript and JavaScript developers to build applications powered by Gemini. Th
|
|
|
13
13
|
supports both the [Gemini Developer API](https://ai.google.dev/gemini-api/docs)
|
|
14
14
|
and [Gemini Enterprise Agent Platform](https://docs.cloud.google.com/gemini-enterprise-agent-platform).
|
|
15
15
|
|
|
16
|
+
> [!WARNING]
|
|
17
|
+
> **Upcoming Breaking Change to Automatic Function Calling (AFC):**
|
|
18
|
+
> We will introduce a breaking change to the Automatic Function Calling (AFC)
|
|
19
|
+
> feature in the next major version. Specifically, users will not be able to
|
|
20
|
+
> invoke AFC from direct calls to `Models.generate_content` or its stream
|
|
21
|
+
> variants. Instead, users should invoke AFC from `chats` modules.
|
|
22
|
+
|
|
16
23
|
The Google Gen AI SDK is designed to work with Gemini 2.0+ features.
|
|
17
24
|
|
|
18
25
|
> [!CAUTION]
|
|
@@ -369,10 +376,7 @@ async function main() {
|
|
|
369
376
|
main();
|
|
370
377
|
```
|
|
371
378
|
|
|
372
|
-
## Interactions
|
|
373
|
-
|
|
374
|
-
> **Warning:** The Interactions API is in **Beta**. This is a preview of an
|
|
375
|
-
experimental feature. Features and schemas are subject to **breaking changes**.
|
|
379
|
+
## Interactions
|
|
376
380
|
|
|
377
381
|
The Interactions API is a unified interface for interacting with Gemini models
|
|
378
382
|
and agents. It simplifies state management, tool orchestration, and long-running
|