@aigne/core 1.65.0-beta.1 → 1.65.0-beta.3

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,26 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.65.0-beta.3](https://github.com/AIGNE-io/aigne-framework/compare/core-v1.65.0-beta.2...core-v1.65.0-beta.3) (2025-10-28)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **core:** support custom `catchToolsError` in yaml agent definition ([#676](https://github.com/AIGNE-io/aigne-framework/issues/676)) ([fe43f5f](https://github.com/AIGNE-io/aigne-framework/commit/fe43f5f32d18d2180abb0717287fc680f1444a0d))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @aigne/observability-api bumped to 0.11.4-beta
16
+
17
+ ## [1.65.0-beta.2](https://github.com/AIGNE-io/aigne-framework/compare/core-v1.65.0-beta.1...core-v1.65.0-beta.2) (2025-10-28)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **core:** added support for URL file type handling, expanding the range of supported file formats ([#671](https://github.com/AIGNE-io/aigne-framework/issues/671)) ([fea4519](https://github.com/AIGNE-io/aigne-framework/commit/fea45197e87cf7b19499c48b41626062824d1355))
23
+
3
24
  ## [1.65.0-beta.1](https://github.com/AIGNE-io/aigne-framework/compare/core-v1.65.0-beta...core-v1.65.0-beta.1) (2025-10-26)
4
25
 
5
26
 
@@ -85,7 +85,7 @@ export declare const imageModelInputSchema: z.ZodObject<{
85
85
  mimeType?: string | undefined;
86
86
  }>]>, "many">>;
87
87
  n: z.ZodOptional<z.ZodNumber>;
88
- outputFileType: z.ZodOptional<z.ZodEnum<["local", "file"]>>;
88
+ outputFileType: z.ZodOptional<z.ZodEnum<["local", "file", "url"]>>;
89
89
  modelOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
90
90
  }, "strip", z.ZodTypeAny, {
91
91
  prompt: string;
@@ -106,7 +106,7 @@ export declare const imageModelInputSchema: z.ZodObject<{
106
106
  filename?: string | undefined;
107
107
  mimeType?: string | undefined;
108
108
  })[] | undefined;
109
- outputFileType?: "local" | "file" | undefined;
109
+ outputFileType?: "local" | "file" | "url" | undefined;
110
110
  n?: number | undefined;
111
111
  }, {
112
112
  prompt: string;
@@ -127,7 +127,7 @@ export declare const imageModelInputSchema: z.ZodObject<{
127
127
  filename?: string | undefined;
128
128
  mimeType?: string | undefined;
129
129
  })[] | undefined;
130
- outputFileType?: "local" | "file" | undefined;
130
+ outputFileType?: "local" | "file" | "url" | undefined;
131
131
  n?: number | undefined;
132
132
  }>;
133
133
  export interface ImageModelOutput extends Message {
@@ -8,8 +8,8 @@ export declare abstract class Model<I extends Message = any, O extends Message =
8
8
  static getMimeType(filename: string): Promise<string | undefined>;
9
9
  downloadFile(url: string): Promise<Response>;
10
10
  }
11
- export type FileType = "local" | "file";
12
- export declare const fileTypeSchema: z.ZodEnum<["local", "file"]>;
11
+ export type FileType = "local" | "file" | "url";
12
+ export declare const fileTypeSchema: z.ZodEnum<["local", "file", "url"]>;
13
13
  export interface FileContentBase {
14
14
  filename?: string;
15
15
  mimeType?: string;
@@ -86,6 +86,9 @@ class Model extends agent_js_1.Agent {
86
86
  }
87
87
  return { ...common, type: "file", data: base64, mimeType };
88
88
  }
89
+ default: {
90
+ return data;
91
+ }
89
92
  }
90
93
  }
91
94
  static async getFileExtension(type) {
@@ -106,7 +109,7 @@ class Model extends agent_js_1.Agent {
106
109
  }
107
110
  }
108
111
  exports.Model = Model;
109
- exports.fileTypeSchema = zod_1.z.enum(["local", "file"]);
112
+ exports.fileTypeSchema = zod_1.z.enum(["local", "file", "url"]);
110
113
  exports.fileContentBaseSchema = zod_1.z.object({
111
114
  filename: (0, schema_js_1.optionalize)(zod_1.z.string()),
112
115
  mimeType: (0, schema_js_1.optionalize)(zod_1.z.string()),
@@ -37,20 +37,20 @@ export declare const videoModelInputSchema: z.ZodObject<{
37
37
  model: z.ZodOptional<z.ZodString>;
38
38
  size: z.ZodOptional<z.ZodString>;
39
39
  seconds: z.ZodOptional<z.ZodString>;
40
- outputFileType: z.ZodOptional<z.ZodEnum<["local", "file"]>>;
40
+ outputFileType: z.ZodOptional<z.ZodEnum<["local", "file", "url"]>>;
41
41
  modelOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
42
42
  }, "strip", z.ZodTypeAny, {
43
43
  prompt: string;
44
44
  model?: string | undefined;
45
45
  modelOptions?: Record<string, unknown> | undefined;
46
- outputFileType?: "local" | "file" | undefined;
46
+ outputFileType?: "local" | "file" | "url" | undefined;
47
47
  size?: string | undefined;
48
48
  seconds?: string | undefined;
49
49
  }, {
50
50
  prompt: string;
51
51
  model?: string | undefined;
52
52
  modelOptions?: Record<string, unknown> | undefined;
53
- outputFileType?: "local" | "file" | undefined;
53
+ outputFileType?: "local" | "file" | "url" | undefined;
54
54
  size?: string | undefined;
55
55
  seconds?: string | undefined;
56
56
  }>;
@@ -122,6 +122,7 @@ async function parseAgentFile(path, data) {
122
122
  toolChoice: (0, schema_js_1.optionalize)(zod_1.z.nativeEnum(ai_agent_js_1.AIAgentToolChoice)),
123
123
  toolCallsConcurrency: (0, schema_js_1.optionalize)(zod_1.z.number().int().min(0)),
124
124
  keepTextInToolUses: (0, schema_js_1.optionalize)(zod_1.z.boolean()),
125
+ catchToolsError: (0, schema_js_1.optionalize)(zod_1.z.boolean()),
125
126
  structuredStreamMode: (0, schema_js_1.optionalize)(zod_1.z.boolean()),
126
127
  })
127
128
  .extend(baseAgentSchema.shape),
@@ -85,7 +85,7 @@ export declare const imageModelInputSchema: z.ZodObject<{
85
85
  mimeType?: string | undefined;
86
86
  }>]>, "many">>;
87
87
  n: z.ZodOptional<z.ZodNumber>;
88
- outputFileType: z.ZodOptional<z.ZodEnum<["local", "file"]>>;
88
+ outputFileType: z.ZodOptional<z.ZodEnum<["local", "file", "url"]>>;
89
89
  modelOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
90
90
  }, "strip", z.ZodTypeAny, {
91
91
  prompt: string;
@@ -106,7 +106,7 @@ export declare const imageModelInputSchema: z.ZodObject<{
106
106
  filename?: string | undefined;
107
107
  mimeType?: string | undefined;
108
108
  })[] | undefined;
109
- outputFileType?: "local" | "file" | undefined;
109
+ outputFileType?: "local" | "file" | "url" | undefined;
110
110
  n?: number | undefined;
111
111
  }, {
112
112
  prompt: string;
@@ -127,7 +127,7 @@ export declare const imageModelInputSchema: z.ZodObject<{
127
127
  filename?: string | undefined;
128
128
  mimeType?: string | undefined;
129
129
  })[] | undefined;
130
- outputFileType?: "local" | "file" | undefined;
130
+ outputFileType?: "local" | "file" | "url" | undefined;
131
131
  n?: number | undefined;
132
132
  }>;
133
133
  export interface ImageModelOutput extends Message {
@@ -8,8 +8,8 @@ export declare abstract class Model<I extends Message = any, O extends Message =
8
8
  static getMimeType(filename: string): Promise<string | undefined>;
9
9
  downloadFile(url: string): Promise<Response>;
10
10
  }
11
- export type FileType = "local" | "file";
12
- export declare const fileTypeSchema: z.ZodEnum<["local", "file"]>;
11
+ export type FileType = "local" | "file" | "url";
12
+ export declare const fileTypeSchema: z.ZodEnum<["local", "file", "url"]>;
13
13
  export interface FileContentBase {
14
14
  filename?: string;
15
15
  mimeType?: string;
@@ -37,20 +37,20 @@ export declare const videoModelInputSchema: z.ZodObject<{
37
37
  model: z.ZodOptional<z.ZodString>;
38
38
  size: z.ZodOptional<z.ZodString>;
39
39
  seconds: z.ZodOptional<z.ZodString>;
40
- outputFileType: z.ZodOptional<z.ZodEnum<["local", "file"]>>;
40
+ outputFileType: z.ZodOptional<z.ZodEnum<["local", "file", "url"]>>;
41
41
  modelOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
42
42
  }, "strip", z.ZodTypeAny, {
43
43
  prompt: string;
44
44
  model?: string | undefined;
45
45
  modelOptions?: Record<string, unknown> | undefined;
46
- outputFileType?: "local" | "file" | undefined;
46
+ outputFileType?: "local" | "file" | "url" | undefined;
47
47
  size?: string | undefined;
48
48
  seconds?: string | undefined;
49
49
  }, {
50
50
  prompt: string;
51
51
  model?: string | undefined;
52
52
  modelOptions?: Record<string, unknown> | undefined;
53
- outputFileType?: "local" | "file" | undefined;
53
+ outputFileType?: "local" | "file" | "url" | undefined;
54
54
  size?: string | undefined;
55
55
  seconds?: string | undefined;
56
56
  }>;
@@ -85,7 +85,7 @@ export declare const imageModelInputSchema: z.ZodObject<{
85
85
  mimeType?: string | undefined;
86
86
  }>]>, "many">>;
87
87
  n: z.ZodOptional<z.ZodNumber>;
88
- outputFileType: z.ZodOptional<z.ZodEnum<["local", "file"]>>;
88
+ outputFileType: z.ZodOptional<z.ZodEnum<["local", "file", "url"]>>;
89
89
  modelOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
90
90
  }, "strip", z.ZodTypeAny, {
91
91
  prompt: string;
@@ -106,7 +106,7 @@ export declare const imageModelInputSchema: z.ZodObject<{
106
106
  filename?: string | undefined;
107
107
  mimeType?: string | undefined;
108
108
  })[] | undefined;
109
- outputFileType?: "local" | "file" | undefined;
109
+ outputFileType?: "local" | "file" | "url" | undefined;
110
110
  n?: number | undefined;
111
111
  }, {
112
112
  prompt: string;
@@ -127,7 +127,7 @@ export declare const imageModelInputSchema: z.ZodObject<{
127
127
  filename?: string | undefined;
128
128
  mimeType?: string | undefined;
129
129
  })[] | undefined;
130
- outputFileType?: "local" | "file" | undefined;
130
+ outputFileType?: "local" | "file" | "url" | undefined;
131
131
  n?: number | undefined;
132
132
  }>;
133
133
  export interface ImageModelOutput extends Message {
@@ -8,8 +8,8 @@ export declare abstract class Model<I extends Message = any, O extends Message =
8
8
  static getMimeType(filename: string): Promise<string | undefined>;
9
9
  downloadFile(url: string): Promise<Response>;
10
10
  }
11
- export type FileType = "local" | "file";
12
- export declare const fileTypeSchema: z.ZodEnum<["local", "file"]>;
11
+ export type FileType = "local" | "file" | "url";
12
+ export declare const fileTypeSchema: z.ZodEnum<["local", "file", "url"]>;
13
13
  export interface FileContentBase {
14
14
  filename?: string;
15
15
  mimeType?: string;
@@ -50,6 +50,9 @@ export class Model extends Agent {
50
50
  }
51
51
  return { ...common, type: "file", data: base64, mimeType };
52
52
  }
53
+ default: {
54
+ return data;
55
+ }
53
56
  }
54
57
  }
55
58
  static async getFileExtension(type) {
@@ -69,7 +72,7 @@ export class Model extends Agent {
69
72
  return response;
70
73
  }
71
74
  }
72
- export const fileTypeSchema = z.enum(["local", "file"]);
75
+ export const fileTypeSchema = z.enum(["local", "file", "url"]);
73
76
  export const fileContentBaseSchema = z.object({
74
77
  filename: optionalize(z.string()),
75
78
  mimeType: optionalize(z.string()),
@@ -37,20 +37,20 @@ export declare const videoModelInputSchema: z.ZodObject<{
37
37
  model: z.ZodOptional<z.ZodString>;
38
38
  size: z.ZodOptional<z.ZodString>;
39
39
  seconds: z.ZodOptional<z.ZodString>;
40
- outputFileType: z.ZodOptional<z.ZodEnum<["local", "file"]>>;
40
+ outputFileType: z.ZodOptional<z.ZodEnum<["local", "file", "url"]>>;
41
41
  modelOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
42
42
  }, "strip", z.ZodTypeAny, {
43
43
  prompt: string;
44
44
  model?: string | undefined;
45
45
  modelOptions?: Record<string, unknown> | undefined;
46
- outputFileType?: "local" | "file" | undefined;
46
+ outputFileType?: "local" | "file" | "url" | undefined;
47
47
  size?: string | undefined;
48
48
  seconds?: string | undefined;
49
49
  }, {
50
50
  prompt: string;
51
51
  model?: string | undefined;
52
52
  modelOptions?: Record<string, unknown> | undefined;
53
- outputFileType?: "local" | "file" | undefined;
53
+ outputFileType?: "local" | "file" | "url" | undefined;
54
54
  size?: string | undefined;
55
55
  seconds?: string | undefined;
56
56
  }>;
@@ -118,6 +118,7 @@ export async function parseAgentFile(path, data) {
118
118
  toolChoice: optionalize(z.nativeEnum(AIAgentToolChoice)),
119
119
  toolCallsConcurrency: optionalize(z.number().int().min(0)),
120
120
  keepTextInToolUses: optionalize(z.boolean()),
121
+ catchToolsError: optionalize(z.boolean()),
121
122
  structuredStreamMode: optionalize(z.boolean()),
122
123
  })
123
124
  .extend(baseAgentSchema.shape),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/core",
3
- "version": "1.65.0-beta.1",
3
+ "version": "1.65.0-beta.3",
4
4
  "description": "The functional core of agentic AI",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -92,7 +92,7 @@
92
92
  "zod-from-json-schema": "^0.0.5",
93
93
  "zod-to-json-schema": "^3.24.6",
94
94
  "@aigne/afs": "^1.1.1-beta",
95
- "@aigne/observability-api": "^0.11.3",
95
+ "@aigne/observability-api": "^0.11.4-beta",
96
96
  "@aigne/platform-helpers": "^0.6.3"
97
97
  },
98
98
  "devDependencies": {