@aigne/transport 0.4.0 → 0.4.2
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 +29 -0
- package/lib/cjs/http-client/client-agent.d.ts +3 -3
- package/lib/cjs/http-client/client-agent.js +2 -2
- package/lib/cjs/http-client/client.d.ts +6 -6
- package/lib/cjs/http-server/server.d.ts +3 -3
- package/lib/cjs/http-server/server.js +1 -1
- package/lib/dts/http-client/client-agent.d.ts +3 -3
- package/lib/dts/http-client/client.d.ts +6 -6
- package/lib/dts/http-server/server.d.ts +3 -3
- package/lib/esm/http-client/client-agent.d.ts +3 -3
- package/lib/esm/http-client/client-agent.js +3 -3
- package/lib/esm/http-client/client.d.ts +6 -6
- package/lib/esm/http-server/server.d.ts +3 -3
- package/lib/esm/http-server/server.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.4.2](https://github.com/AIGNE-io/aigne-framework/compare/transport-v0.4.1...transport-v0.4.2) (2025-06-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* use `inputKey` instead of implicit $message for AIAgent ([#165](https://github.com/AIGNE-io/aigne-framework/issues/165)) ([8b6e589](https://github.com/AIGNE-io/aigne-framework/commit/8b6e5896bba8209fd2eecb0f5b9263618bffdaf8))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @aigne/openai bumped to 0.3.2
|
|
16
|
+
* devDependencies
|
|
17
|
+
* @aigne/core bumped to 1.20.1
|
|
18
|
+
* @aigne/test-utils bumped to 0.4.2
|
|
19
|
+
|
|
20
|
+
## [0.4.1](https://github.com/AIGNE-io/aigne-framework/compare/transport-v0.4.0...transport-v0.4.1) (2025-06-17)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Dependencies
|
|
24
|
+
|
|
25
|
+
* The following workspace dependencies were updated
|
|
26
|
+
* dependencies
|
|
27
|
+
* @aigne/openai bumped to 0.3.1
|
|
28
|
+
* devDependencies
|
|
29
|
+
* @aigne/core bumped to 1.20.0
|
|
30
|
+
* @aigne/test-utils bumped to 0.4.1
|
|
31
|
+
|
|
3
32
|
## [0.4.0](https://github.com/AIGNE-io/aigne-framework/compare/transport-v0.3.6...transport-v0.4.0) (2025-06-16)
|
|
4
33
|
|
|
5
34
|
|
|
@@ -8,13 +8,13 @@ export interface ClientAgentOptions<I extends Message = Message, O extends Messa
|
|
|
8
8
|
export declare class ClientAgent<I extends Message = Message, O extends Message = Message> extends Agent<I, O> {
|
|
9
9
|
client: AIGNEHTTPClient;
|
|
10
10
|
constructor(client: AIGNEHTTPClient, options: ClientAgentOptions<I, O>);
|
|
11
|
-
invoke(input:
|
|
11
|
+
invoke(input: I, options?: Partial<AgentInvokeOptions> & {
|
|
12
12
|
streaming?: false;
|
|
13
13
|
}): Promise<O>;
|
|
14
|
-
invoke(input:
|
|
14
|
+
invoke(input: I, options: Partial<AgentInvokeOptions> & {
|
|
15
15
|
streaming: true;
|
|
16
16
|
}): Promise<AgentResponseStream<O>>;
|
|
17
|
-
invoke(input:
|
|
17
|
+
invoke(input: I, options?: Partial<AgentInvokeOptions>): Promise<AgentResponse<O>>;
|
|
18
18
|
process(_input: I, _options: AgentInvokeOptions): PromiseOrValue<AgentProcessResult<O>>;
|
|
19
19
|
postprocess(input: I, output: O, options: AgentInvokeOptions): Promise<void>;
|
|
20
20
|
}
|
|
@@ -17,7 +17,7 @@ class ClientAgent extends core_1.Agent {
|
|
|
17
17
|
memories,
|
|
18
18
|
});
|
|
19
19
|
if (!(result instanceof ReadableStream)) {
|
|
20
|
-
await this.postprocess(
|
|
20
|
+
await this.postprocess(input, result, {
|
|
21
21
|
...options,
|
|
22
22
|
context: this.client,
|
|
23
23
|
});
|
|
@@ -25,7 +25,7 @@ class ClientAgent extends core_1.Agent {
|
|
|
25
25
|
}
|
|
26
26
|
return (0, stream_utils_js_1.onAgentResponseStreamEnd)(result, {
|
|
27
27
|
onResult: async (result) => {
|
|
28
|
-
await this.postprocess(
|
|
28
|
+
await this.postprocess(input, result, {
|
|
29
29
|
...options,
|
|
30
30
|
context: this.client,
|
|
31
31
|
});
|
|
@@ -48,26 +48,26 @@ export declare class AIGNEHTTPClient<U extends UserContext = UserContext> implem
|
|
|
48
48
|
userContext: U;
|
|
49
49
|
memories: Context["memories"];
|
|
50
50
|
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string): UserAgent<I, O>;
|
|
51
|
-
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I
|
|
51
|
+
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I, options: AIGNEHTTPClientInvokeOptions & {
|
|
52
52
|
returnActiveAgent: true;
|
|
53
53
|
streaming?: false;
|
|
54
54
|
}): Promise<[O, Agent]>;
|
|
55
|
-
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I
|
|
55
|
+
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I, options: AIGNEHTTPClientInvokeOptions & {
|
|
56
56
|
returnActiveAgent: true;
|
|
57
57
|
streaming: true;
|
|
58
58
|
}): Promise<[AgentResponseStream<O>, Promise<Agent>]>;
|
|
59
|
-
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I
|
|
59
|
+
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I, options?: AIGNEHTTPClientInvokeOptions & {
|
|
60
60
|
returnActiveAgent?: false;
|
|
61
61
|
streaming?: false;
|
|
62
62
|
}): Promise<O>;
|
|
63
|
-
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I
|
|
63
|
+
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I, options: AIGNEHTTPClientInvokeOptions & {
|
|
64
64
|
returnActiveAgent?: false;
|
|
65
65
|
streaming: true;
|
|
66
66
|
}): Promise<AgentResponseStream<O>>;
|
|
67
|
-
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I
|
|
67
|
+
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I, options: AIGNEHTTPClientInvokeOptions & {
|
|
68
68
|
returnActiveAgent?: false;
|
|
69
69
|
}): Promise<O | AgentResponseStream<O>>;
|
|
70
|
-
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message?: I
|
|
70
|
+
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message?: I, options?: AIGNEHTTPClientInvokeOptions): UserAgent<I, O> | Promise<AgentResponse<O> | [AgentResponse<O>, Agent]>;
|
|
71
71
|
publish(_topic: string | string[], _payload: Omit<MessagePayload, "context"> | Message | string, _options?: InvokeOptions): void;
|
|
72
72
|
subscribe(topic: string | string[], listener?: undefined): Promise<MessagePayload>;
|
|
73
73
|
subscribe(topic: string | string[], listener: MessageQueueListener): Unsubscribe;
|
|
@@ -9,7 +9,7 @@ import { z } from "zod";
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const invokePayloadSchema: z.ZodObject<{
|
|
11
11
|
agent: z.ZodString;
|
|
12
|
-
input: z.
|
|
12
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
13
13
|
options: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
14
14
|
streaming: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, boolean | undefined, boolean | null | undefined>;
|
|
15
15
|
returnProgressChunks: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, boolean | undefined, boolean | null | undefined>;
|
|
@@ -56,7 +56,7 @@ export declare const invokePayloadSchema: z.ZodObject<{
|
|
|
56
56
|
} | null | undefined>;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
58
|
agent: string;
|
|
59
|
-
input:
|
|
59
|
+
input: Record<string, unknown>;
|
|
60
60
|
options?: {
|
|
61
61
|
streaming?: boolean | undefined;
|
|
62
62
|
userContext?: Record<string, unknown> | undefined;
|
|
@@ -67,7 +67,7 @@ export declare const invokePayloadSchema: z.ZodObject<{
|
|
|
67
67
|
} | undefined;
|
|
68
68
|
}, {
|
|
69
69
|
agent: string;
|
|
70
|
-
input:
|
|
70
|
+
input: Record<string, unknown>;
|
|
71
71
|
options?: {
|
|
72
72
|
streaming?: boolean | null | undefined;
|
|
73
73
|
userContext?: Record<string, unknown> | null | undefined;
|
|
@@ -26,7 +26,7 @@ const DEFAULT_MAXIMUM_BODY_SIZE = "4mb";
|
|
|
26
26
|
*/
|
|
27
27
|
exports.invokePayloadSchema = zod_1.z.object({
|
|
28
28
|
agent: zod_1.z.string(),
|
|
29
|
-
input: zod_1.z.
|
|
29
|
+
input: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
|
|
30
30
|
options: zod_1.z
|
|
31
31
|
.object({
|
|
32
32
|
streaming: zod_1.z
|
|
@@ -8,13 +8,13 @@ export interface ClientAgentOptions<I extends Message = Message, O extends Messa
|
|
|
8
8
|
export declare class ClientAgent<I extends Message = Message, O extends Message = Message> extends Agent<I, O> {
|
|
9
9
|
client: AIGNEHTTPClient;
|
|
10
10
|
constructor(client: AIGNEHTTPClient, options: ClientAgentOptions<I, O>);
|
|
11
|
-
invoke(input:
|
|
11
|
+
invoke(input: I, options?: Partial<AgentInvokeOptions> & {
|
|
12
12
|
streaming?: false;
|
|
13
13
|
}): Promise<O>;
|
|
14
|
-
invoke(input:
|
|
14
|
+
invoke(input: I, options: Partial<AgentInvokeOptions> & {
|
|
15
15
|
streaming: true;
|
|
16
16
|
}): Promise<AgentResponseStream<O>>;
|
|
17
|
-
invoke(input:
|
|
17
|
+
invoke(input: I, options?: Partial<AgentInvokeOptions>): Promise<AgentResponse<O>>;
|
|
18
18
|
process(_input: I, _options: AgentInvokeOptions): PromiseOrValue<AgentProcessResult<O>>;
|
|
19
19
|
postprocess(input: I, output: O, options: AgentInvokeOptions): Promise<void>;
|
|
20
20
|
}
|
|
@@ -48,26 +48,26 @@ export declare class AIGNEHTTPClient<U extends UserContext = UserContext> implem
|
|
|
48
48
|
userContext: U;
|
|
49
49
|
memories: Context["memories"];
|
|
50
50
|
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string): UserAgent<I, O>;
|
|
51
|
-
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I
|
|
51
|
+
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I, options: AIGNEHTTPClientInvokeOptions & {
|
|
52
52
|
returnActiveAgent: true;
|
|
53
53
|
streaming?: false;
|
|
54
54
|
}): Promise<[O, Agent]>;
|
|
55
|
-
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I
|
|
55
|
+
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I, options: AIGNEHTTPClientInvokeOptions & {
|
|
56
56
|
returnActiveAgent: true;
|
|
57
57
|
streaming: true;
|
|
58
58
|
}): Promise<[AgentResponseStream<O>, Promise<Agent>]>;
|
|
59
|
-
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I
|
|
59
|
+
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I, options?: AIGNEHTTPClientInvokeOptions & {
|
|
60
60
|
returnActiveAgent?: false;
|
|
61
61
|
streaming?: false;
|
|
62
62
|
}): Promise<O>;
|
|
63
|
-
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I
|
|
63
|
+
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I, options: AIGNEHTTPClientInvokeOptions & {
|
|
64
64
|
returnActiveAgent?: false;
|
|
65
65
|
streaming: true;
|
|
66
66
|
}): Promise<AgentResponseStream<O>>;
|
|
67
|
-
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I
|
|
67
|
+
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I, options: AIGNEHTTPClientInvokeOptions & {
|
|
68
68
|
returnActiveAgent?: false;
|
|
69
69
|
}): Promise<O | AgentResponseStream<O>>;
|
|
70
|
-
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message?: I
|
|
70
|
+
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message?: I, options?: AIGNEHTTPClientInvokeOptions): UserAgent<I, O> | Promise<AgentResponse<O> | [AgentResponse<O>, Agent]>;
|
|
71
71
|
publish(_topic: string | string[], _payload: Omit<MessagePayload, "context"> | Message | string, _options?: InvokeOptions): void;
|
|
72
72
|
subscribe(topic: string | string[], listener?: undefined): Promise<MessagePayload>;
|
|
73
73
|
subscribe(topic: string | string[], listener: MessageQueueListener): Unsubscribe;
|
|
@@ -9,7 +9,7 @@ import { z } from "zod";
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const invokePayloadSchema: z.ZodObject<{
|
|
11
11
|
agent: z.ZodString;
|
|
12
|
-
input: z.
|
|
12
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
13
13
|
options: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
14
14
|
streaming: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, boolean | undefined, boolean | null | undefined>;
|
|
15
15
|
returnProgressChunks: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, boolean | undefined, boolean | null | undefined>;
|
|
@@ -56,7 +56,7 @@ export declare const invokePayloadSchema: z.ZodObject<{
|
|
|
56
56
|
} | null | undefined>;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
58
|
agent: string;
|
|
59
|
-
input:
|
|
59
|
+
input: Record<string, unknown>;
|
|
60
60
|
options?: {
|
|
61
61
|
streaming?: boolean | undefined;
|
|
62
62
|
userContext?: Record<string, unknown> | undefined;
|
|
@@ -67,7 +67,7 @@ export declare const invokePayloadSchema: z.ZodObject<{
|
|
|
67
67
|
} | undefined;
|
|
68
68
|
}, {
|
|
69
69
|
agent: string;
|
|
70
|
-
input:
|
|
70
|
+
input: Record<string, unknown>;
|
|
71
71
|
options?: {
|
|
72
72
|
streaming?: boolean | null | undefined;
|
|
73
73
|
userContext?: Record<string, unknown> | null | undefined;
|
|
@@ -8,13 +8,13 @@ export interface ClientAgentOptions<I extends Message = Message, O extends Messa
|
|
|
8
8
|
export declare class ClientAgent<I extends Message = Message, O extends Message = Message> extends Agent<I, O> {
|
|
9
9
|
client: AIGNEHTTPClient;
|
|
10
10
|
constructor(client: AIGNEHTTPClient, options: ClientAgentOptions<I, O>);
|
|
11
|
-
invoke(input:
|
|
11
|
+
invoke(input: I, options?: Partial<AgentInvokeOptions> & {
|
|
12
12
|
streaming?: false;
|
|
13
13
|
}): Promise<O>;
|
|
14
|
-
invoke(input:
|
|
14
|
+
invoke(input: I, options: Partial<AgentInvokeOptions> & {
|
|
15
15
|
streaming: true;
|
|
16
16
|
}): Promise<AgentResponseStream<O>>;
|
|
17
|
-
invoke(input:
|
|
17
|
+
invoke(input: I, options?: Partial<AgentInvokeOptions>): Promise<AgentResponse<O>>;
|
|
18
18
|
process(_input: I, _options: AgentInvokeOptions): PromiseOrValue<AgentProcessResult<O>>;
|
|
19
19
|
postprocess(input: I, output: O, options: AgentInvokeOptions): Promise<void>;
|
|
20
20
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Agent,
|
|
1
|
+
import { Agent, replaceTransferAgentToName, } from "@aigne/core";
|
|
2
2
|
import { onAgentResponseStreamEnd } from "@aigne/core/utils/stream-utils.js";
|
|
3
3
|
export class ClientAgent extends Agent {
|
|
4
4
|
client;
|
|
@@ -14,7 +14,7 @@ export class ClientAgent extends Agent {
|
|
|
14
14
|
memories,
|
|
15
15
|
});
|
|
16
16
|
if (!(result instanceof ReadableStream)) {
|
|
17
|
-
await this.postprocess(
|
|
17
|
+
await this.postprocess(input, result, {
|
|
18
18
|
...options,
|
|
19
19
|
context: this.client,
|
|
20
20
|
});
|
|
@@ -22,7 +22,7 @@ export class ClientAgent extends Agent {
|
|
|
22
22
|
}
|
|
23
23
|
return onAgentResponseStreamEnd(result, {
|
|
24
24
|
onResult: async (result) => {
|
|
25
|
-
await this.postprocess(
|
|
25
|
+
await this.postprocess(input, result, {
|
|
26
26
|
...options,
|
|
27
27
|
context: this.client,
|
|
28
28
|
});
|
|
@@ -48,26 +48,26 @@ export declare class AIGNEHTTPClient<U extends UserContext = UserContext> implem
|
|
|
48
48
|
userContext: U;
|
|
49
49
|
memories: Context["memories"];
|
|
50
50
|
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string): UserAgent<I, O>;
|
|
51
|
-
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I
|
|
51
|
+
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I, options: AIGNEHTTPClientInvokeOptions & {
|
|
52
52
|
returnActiveAgent: true;
|
|
53
53
|
streaming?: false;
|
|
54
54
|
}): Promise<[O, Agent]>;
|
|
55
|
-
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I
|
|
55
|
+
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I, options: AIGNEHTTPClientInvokeOptions & {
|
|
56
56
|
returnActiveAgent: true;
|
|
57
57
|
streaming: true;
|
|
58
58
|
}): Promise<[AgentResponseStream<O>, Promise<Agent>]>;
|
|
59
|
-
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I
|
|
59
|
+
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I, options?: AIGNEHTTPClientInvokeOptions & {
|
|
60
60
|
returnActiveAgent?: false;
|
|
61
61
|
streaming?: false;
|
|
62
62
|
}): Promise<O>;
|
|
63
|
-
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I
|
|
63
|
+
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I, options: AIGNEHTTPClientInvokeOptions & {
|
|
64
64
|
returnActiveAgent?: false;
|
|
65
65
|
streaming: true;
|
|
66
66
|
}): Promise<AgentResponseStream<O>>;
|
|
67
|
-
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I
|
|
67
|
+
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message: I, options: AIGNEHTTPClientInvokeOptions & {
|
|
68
68
|
returnActiveAgent?: false;
|
|
69
69
|
}): Promise<O | AgentResponseStream<O>>;
|
|
70
|
-
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message?: I
|
|
70
|
+
invoke<I extends Message, O extends Message>(agent: Agent<I, O> | string, message?: I, options?: AIGNEHTTPClientInvokeOptions): UserAgent<I, O> | Promise<AgentResponse<O> | [AgentResponse<O>, Agent]>;
|
|
71
71
|
publish(_topic: string | string[], _payload: Omit<MessagePayload, "context"> | Message | string, _options?: InvokeOptions): void;
|
|
72
72
|
subscribe(topic: string | string[], listener?: undefined): Promise<MessagePayload>;
|
|
73
73
|
subscribe(topic: string | string[], listener: MessageQueueListener): Unsubscribe;
|
|
@@ -9,7 +9,7 @@ import { z } from "zod";
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const invokePayloadSchema: z.ZodObject<{
|
|
11
11
|
agent: z.ZodString;
|
|
12
|
-
input: z.
|
|
12
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
13
13
|
options: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
14
14
|
streaming: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, boolean | undefined, boolean | null | undefined>;
|
|
15
15
|
returnProgressChunks: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, boolean | undefined, boolean | null | undefined>;
|
|
@@ -56,7 +56,7 @@ export declare const invokePayloadSchema: z.ZodObject<{
|
|
|
56
56
|
} | null | undefined>;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
58
|
agent: string;
|
|
59
|
-
input:
|
|
59
|
+
input: Record<string, unknown>;
|
|
60
60
|
options?: {
|
|
61
61
|
streaming?: boolean | undefined;
|
|
62
62
|
userContext?: Record<string, unknown> | undefined;
|
|
@@ -67,7 +67,7 @@ export declare const invokePayloadSchema: z.ZodObject<{
|
|
|
67
67
|
} | undefined;
|
|
68
68
|
}, {
|
|
69
69
|
agent: string;
|
|
70
|
-
input:
|
|
70
|
+
input: Record<string, unknown>;
|
|
71
71
|
options?: {
|
|
72
72
|
streaming?: boolean | null | undefined;
|
|
73
73
|
userContext?: Record<string, unknown> | null | undefined;
|
|
@@ -20,7 +20,7 @@ const DEFAULT_MAXIMUM_BODY_SIZE = "4mb";
|
|
|
20
20
|
*/
|
|
21
21
|
export const invokePayloadSchema = z.object({
|
|
22
22
|
agent: z.string(),
|
|
23
|
-
input: z.
|
|
23
|
+
input: z.record(z.string(), z.unknown()),
|
|
24
24
|
options: z
|
|
25
25
|
.object({
|
|
26
26
|
streaming: z
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/transport",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "AIGNE Transport SDK providing HTTP client and server implementations for communication between AIGNE components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@aigne/openai": "^0.3.
|
|
42
|
+
"@aigne/openai": "^0.3.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/bun": "^1.2.12",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"rimraf": "^6.0.1",
|
|
55
55
|
"typescript": "^5.8.3",
|
|
56
56
|
"uuid": "^11.1.0",
|
|
57
|
-
"@aigne/core": "^1.
|
|
58
|
-
"@aigne/test-utils": "^0.4.
|
|
57
|
+
"@aigne/core": "^1.20.1",
|
|
58
|
+
"@aigne/test-utils": "^0.4.2"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"lint": "tsc --noEmit",
|