@blueking/chat-helper 3.0.0-beta.2 → 3.0.0-beta.4

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