@aigne/gemini 0.12.2 → 0.13.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.13.0](https://github.com/AIGNE-io/aigne-framework/compare/gemini-v0.12.3...gemini-v0.13.0) (2025-09-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* support custom prefer input file type ([#469](https://github.com/AIGNE-io/aigne-framework/issues/469)) ([db0161b](https://github.com/AIGNE-io/aigne-framework/commit/db0161bbac52542c771ee2f40f361636b0668075))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @aigne/openai bumped to 0.15.0
|
|
16
|
+
* devDependencies
|
|
17
|
+
* @aigne/core bumped to 1.59.0
|
|
18
|
+
* @aigne/test-utils bumped to 0.5.48
|
|
19
|
+
|
|
20
|
+
## [0.12.3](https://github.com/AIGNE-io/aigne-framework/compare/gemini-v0.12.2...gemini-v0.12.3) (2025-09-08)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* support optional field sturectured output for gemini ([#468](https://github.com/AIGNE-io/aigne-framework/issues/468)) ([70c6279](https://github.com/AIGNE-io/aigne-framework/commit/70c62795039a2862e3333f26707329489bf938de))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Dependencies
|
|
29
|
+
|
|
30
|
+
* The following workspace dependencies were updated
|
|
31
|
+
* dependencies
|
|
32
|
+
* @aigne/openai bumped to 0.14.3
|
|
33
|
+
* devDependencies
|
|
34
|
+
* @aigne/core bumped to 1.58.3
|
|
35
|
+
* @aigne/test-utils bumped to 0.5.47
|
|
36
|
+
|
|
3
37
|
## [0.12.2](https://github.com/AIGNE-io/aigne-framework/compare/gemini-v0.12.1...gemini-v0.12.2) (2025-09-05)
|
|
4
38
|
|
|
5
39
|
|
|
@@ -22,6 +22,7 @@ export declare class GeminiChatModel extends OpenAIChatModel {
|
|
|
22
22
|
protected supportsToolsUseWithJsonSchema: boolean;
|
|
23
23
|
protected supportsParallelToolCalls: boolean;
|
|
24
24
|
protected supportsToolStreaming: boolean;
|
|
25
|
+
protected optionalFieldMode: "optional";
|
|
25
26
|
protected _googleClient?: GoogleGenAI;
|
|
26
27
|
get googleClient(): GoogleGenAI;
|
|
27
28
|
process(input: ChatModelInput, options: AgentInvokeOptions): PromiseOrValue<AgentProcessResult<ChatModelOutput>>;
|
|
@@ -34,6 +34,7 @@ class GeminiChatModel extends openai_1.OpenAIChatModel {
|
|
|
34
34
|
supportsToolsUseWithJsonSchema = false;
|
|
35
35
|
supportsParallelToolCalls = false;
|
|
36
36
|
supportsToolStreaming = false;
|
|
37
|
+
optionalFieldMode = "optional";
|
|
37
38
|
_googleClient;
|
|
38
39
|
get googleClient() {
|
|
39
40
|
if (this._googleClient)
|
|
@@ -223,7 +224,7 @@ class GeminiChatModel extends openai_1.OpenAIChatModel {
|
|
|
223
224
|
}
|
|
224
225
|
return content;
|
|
225
226
|
}))).filter(type_utils_js_1.isNonNullable);
|
|
226
|
-
if (systemParts) {
|
|
227
|
+
if (systemParts.length) {
|
|
227
228
|
result.config ??= {};
|
|
228
229
|
result.config.systemInstruction = systemParts;
|
|
229
230
|
}
|
|
@@ -22,6 +22,7 @@ export declare class GeminiChatModel extends OpenAIChatModel {
|
|
|
22
22
|
protected supportsToolsUseWithJsonSchema: boolean;
|
|
23
23
|
protected supportsParallelToolCalls: boolean;
|
|
24
24
|
protected supportsToolStreaming: boolean;
|
|
25
|
+
protected optionalFieldMode: "optional";
|
|
25
26
|
protected _googleClient?: GoogleGenAI;
|
|
26
27
|
get googleClient(): GoogleGenAI;
|
|
27
28
|
process(input: ChatModelInput, options: AgentInvokeOptions): PromiseOrValue<AgentProcessResult<ChatModelOutput>>;
|
|
@@ -22,6 +22,7 @@ export declare class GeminiChatModel extends OpenAIChatModel {
|
|
|
22
22
|
protected supportsToolsUseWithJsonSchema: boolean;
|
|
23
23
|
protected supportsParallelToolCalls: boolean;
|
|
24
24
|
protected supportsToolStreaming: boolean;
|
|
25
|
+
protected optionalFieldMode: "optional";
|
|
25
26
|
protected _googleClient?: GoogleGenAI;
|
|
26
27
|
get googleClient(): GoogleGenAI;
|
|
27
28
|
process(input: ChatModelInput, options: AgentInvokeOptions): PromiseOrValue<AgentProcessResult<ChatModelOutput>>;
|
|
@@ -31,6 +31,7 @@ export class GeminiChatModel extends OpenAIChatModel {
|
|
|
31
31
|
supportsToolsUseWithJsonSchema = false;
|
|
32
32
|
supportsParallelToolCalls = false;
|
|
33
33
|
supportsToolStreaming = false;
|
|
34
|
+
optionalFieldMode = "optional";
|
|
34
35
|
_googleClient;
|
|
35
36
|
get googleClient() {
|
|
36
37
|
if (this._googleClient)
|
|
@@ -220,7 +221,7 @@ export class GeminiChatModel extends OpenAIChatModel {
|
|
|
220
221
|
}
|
|
221
222
|
return content;
|
|
222
223
|
}))).filter(isNonNullable);
|
|
223
|
-
if (systemParts) {
|
|
224
|
+
if (systemParts.length) {
|
|
224
225
|
result.config ??= {};
|
|
225
226
|
result.config.systemInstruction = systemParts;
|
|
226
227
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/gemini",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "AIGNE Gemini SDK for integrating with Google's Gemini AI models",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@google/genai": "^1.15.0",
|
|
39
39
|
"uuid": "^11.1.0",
|
|
40
40
|
"zod": "^3.25.67",
|
|
41
|
-
"@aigne/openai": "^0.
|
|
41
|
+
"@aigne/openai": "^0.15.0",
|
|
42
42
|
"@aigne/platform-helpers": "^0.6.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"npm-run-all": "^4.1.5",
|
|
48
48
|
"rimraf": "^6.0.1",
|
|
49
49
|
"typescript": "^5.8.3",
|
|
50
|
-
"@aigne/core": "^1.
|
|
51
|
-
"@aigne/test-utils": "^0.5.
|
|
50
|
+
"@aigne/core": "^1.59.0",
|
|
51
|
+
"@aigne/test-utils": "^0.5.48"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"lint": "tsc --noEmit",
|