@aigne/gemini 0.14.14-beta → 0.14.15-beta

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,32 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.14.15-beta](https://github.com/AIGNE-io/aigne-framework/compare/gemini-v0.14.14...gemini-v0.14.15-beta) (2025-12-07)
4
+
5
+
6
+ ### Features
7
+
8
+ * support define agent by third library & orchestrator agent refactor ([#799](https://github.com/AIGNE-io/aigne-framework/issues/799)) ([7264b11](https://github.com/AIGNE-io/aigne-framework/commit/7264b11ab6eed787e928367f09aa08d254968d40))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @aigne/core bumped to 1.71.0-beta
16
+ * devDependencies
17
+ * @aigne/test-utils bumped to 0.5.68-beta
18
+
19
+ ## [0.14.14](https://github.com/AIGNE-io/aigne-framework/compare/gemini-v0.14.14-beta...gemini-v0.14.14) (2025-12-06)
20
+
21
+
22
+ ### Dependencies
23
+
24
+ * The following workspace dependencies were updated
25
+ * dependencies
26
+ * @aigne/core bumped to 1.70.1
27
+ * devDependencies
28
+ * @aigne/test-utils bumped to 0.5.67
29
+
3
30
  ## [0.14.14-beta](https://github.com/AIGNE-io/aigne-framework/compare/gemini-v0.14.13...gemini-v0.14.14-beta) (2025-12-06)
4
31
 
5
32
 
@@ -8,6 +8,7 @@ const type_utils_js_1 = require("@aigne/core/utils/type-utils.js");
8
8
  const index_js_1 = require("@aigne/platform-helpers/nodejs/index.js");
9
9
  const uuid_1 = require("@aigne/uuid");
10
10
  const genai_1 = require("@google/genai");
11
+ const yaml_1 = require("yaml");
11
12
  const zod_1 = require("zod");
12
13
  const zod_to_json_schema_1 = require("zod-to-json-schema");
13
14
  const GEMINI_DEFAULT_CHAT_MODEL = "gemini-2.0-flash";
@@ -426,7 +427,7 @@ class GeminiChatModel extends core_1.ChatModel {
426
427
  .find((c) => c?.id === msg.toolCallId);
427
428
  if (!call)
428
429
  throw new Error(`Tool call not found: ${msg.toolCallId}`);
429
- const output = JSON.parse(msg.content);
430
+ const output = (0, yaml_1.parse)(msg.content);
430
431
  const isError = "error" in output && Boolean(input.error);
431
432
  const response = {
432
433
  tool: call.function.name,
@@ -5,6 +5,7 @@ import { isNonNullable } from "@aigne/core/utils/type-utils.js";
5
5
  import { nodejs } from "@aigne/platform-helpers/nodejs/index.js";
6
6
  import { v7 } from "@aigne/uuid";
7
7
  import { createPartFromUri, createUserContent, FunctionCallingConfigMode, GoogleGenAI, ThinkingLevel, } from "@google/genai";
8
+ import { parse } from "yaml";
8
9
  import { z } from "zod";
9
10
  import { zodToJsonSchema } from "zod-to-json-schema";
10
11
  const GEMINI_DEFAULT_CHAT_MODEL = "gemini-2.0-flash";
@@ -423,7 +424,7 @@ export class GeminiChatModel extends ChatModel {
423
424
  .find((c) => c?.id === msg.toolCallId);
424
425
  if (!call)
425
426
  throw new Error(`Tool call not found: ${msg.toolCallId}`);
426
- const output = JSON.parse(msg.content);
427
+ const output = parse(msg.content);
427
428
  const isError = "error" in output && Boolean(input.error);
428
429
  const response = {
429
430
  tool: call.function.name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/gemini",
3
- "version": "0.14.14-beta",
3
+ "version": "0.14.15-beta",
4
4
  "description": "AIGNE Gemini SDK for integrating with Google's Gemini AI models",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -37,9 +37,10 @@
37
37
  "dependencies": {
38
38
  "@aigne/uuid": "^13.0.1",
39
39
  "@google/genai": "^1.30.0",
40
+ "yaml": "^2.8.1",
40
41
  "zod": "^3.25.67",
41
42
  "zod-to-json-schema": "^3.24.6",
42
- "@aigne/core": "^1.70.1-beta",
43
+ "@aigne/core": "^1.71.0-beta",
43
44
  "@aigne/platform-helpers": "^0.6.5"
44
45
  },
45
46
  "devDependencies": {
@@ -48,7 +49,7 @@
48
49
  "npm-run-all": "^4.1.5",
49
50
  "rimraf": "^6.0.1",
50
51
  "typescript": "^5.9.2",
51
- "@aigne/test-utils": "^0.5.67-beta"
52
+ "@aigne/test-utils": "^0.5.68-beta"
52
53
  },
53
54
  "scripts": {
54
55
  "lint": "tsc --noEmit",