@aigne/transport 0.14.2 → 0.14.5
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 +47 -0
- package/lib/cjs/http-client/client-agent.d.ts +2 -4
- package/lib/cjs/http-client/client-agent.js +0 -5
- package/lib/dts/http-client/client-agent.d.ts +2 -4
- package/lib/esm/http-client/client-agent.d.ts +2 -4
- package/lib/esm/http-client/client-agent.js +1 -6
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,52 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.14.5](https://github.com/AIGNE-io/aigne-framework/compare/transport-v0.14.4...transport-v0.14.5) (2025-08-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **transport:** simplify ClientAgentOptions interface ([#394](https://github.com/AIGNE-io/aigne-framework/issues/394)) ([001271a](https://github.com/AIGNE-io/aigne-framework/commit/001271a46a7a734cd28f3dae28303c11f01861a7))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @aigne/openai bumped to 0.12.1
|
|
16
|
+
* devDependencies
|
|
17
|
+
* @aigne/agent-library bumped to 1.21.25
|
|
18
|
+
* @aigne/core bumped to 1.54.0
|
|
19
|
+
* @aigne/default-memory bumped to 1.1.7
|
|
20
|
+
* @aigne/test-utils bumped to 0.5.33
|
|
21
|
+
|
|
22
|
+
## [0.14.4](https://github.com/AIGNE-io/aigne-framework/compare/transport-v0.14.3...transport-v0.14.4) (2025-08-20)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Dependencies
|
|
26
|
+
|
|
27
|
+
* The following workspace dependencies were updated
|
|
28
|
+
* dependencies
|
|
29
|
+
* @aigne/openai bumped to 0.12.0
|
|
30
|
+
* devDependencies
|
|
31
|
+
* @aigne/agent-library bumped to 1.21.24
|
|
32
|
+
* @aigne/core bumped to 1.53.0
|
|
33
|
+
* @aigne/default-memory bumped to 1.1.6
|
|
34
|
+
* @aigne/test-utils bumped to 0.5.32
|
|
35
|
+
|
|
36
|
+
## [0.14.3](https://github.com/AIGNE-io/aigne-framework/compare/transport-v0.14.2...transport-v0.14.3) (2025-08-20)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Dependencies
|
|
40
|
+
|
|
41
|
+
* The following workspace dependencies were updated
|
|
42
|
+
* dependencies
|
|
43
|
+
* @aigne/openai bumped to 0.11.5
|
|
44
|
+
* devDependencies
|
|
45
|
+
* @aigne/agent-library bumped to 1.21.23
|
|
46
|
+
* @aigne/core bumped to 1.52.0
|
|
47
|
+
* @aigne/default-memory bumped to 1.1.5
|
|
48
|
+
* @aigne/test-utils bumped to 0.5.31
|
|
49
|
+
|
|
3
50
|
## [0.14.2](https://github.com/AIGNE-io/aigne-framework/compare/transport-v0.14.1...transport-v0.14.2) (2025-08-18)
|
|
4
51
|
|
|
5
52
|
|
|
@@ -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
|
|
6
|
-
|
|
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
|
|
6
|
-
|
|
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
|
|
6
|
-
|
|
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,
|
|
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.
|
|
3
|
+
"version": "0.14.5",
|
|
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.
|
|
49
|
+
"@aigne/openai": "^0.12.1"
|
|
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.
|
|
65
|
-
"@aigne/default-memory": "^1.1.
|
|
66
|
-
"@aigne/
|
|
67
|
-
"@aigne/
|
|
64
|
+
"@aigne/agent-library": "^1.21.25",
|
|
65
|
+
"@aigne/default-memory": "^1.1.7",
|
|
66
|
+
"@aigne/core": "^1.54.0",
|
|
67
|
+
"@aigne/test-utils": "^0.5.33"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"lint": "tsc --noEmit",
|