@aigne/transport 0.14.4 → 0.14.6

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,38 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.14.6](https://github.com/AIGNE-io/aigne-framework/compare/transport-v0.14.5...transport-v0.14.6) (2025-08-21)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * The following workspace dependencies were updated
9
+ * dependencies
10
+ * @aigne/openai bumped to 0.12.2
11
+ * devDependencies
12
+ * @aigne/agent-library bumped to 1.21.26
13
+ * @aigne/core bumped to 1.55.0
14
+ * @aigne/default-memory bumped to 1.1.8
15
+ * @aigne/test-utils bumped to 0.5.34
16
+
17
+ ## [0.14.5](https://github.com/AIGNE-io/aigne-framework/compare/transport-v0.14.4...transport-v0.14.5) (2025-08-21)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **transport:** simplify ClientAgentOptions interface ([#394](https://github.com/AIGNE-io/aigne-framework/issues/394)) ([001271a](https://github.com/AIGNE-io/aigne-framework/commit/001271a46a7a734cd28f3dae28303c11f01861a7))
23
+
24
+
25
+ ### Dependencies
26
+
27
+ * The following workspace dependencies were updated
28
+ * dependencies
29
+ * @aigne/openai bumped to 0.12.1
30
+ * devDependencies
31
+ * @aigne/agent-library bumped to 1.21.25
32
+ * @aigne/core bumped to 1.54.0
33
+ * @aigne/default-memory bumped to 1.1.7
34
+ * @aigne/test-utils bumped to 0.5.33
35
+
3
36
  ## [0.14.4](https://github.com/AIGNE-io/aigne-framework/compare/transport-v0.14.3...transport-v0.14.4) (2025-08-20)
4
37
 
5
38
 
@@ -1,9 +1,8 @@
1
1
  import { Agent, type AgentInvokeOptions, type AgentOptions, type AgentProcessResult, type AgentResponse, type AgentResponseStream, type Message } from "@aigne/core";
2
- import type { MemoryAgent } from "@aigne/core/memory/memory.js";
3
2
  import type { PromiseOrValue } from "@aigne/core/utils/type-utils.js";
4
3
  import type { AIGNEHTTPClient } from "./client.js";
5
- export interface ClientAgentOptions<I extends Message = Message, O extends Message = Message> extends Required<Pick<AgentOptions<I, O>, "name">> {
6
- memory?: MemoryAgent | MemoryAgent[];
4
+ export interface ClientAgentOptions<I extends Message = Message, O extends Message = Message> extends Partial<AgentOptions<I, O>> {
5
+ name: string;
7
6
  }
8
7
  export declare class ClientAgent<I extends Message = Message, O extends Message = Message> extends Agent<I, O> {
9
8
  client: AIGNEHTTPClient;
@@ -17,5 +16,4 @@ export declare class ClientAgent<I extends Message = Message, O extends Message
17
16
  }): Promise<AgentResponseStream<O>>;
18
17
  invoke(input: I, options?: Partial<AgentInvokeOptions>): Promise<AgentResponse<O>>;
19
18
  process(_input: I, _options: AgentInvokeOptions): PromiseOrValue<AgentProcessResult<O>>;
20
- postprocess(input: I, output: O, options: AgentInvokeOptions): Promise<void>;
21
19
  }
@@ -36,10 +36,5 @@ class ClientAgent extends core_1.Agent {
36
36
  process(_input, _options) {
37
37
  throw new Error("Method not implemented.");
38
38
  }
39
- async postprocess(input, output, options) {
40
- await this.recordMemories({
41
- content: [{ input, output: (0, core_1.replaceTransferAgentToName)(output), source: this.name }],
42
- }, options);
43
- }
44
39
  }
45
40
  exports.ClientAgent = ClientAgent;
@@ -1,9 +1,8 @@
1
1
  import { Agent, type AgentInvokeOptions, type AgentOptions, type AgentProcessResult, type AgentResponse, type AgentResponseStream, type Message } from "@aigne/core";
2
- import type { MemoryAgent } from "@aigne/core/memory/memory.js";
3
2
  import type { PromiseOrValue } from "@aigne/core/utils/type-utils.js";
4
3
  import type { AIGNEHTTPClient } from "./client.js";
5
- export interface ClientAgentOptions<I extends Message = Message, O extends Message = Message> extends Required<Pick<AgentOptions<I, O>, "name">> {
6
- memory?: MemoryAgent | MemoryAgent[];
4
+ export interface ClientAgentOptions<I extends Message = Message, O extends Message = Message> extends Partial<AgentOptions<I, O>> {
5
+ name: string;
7
6
  }
8
7
  export declare class ClientAgent<I extends Message = Message, O extends Message = Message> extends Agent<I, O> {
9
8
  client: AIGNEHTTPClient;
@@ -17,5 +16,4 @@ export declare class ClientAgent<I extends Message = Message, O extends Message
17
16
  }): Promise<AgentResponseStream<O>>;
18
17
  invoke(input: I, options?: Partial<AgentInvokeOptions>): Promise<AgentResponse<O>>;
19
18
  process(_input: I, _options: AgentInvokeOptions): PromiseOrValue<AgentProcessResult<O>>;
20
- postprocess(input: I, output: O, options: AgentInvokeOptions): Promise<void>;
21
19
  }
@@ -1,9 +1,8 @@
1
1
  import { Agent, type AgentInvokeOptions, type AgentOptions, type AgentProcessResult, type AgentResponse, type AgentResponseStream, type Message } from "@aigne/core";
2
- import type { MemoryAgent } from "@aigne/core/memory/memory.js";
3
2
  import type { PromiseOrValue } from "@aigne/core/utils/type-utils.js";
4
3
  import type { AIGNEHTTPClient } from "./client.js";
5
- export interface ClientAgentOptions<I extends Message = Message, O extends Message = Message> extends Required<Pick<AgentOptions<I, O>, "name">> {
6
- memory?: MemoryAgent | MemoryAgent[];
4
+ export interface ClientAgentOptions<I extends Message = Message, O extends Message = Message> extends Partial<AgentOptions<I, O>> {
5
+ name: string;
7
6
  }
8
7
  export declare class ClientAgent<I extends Message = Message, O extends Message = Message> extends Agent<I, O> {
9
8
  client: AIGNEHTTPClient;
@@ -17,5 +16,4 @@ export declare class ClientAgent<I extends Message = Message, O extends Message
17
16
  }): Promise<AgentResponseStream<O>>;
18
17
  invoke(input: I, options?: Partial<AgentInvokeOptions>): Promise<AgentResponse<O>>;
19
18
  process(_input: I, _options: AgentInvokeOptions): PromiseOrValue<AgentProcessResult<O>>;
20
- postprocess(input: I, output: O, options: AgentInvokeOptions): Promise<void>;
21
19
  }
@@ -1,4 +1,4 @@
1
- import { Agent, replaceTransferAgentToName, } from "@aigne/core";
1
+ import { Agent, } from "@aigne/core";
2
2
  import { onAgentResponseStreamEnd } from "@aigne/core/utils/stream-utils.js";
3
3
  export class ClientAgent extends Agent {
4
4
  client;
@@ -33,9 +33,4 @@ export class ClientAgent extends Agent {
33
33
  process(_input, _options) {
34
34
  throw new Error("Method not implemented.");
35
35
  }
36
- async postprocess(input, output, options) {
37
- await this.recordMemories({
38
- content: [{ input, output: replaceTransferAgentToName(output), source: this.name }],
39
- }, options);
40
- }
41
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/transport",
3
- "version": "0.14.4",
3
+ "version": "0.14.6",
4
4
  "description": "AIGNE Transport SDK providing HTTP client and server implementations for communication between AIGNE components",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -46,7 +46,7 @@
46
46
  "p-retry": "^6.2.1",
47
47
  "raw-body": "^3.0.0",
48
48
  "zod": "^3.25.67",
49
- "@aigne/openai": "^0.12.0"
49
+ "@aigne/openai": "^0.12.2"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/bun": "^1.2.18",
@@ -61,10 +61,10 @@
61
61
  "rimraf": "^6.0.1",
62
62
  "typescript": "^5.8.3",
63
63
  "uuid": "^11.1.0",
64
- "@aigne/agent-library": "^1.21.24",
65
- "@aigne/core": "^1.53.0",
66
- "@aigne/default-memory": "^1.1.6",
67
- "@aigne/test-utils": "^0.5.32"
64
+ "@aigne/agent-library": "^1.21.26",
65
+ "@aigne/core": "^1.55.0",
66
+ "@aigne/default-memory": "^1.1.8",
67
+ "@aigne/test-utils": "^0.5.34"
68
68
  },
69
69
  "scripts": {
70
70
  "lint": "tsc --noEmit",