@aigne/core 1.74.0-beta → 1.74.0-beta.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.
@@ -44,7 +44,7 @@ declare class AgentMessageTemplate extends ChatMessageTemplate {
44
44
  static from(template?: ChatModelInputMessage["content"], toolCalls?: ChatModelOutputToolCall[], name?: string, options?: FormatOptions, cacheControl?: ChatModelInputMessage["cacheControl"]): AgentMessageTemplate;
45
45
  constructor(content?: ChatModelInputMessage["content"], toolCalls?: ChatModelOutputToolCall[] | undefined, name?: string, options?: FormatOptions, cacheControl?: ChatModelInputMessage["cacheControl"]);
46
46
  format(_variables?: Record<string, unknown>, _options?: FormatOptions): Promise<{
47
- role: "agent" | "user" | "system" | "tool";
47
+ role: "agent" | "system" | "user" | "tool";
48
48
  name: string | undefined;
49
49
  content: ChatModelInputMessageContent | undefined;
50
50
  toolCalls: ChatModelOutputToolCall[] | undefined;
@@ -56,7 +56,7 @@ declare class ToolMessageTemplate extends ChatMessageTemplate {
56
56
  static from(content: object | string, toolCallId: string, name?: string, options?: FormatOptions, cacheControl?: ChatModelInputMessage["cacheControl"]): ToolMessageTemplate;
57
57
  constructor(content: object | string, toolCallId: string, name?: string, options?: FormatOptions, cacheControl?: ChatModelInputMessage["cacheControl"]);
58
58
  format(_variables?: Record<string, unknown>, _options?: FormatOptions): Promise<{
59
- role: "agent" | "user" | "system" | "tool";
59
+ role: "agent" | "system" | "user" | "tool";
60
60
  name: string | undefined;
61
61
  content: ChatModelInputMessageContent | undefined;
62
62
  toolCallId: string;
@@ -85,16 +85,16 @@ declare const chatMessageSchema: z.ZodUnion<[z.ZodObject<{
85
85
  ttl?: "5m" | "1h" | undefined;
86
86
  }>>;
87
87
  }, "strip", z.ZodTypeAny, {
88
- content: string;
89
88
  role: "system";
89
+ content: string;
90
90
  name?: string | undefined;
91
91
  cacheControl?: {
92
92
  type: "ephemeral";
93
93
  ttl?: "5m" | "1h" | undefined;
94
94
  } | undefined;
95
95
  }, {
96
- content: string;
97
96
  role: "system";
97
+ content: string;
98
98
  name?: string | undefined;
99
99
  cacheControl?: {
100
100
  type: "ephemeral";
@@ -115,16 +115,16 @@ declare const chatMessageSchema: z.ZodUnion<[z.ZodObject<{
115
115
  ttl?: "5m" | "1h" | undefined;
116
116
  }>>;
117
117
  }, "strip", z.ZodTypeAny, {
118
- content: string;
119
118
  role: "user";
119
+ content: string;
120
120
  name?: string | undefined;
121
121
  cacheControl?: {
122
122
  type: "ephemeral";
123
123
  ttl?: "5m" | "1h" | undefined;
124
124
  } | undefined;
125
125
  }, {
126
- content: string;
127
126
  role: "user";
127
+ content: string;
128
128
  name?: string | undefined;
129
129
  cacheControl?: {
130
130
  type: "ephemeral";
@@ -220,8 +220,8 @@ declare const chatMessageSchema: z.ZodUnion<[z.ZodObject<{
220
220
  ttl?: "5m" | "1h" | undefined;
221
221
  }>>;
222
222
  }, "strip", z.ZodTypeAny, {
223
- content: string;
224
223
  role: "tool";
224
+ content: string;
225
225
  toolCallId: string;
226
226
  name?: string | undefined;
227
227
  cacheControl?: {
@@ -229,8 +229,8 @@ declare const chatMessageSchema: z.ZodUnion<[z.ZodObject<{
229
229
  ttl?: "5m" | "1h" | undefined;
230
230
  } | undefined;
231
231
  }, {
232
- content: string | Record<string, unknown>;
233
232
  role: "tool";
233
+ content: string | Record<string, unknown>;
234
234
  toolCallId: string;
235
235
  name?: string | undefined;
236
236
  cacheControl?: {
@@ -44,7 +44,7 @@ declare class AgentMessageTemplate extends ChatMessageTemplate {
44
44
  static from(template?: ChatModelInputMessage["content"], toolCalls?: ChatModelOutputToolCall[], name?: string, options?: FormatOptions, cacheControl?: ChatModelInputMessage["cacheControl"]): AgentMessageTemplate;
45
45
  constructor(content?: ChatModelInputMessage["content"], toolCalls?: ChatModelOutputToolCall[] | undefined, name?: string, options?: FormatOptions, cacheControl?: ChatModelInputMessage["cacheControl"]);
46
46
  format(_variables?: Record<string, unknown>, _options?: FormatOptions): Promise<{
47
- role: "agent" | "user" | "system" | "tool";
47
+ role: "agent" | "system" | "user" | "tool";
48
48
  name: string | undefined;
49
49
  content: ChatModelInputMessageContent | undefined;
50
50
  toolCalls: ChatModelOutputToolCall[] | undefined;
@@ -56,7 +56,7 @@ declare class ToolMessageTemplate extends ChatMessageTemplate {
56
56
  static from(content: object | string, toolCallId: string, name?: string, options?: FormatOptions, cacheControl?: ChatModelInputMessage["cacheControl"]): ToolMessageTemplate;
57
57
  constructor(content: object | string, toolCallId: string, name?: string, options?: FormatOptions, cacheControl?: ChatModelInputMessage["cacheControl"]);
58
58
  format(_variables?: Record<string, unknown>, _options?: FormatOptions): Promise<{
59
- role: "agent" | "user" | "system" | "tool";
59
+ role: "agent" | "system" | "user" | "tool";
60
60
  name: string | undefined;
61
61
  content: ChatModelInputMessageContent | undefined;
62
62
  toolCallId: string;
@@ -85,16 +85,16 @@ declare const chatMessageSchema: z$1.ZodUnion<[z$1.ZodObject<{
85
85
  ttl?: "5m" | "1h" | undefined;
86
86
  }>>;
87
87
  }, "strip", z$1.ZodTypeAny, {
88
- content: string;
89
88
  role: "system";
89
+ content: string;
90
90
  name?: string | undefined;
91
91
  cacheControl?: {
92
92
  type: "ephemeral";
93
93
  ttl?: "5m" | "1h" | undefined;
94
94
  } | undefined;
95
95
  }, {
96
- content: string;
97
96
  role: "system";
97
+ content: string;
98
98
  name?: string | undefined;
99
99
  cacheControl?: {
100
100
  type: "ephemeral";
@@ -115,16 +115,16 @@ declare const chatMessageSchema: z$1.ZodUnion<[z$1.ZodObject<{
115
115
  ttl?: "5m" | "1h" | undefined;
116
116
  }>>;
117
117
  }, "strip", z$1.ZodTypeAny, {
118
- content: string;
119
118
  role: "user";
119
+ content: string;
120
120
  name?: string | undefined;
121
121
  cacheControl?: {
122
122
  type: "ephemeral";
123
123
  ttl?: "5m" | "1h" | undefined;
124
124
  } | undefined;
125
125
  }, {
126
- content: string;
127
126
  role: "user";
127
+ content: string;
128
128
  name?: string | undefined;
129
129
  cacheControl?: {
130
130
  type: "ephemeral";
@@ -220,8 +220,8 @@ declare const chatMessageSchema: z$1.ZodUnion<[z$1.ZodObject<{
220
220
  ttl?: "5m" | "1h" | undefined;
221
221
  }>>;
222
222
  }, "strip", z$1.ZodTypeAny, {
223
- content: string;
224
223
  role: "tool";
224
+ content: string;
225
225
  toolCallId: string;
226
226
  name?: string | undefined;
227
227
  cacheControl?: {
@@ -229,8 +229,8 @@ declare const chatMessageSchema: z$1.ZodUnion<[z$1.ZodObject<{
229
229
  ttl?: "5m" | "1h" | undefined;
230
230
  } | undefined;
231
231
  }, {
232
- content: string | Record<string, unknown>;
233
232
  role: "tool";
233
+ content: string | Record<string, unknown>;
234
234
  toolCallId: string;
235
235
  name?: string | undefined;
236
236
  cacheControl?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/core",
3
- "version": "1.74.0-beta",
3
+ "version": "1.74.0-beta.1",
4
4
  "description": "The functional core of agentic AI",
5
5
  "license": "Elastic-2.0",
6
6
  "publishConfig": {
@@ -175,8 +175,8 @@
175
175
  "zod": "^3.25.67",
176
176
  "zod-from-json-schema": "^0.0.5",
177
177
  "zod-to-json-schema": "^3.24.6",
178
- "@aigne/afs-history": "^1.74.0-beta",
179
- "@aigne/utils": "^1.74.0-beta"
178
+ "@aigne/afs-history": "^1.74.0-beta.1",
179
+ "@aigne/utils": "^1.74.0-beta.1"
180
180
  },
181
181
  "devDependencies": {
182
182
  "@types/bun": "^1.3.6",
@@ -191,8 +191,8 @@
191
191
  "rimraf": "^6.1.2",
192
192
  "tsdown": "0.20.0-beta.3",
193
193
  "typescript": "5.9.2",
194
- "@aigne/scripts": "0.0.0",
195
- "@aigne/typescript-config": "0.0.0"
194
+ "@aigne/typescript-config": "0.0.0",
195
+ "@aigne/scripts": "0.0.0"
196
196
  },
197
197
  "scripts": {
198
198
  "build": "tsdown",