@anvia/gemini 0.4.0 → 1.0.0-rc.1
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 +6 -4
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ pnpm --filter @anvia/gemini build
|
|
|
19
19
|
## Usage
|
|
20
20
|
|
|
21
21
|
```ts
|
|
22
|
-
import {
|
|
22
|
+
import { Agent } from "@anvia/core";
|
|
23
23
|
import { GeminiClient } from "@anvia/gemini";
|
|
24
24
|
|
|
25
25
|
const client = new GeminiClient({
|
|
@@ -28,9 +28,11 @@ const client = new GeminiClient({
|
|
|
28
28
|
|
|
29
29
|
const model = client.completionModel("gemini-2.5-flash");
|
|
30
30
|
|
|
31
|
-
const agent = new
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
const agent = new Agent({
|
|
32
|
+
id: "assistant",
|
|
33
|
+
model: model,
|
|
34
|
+
instructions: "Answer clearly and concisely.",
|
|
35
|
+
});
|
|
34
36
|
|
|
35
37
|
const response = await agent.prompt("Summarize Anvia in one sentence.").send();
|
|
36
38
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anvia/gemini",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-rc.1",
|
|
4
4
|
"description": "Gemini provider adapter for Anvia.",
|
|
5
5
|
"author": "anvia",
|
|
6
6
|
"maintainer": "Indra Zulfi",
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@google/genai": "^2.
|
|
29
|
+
"@google/genai": "^2.16.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^24.9.1",
|
|
33
33
|
"tsup": "^8.5.0",
|
|
34
34
|
"typescript": "^5.9.3",
|
|
35
35
|
"vitest": "^4.0.8",
|
|
36
|
-
"@anvia/core": "0.
|
|
36
|
+
"@anvia/core": "1.0.0-rc.1"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@anvia/core": "
|
|
39
|
+
"@anvia/core": "1.0.0-rc.1"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"prebuild": "test -f ../core/dist/index.d.ts || pnpm --filter @anvia/core build",
|