@blueking/chat-helper 3.0.0 → 3.1.0-beta.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/dist/agent/use-agent.d.ts +0 -2
- package/dist/event/ag-ui.ts.js +1 -2
- package/dist/event/type.d.ts +1 -2
- package/dist/http/transform/message.ts.js +0 -2
- package/dist/index.d.ts +0 -14
- package/dist/message/type.d.ts +0 -8
- package/dist/message/type.ts.js +0 -7
- package/dist/message/use-message.d.ts +0 -4
- package/dist/session/use-session.d.ts +0 -8
- package/package.json +1 -1
|
@@ -167,7 +167,6 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
|
|
|
167
167
|
function: {
|
|
168
168
|
arguments: string;
|
|
169
169
|
description?: string;
|
|
170
|
-
function_type?: import("../message").FunctionCallType;
|
|
171
170
|
mcpName?: string;
|
|
172
171
|
name: string;
|
|
173
172
|
};
|
|
@@ -1186,7 +1185,6 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
|
|
|
1186
1185
|
function: {
|
|
1187
1186
|
arguments: string;
|
|
1188
1187
|
description?: string;
|
|
1189
|
-
function_type?: import("../message").FunctionCallType;
|
|
1190
1188
|
mcpName?: string;
|
|
1191
1189
|
name: string;
|
|
1192
1190
|
};
|
package/dist/event/ag-ui.ts.js
CHANGED
|
@@ -511,8 +511,7 @@ import { transferMessageApi2Message } from '../http/transform/index.ts.js';
|
|
|
511
511
|
mcpName: event.mcpName,
|
|
512
512
|
name: event.toolCallName,
|
|
513
513
|
arguments: '',
|
|
514
|
-
description: event.description
|
|
515
|
-
function_type: event.function_type
|
|
514
|
+
description: event.description
|
|
516
515
|
}
|
|
517
516
|
}
|
|
518
517
|
]
|
package/dist/event/type.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type IMessageApi, type IMessageArtifact, type MessageRole, type MessageStatus } from '../message/type';
|
|
2
2
|
import type { JSONSchema4 } from 'json-schema';
|
|
3
3
|
export declare enum CustomEventName {
|
|
4
4
|
ArtifactsGenerated = "artifacts_generated",
|
|
@@ -392,7 +392,6 @@ export interface IToolCallResultEvent extends IBaseEvent {
|
|
|
392
392
|
}
|
|
393
393
|
export interface IToolCallStartEvent extends IBaseEvent {
|
|
394
394
|
description?: string;
|
|
395
|
-
function_type?: FunctionCallType;
|
|
396
395
|
mcpName?: string;
|
|
397
396
|
parentMessageId?: string;
|
|
398
397
|
toolCallId: string;
|
|
@@ -143,7 +143,6 @@ import { ActivityType, MessageRole, MessageType, resolveMessageCreatedAt } from
|
|
|
143
143
|
arguments: toolCall['function'].arguments,
|
|
144
144
|
name: toolCall['function'].name,
|
|
145
145
|
description: toolCall['function'].description,
|
|
146
|
-
function_type: toolCall['function'].function_type,
|
|
147
146
|
mcpName: toolCall['function'].mcp_name
|
|
148
147
|
},
|
|
149
148
|
id: toolCall.id,
|
|
@@ -420,7 +419,6 @@ import { ActivityType, MessageRole, MessageType, resolveMessageCreatedAt } from
|
|
|
420
419
|
arguments: toolCall['function'].arguments,
|
|
421
420
|
name: toolCall['function'].name,
|
|
422
421
|
description: toolCall['function'].description,
|
|
423
|
-
function_type: toolCall['function'].function_type,
|
|
424
422
|
mcp_name: toolCall['function'].mcpName
|
|
425
423
|
},
|
|
426
424
|
id: toolCall.id,
|
package/dist/index.d.ts
CHANGED
|
@@ -169,7 +169,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
169
169
|
function: {
|
|
170
170
|
arguments: string;
|
|
171
171
|
description?: string;
|
|
172
|
-
function_type?: import("./message").FunctionCallType;
|
|
173
172
|
mcpName?: string;
|
|
174
173
|
name: string;
|
|
175
174
|
};
|
|
@@ -1188,7 +1187,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
1188
1187
|
function: {
|
|
1189
1188
|
arguments: string;
|
|
1190
1189
|
description?: string;
|
|
1191
|
-
function_type?: import("./message").FunctionCallType;
|
|
1192
1190
|
mcpName?: string;
|
|
1193
1191
|
name: string;
|
|
1194
1192
|
};
|
|
@@ -2243,7 +2241,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
2243
2241
|
function: {
|
|
2244
2242
|
arguments: string;
|
|
2245
2243
|
description?: string;
|
|
2246
|
-
function_type?: import("./message").FunctionCallType;
|
|
2247
2244
|
mcpName?: string;
|
|
2248
2245
|
name: string;
|
|
2249
2246
|
};
|
|
@@ -3200,7 +3197,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
3200
3197
|
function: {
|
|
3201
3198
|
arguments: string;
|
|
3202
3199
|
description?: string;
|
|
3203
|
-
function_type?: import("./message").FunctionCallType;
|
|
3204
3200
|
mcpName?: string;
|
|
3205
3201
|
name: string;
|
|
3206
3202
|
};
|
|
@@ -4178,7 +4174,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
4178
4174
|
function: {
|
|
4179
4175
|
arguments: string;
|
|
4180
4176
|
description?: string;
|
|
4181
|
-
function_type?: import("./message").FunctionCallType;
|
|
4182
4177
|
mcpName?: string;
|
|
4183
4178
|
name: string;
|
|
4184
4179
|
};
|
|
@@ -5135,7 +5130,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
5135
5130
|
function: {
|
|
5136
5131
|
arguments: string;
|
|
5137
5132
|
description?: string;
|
|
5138
|
-
function_type?: import("./message").FunctionCallType;
|
|
5139
5133
|
mcpName?: string;
|
|
5140
5134
|
name: string;
|
|
5141
5135
|
};
|
|
@@ -6114,7 +6108,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
6114
6108
|
function: {
|
|
6115
6109
|
arguments: string;
|
|
6116
6110
|
description?: string;
|
|
6117
|
-
function_type?: import("./message").FunctionCallType;
|
|
6118
6111
|
mcpName?: string;
|
|
6119
6112
|
name: string;
|
|
6120
6113
|
};
|
|
@@ -7071,7 +7064,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
7071
7064
|
function: {
|
|
7072
7065
|
arguments: string;
|
|
7073
7066
|
description?: string;
|
|
7074
|
-
function_type?: import("./message").FunctionCallType;
|
|
7075
7067
|
mcpName?: string;
|
|
7076
7068
|
name: string;
|
|
7077
7069
|
};
|
|
@@ -8049,7 +8041,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
8049
8041
|
function: {
|
|
8050
8042
|
arguments: string;
|
|
8051
8043
|
description?: string;
|
|
8052
|
-
function_type?: import("./message").FunctionCallType;
|
|
8053
8044
|
mcpName?: string;
|
|
8054
8045
|
name: string;
|
|
8055
8046
|
};
|
|
@@ -9006,7 +8997,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
9006
8997
|
function: {
|
|
9007
8998
|
arguments: string;
|
|
9008
8999
|
description?: string;
|
|
9009
|
-
function_type?: import("./message").FunctionCallType;
|
|
9010
9000
|
mcpName?: string;
|
|
9011
9001
|
name: string;
|
|
9012
9002
|
};
|
|
@@ -10008,7 +9998,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
10008
9998
|
function: {
|
|
10009
9999
|
arguments: string;
|
|
10010
10000
|
description?: string;
|
|
10011
|
-
function_type?: import("./message").FunctionCallType;
|
|
10012
10001
|
mcpName?: string;
|
|
10013
10002
|
name: string;
|
|
10014
10003
|
};
|
|
@@ -10962,7 +10951,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
10962
10951
|
function: {
|
|
10963
10952
|
arguments: string;
|
|
10964
10953
|
description?: string;
|
|
10965
|
-
function_type?: import("./message").FunctionCallType;
|
|
10966
10954
|
mcpName?: string;
|
|
10967
10955
|
name: string;
|
|
10968
10956
|
};
|
|
@@ -11921,7 +11909,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
11921
11909
|
function: {
|
|
11922
11910
|
arguments: string;
|
|
11923
11911
|
description?: string;
|
|
11924
|
-
function_type?: import("./message").FunctionCallType;
|
|
11925
11912
|
mcpName?: string;
|
|
11926
11913
|
name: string;
|
|
11927
11914
|
};
|
|
@@ -12876,7 +12863,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
12876
12863
|
function: {
|
|
12877
12864
|
arguments: string;
|
|
12878
12865
|
description?: string;
|
|
12879
|
-
function_type?: import("./message").FunctionCallType;
|
|
12880
12866
|
mcpName?: string;
|
|
12881
12867
|
name: string;
|
|
12882
12868
|
};
|
package/dist/message/type.d.ts
CHANGED
|
@@ -43,12 +43,6 @@ export declare enum MessageType {
|
|
|
43
43
|
Function = "function",
|
|
44
44
|
Text = "text"
|
|
45
45
|
}
|
|
46
|
-
export declare enum FunctionCallType {
|
|
47
|
-
Function = "function",
|
|
48
|
-
Mcp = "mcp",
|
|
49
|
-
Skill = "skill",
|
|
50
|
-
Subagent = "subagent"
|
|
51
|
-
}
|
|
52
46
|
export declare enum UserOperation {
|
|
53
47
|
FlowNodeRetry = "flow_node_retry",
|
|
54
48
|
FlowNodeSkip = "flow_node_skip",
|
|
@@ -199,14 +193,12 @@ export interface IFlowAgentTaskNodeInfo {
|
|
|
199
193
|
export interface IFunctionCall {
|
|
200
194
|
arguments: string;
|
|
201
195
|
description?: string;
|
|
202
|
-
function_type?: FunctionCallType;
|
|
203
196
|
mcpName?: string;
|
|
204
197
|
name: string;
|
|
205
198
|
}
|
|
206
199
|
export interface IFunctionCallApi {
|
|
207
200
|
arguments: string;
|
|
208
201
|
description?: string;
|
|
209
|
-
function_type?: FunctionCallType;
|
|
210
202
|
mcp_name?: string;
|
|
211
203
|
name: string;
|
|
212
204
|
}
|
package/dist/message/type.ts.js
CHANGED
|
@@ -70,13 +70,6 @@ export var MessageType;
|
|
|
70
70
|
MessageType["Function"] = "function";
|
|
71
71
|
MessageType["Text"] = "text";
|
|
72
72
|
})(MessageType || (MessageType = {}));
|
|
73
|
-
export var FunctionCallType;
|
|
74
|
-
(function(FunctionCallType) {
|
|
75
|
-
FunctionCallType["Function"] = "function";
|
|
76
|
-
FunctionCallType["Mcp"] = "mcp";
|
|
77
|
-
FunctionCallType["Skill"] = "skill";
|
|
78
|
-
FunctionCallType["Subagent"] = "subagent";
|
|
79
|
-
})(FunctionCallType || (FunctionCallType = {}));
|
|
80
73
|
export var UserOperation;
|
|
81
74
|
(function(UserOperation) {
|
|
82
75
|
UserOperation["FlowNodeRetry"] = "flow_node_retry";
|
|
@@ -103,7 +103,6 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
103
103
|
function: {
|
|
104
104
|
arguments: string;
|
|
105
105
|
description?: string;
|
|
106
|
-
function_type?: import("./type").FunctionCallType;
|
|
107
106
|
mcpName?: string;
|
|
108
107
|
name: string;
|
|
109
108
|
};
|
|
@@ -1057,7 +1056,6 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
1057
1056
|
function: {
|
|
1058
1057
|
arguments: string;
|
|
1059
1058
|
description?: string;
|
|
1060
|
-
function_type?: import("./type").FunctionCallType;
|
|
1061
1059
|
mcpName?: string;
|
|
1062
1060
|
name: string;
|
|
1063
1061
|
};
|
|
@@ -2016,7 +2014,6 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
2016
2014
|
function: {
|
|
2017
2015
|
arguments: string;
|
|
2018
2016
|
description?: string;
|
|
2019
|
-
function_type?: import("./type").FunctionCallType;
|
|
2020
2017
|
mcpName?: string;
|
|
2021
2018
|
name: string;
|
|
2022
2019
|
};
|
|
@@ -2971,7 +2968,6 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
2971
2968
|
function: {
|
|
2972
2969
|
arguments: string;
|
|
2973
2970
|
description?: string;
|
|
2974
|
-
function_type?: import("./type").FunctionCallType;
|
|
2975
2971
|
mcpName?: string;
|
|
2976
2972
|
name: string;
|
|
2977
2973
|
};
|
|
@@ -119,7 +119,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
119
119
|
function: {
|
|
120
120
|
arguments: string;
|
|
121
121
|
description?: string;
|
|
122
|
-
function_type?: import("..").FunctionCallType;
|
|
123
122
|
mcpName?: string;
|
|
124
123
|
name: string;
|
|
125
124
|
};
|
|
@@ -1076,7 +1075,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
1076
1075
|
function: {
|
|
1077
1076
|
arguments: string;
|
|
1078
1077
|
description?: string;
|
|
1079
|
-
function_type?: import("..").FunctionCallType;
|
|
1080
1078
|
mcpName?: string;
|
|
1081
1079
|
name: string;
|
|
1082
1080
|
};
|
|
@@ -2054,7 +2052,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
2054
2052
|
function: {
|
|
2055
2053
|
arguments: string;
|
|
2056
2054
|
description?: string;
|
|
2057
|
-
function_type?: import("..").FunctionCallType;
|
|
2058
2055
|
mcpName?: string;
|
|
2059
2056
|
name: string;
|
|
2060
2057
|
};
|
|
@@ -3011,7 +3008,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
3011
3008
|
function: {
|
|
3012
3009
|
arguments: string;
|
|
3013
3010
|
description?: string;
|
|
3014
|
-
function_type?: import("..").FunctionCallType;
|
|
3015
3011
|
mcpName?: string;
|
|
3016
3012
|
name: string;
|
|
3017
3013
|
};
|
|
@@ -3990,7 +3986,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
3990
3986
|
function: {
|
|
3991
3987
|
arguments: string;
|
|
3992
3988
|
description?: string;
|
|
3993
|
-
function_type?: import("..").FunctionCallType;
|
|
3994
3989
|
mcpName?: string;
|
|
3995
3990
|
name: string;
|
|
3996
3991
|
};
|
|
@@ -4947,7 +4942,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
4947
4942
|
function: {
|
|
4948
4943
|
arguments: string;
|
|
4949
4944
|
description?: string;
|
|
4950
|
-
function_type?: import("..").FunctionCallType;
|
|
4951
4945
|
mcpName?: string;
|
|
4952
4946
|
name: string;
|
|
4953
4947
|
};
|
|
@@ -5925,7 +5919,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
5925
5919
|
function: {
|
|
5926
5920
|
arguments: string;
|
|
5927
5921
|
description?: string;
|
|
5928
|
-
function_type?: import("..").FunctionCallType;
|
|
5929
5922
|
mcpName?: string;
|
|
5930
5923
|
name: string;
|
|
5931
5924
|
};
|
|
@@ -6882,7 +6875,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
6882
6875
|
function: {
|
|
6883
6876
|
arguments: string;
|
|
6884
6877
|
description?: string;
|
|
6885
|
-
function_type?: import("..").FunctionCallType;
|
|
6886
6878
|
mcpName?: string;
|
|
6887
6879
|
name: string;
|
|
6888
6880
|
};
|