@blueking/chat-helper 0.0.12-beta.12 → 0.0.12-beta.13

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/index.d.ts CHANGED
@@ -72,17 +72,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
72
72
  content?: ({
73
73
  activityType: import("./message").ActivityType;
74
74
  content: {
75
- artifacts: {
76
- name: string;
77
- outputId: string;
78
- size: number;
79
- type: string;
80
- previewUrl?: string;
81
- url?: string;
82
- }[];
83
- runId: string;
84
- status: "complete" | "empty";
85
- } | {
86
75
  nodes: Record<string, import("./event").IFlowAgentNode>;
87
76
  task_id: string;
88
77
  task_name: string;
@@ -100,31 +89,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
100
89
  originFileUrl?: string;
101
90
  url: string;
102
91
  }[];
103
- property?: {
104
- [x: string]: unknown;
105
- artifacts?: {
106
- name: string;
107
- outputId: string;
108
- size: number;
109
- type: string;
110
- previewUrl?: string;
111
- url?: string;
112
- }[];
113
- extra?: {
114
- [x: string]: unknown;
115
- cite?: string | {
116
- data: {
117
- key: string;
118
- value: string;
119
- }[];
120
- title: string;
121
- type: string;
122
- };
123
- command?: string;
124
- context?: Array<Record<string, unknown>>;
125
- resources?: Array<Record<string, unknown>>;
126
- };
127
- };
128
92
  role: import("./message").MessageRole.Activity;
129
93
  id?: string;
130
94
  messageId?: string;
@@ -135,14 +99,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
135
99
  content?: string;
136
100
  property?: {
137
101
  [x: string]: unknown;
138
- artifacts?: {
139
- name: string;
140
- outputId: string;
141
- size: number;
142
- type: string;
143
- previewUrl?: string;
144
- url?: string;
145
- }[];
146
102
  extra?: {
147
103
  [x: string]: unknown;
148
104
  cite?: string | {
@@ -966,14 +922,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
966
922
  })[];
967
923
  property?: {
968
924
  [x: string]: unknown;
969
- artifacts?: {
970
- name: string;
971
- outputId: string;
972
- size: number;
973
- type: string;
974
- previewUrl?: string;
975
- url?: string;
976
- }[];
977
925
  extra?: {
978
926
  [x: string]: unknown;
979
927
  cite?: string | {
@@ -1060,17 +1008,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
1060
1008
  content?: ({
1061
1009
  activityType: import("./message").ActivityType;
1062
1010
  content: {
1063
- artifacts: {
1064
- name: string;
1065
- outputId: string;
1066
- size: number;
1067
- type: string;
1068
- previewUrl?: string;
1069
- url?: string;
1070
- }[];
1071
- runId: string;
1072
- status: "complete" | "empty";
1073
- } | {
1074
1011
  nodes: Record<string, import("./event").IFlowAgentNode>;
1075
1012
  task_id: string;
1076
1013
  task_name: string;
@@ -1088,31 +1025,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
1088
1025
  originFileUrl?: string;
1089
1026
  url: string;
1090
1027
  }[];
1091
- property?: {
1092
- [x: string]: unknown;
1093
- artifacts?: {
1094
- name: string;
1095
- outputId: string;
1096
- size: number;
1097
- type: string;
1098
- previewUrl?: string;
1099
- url?: string;
1100
- }[];
1101
- extra?: {
1102
- [x: string]: unknown;
1103
- cite?: string | {
1104
- data: {
1105
- key: string;
1106
- value: string;
1107
- }[];
1108
- title: string;
1109
- type: string;
1110
- };
1111
- command?: string;
1112
- context?: Array<Record<string, unknown>>;
1113
- resources?: Array<Record<string, unknown>>;
1114
- };
1115
- };
1116
1028
  role: import("./message").MessageRole.Activity;
1117
1029
  id?: string;
1118
1030
  messageId?: string;
@@ -1123,14 +1035,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
1123
1035
  content?: string;
1124
1036
  property?: {
1125
1037
  [x: string]: unknown;
1126
- artifacts?: {
1127
- name: string;
1128
- outputId: string;
1129
- size: number;
1130
- type: string;
1131
- previewUrl?: string;
1132
- url?: string;
1133
- }[];
1134
1038
  extra?: {
1135
1039
  [x: string]: unknown;
1136
1040
  cite?: string | {
@@ -1954,14 +1858,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
1954
1858
  })[];
1955
1859
  property?: {
1956
1860
  [x: string]: unknown;
1957
- artifacts?: {
1958
- name: string;
1959
- outputId: string;
1960
- size: number;
1961
- type: string;
1962
- previewUrl?: string;
1963
- url?: string;
1964
- }[];
1965
1861
  extra?: {
1966
1862
  [x: string]: unknown;
1967
1863
  cite?: string | {
@@ -1991,73 +1887,19 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
1991
1887
  }>;
1992
1888
  isInfoLoading: import("vue").Ref<boolean, boolean>;
1993
1889
  isChatting: import("vue").Ref<boolean, boolean>;
1994
- models: import("vue").Ref<{
1995
- base_model?: string;
1996
- description?: string;
1997
- disabled?: boolean;
1998
- icon?: string;
1999
- id: number;
2000
- llm_code: string;
2001
- llm_name: string;
2002
- llm_type: string;
2003
- max_token_size: number;
2004
- property: {
2005
- agent_type?: string;
2006
- default?: boolean;
2007
- is_self_host?: boolean;
2008
- max_model_len?: number;
2009
- support_summary?: boolean;
2010
- support_thinking?: boolean;
2011
- support_thinking_quick?: boolean;
2012
- support_tools?: boolean;
2013
- support_vision?: boolean;
2014
- support_window?: boolean;
2015
- };
2016
- space_auth_mode: string;
2017
- tag_names?: string[];
2018
- user_auth_mode: string;
2019
- }[], import("./agent").ILlmItem[] | {
2020
- base_model?: string;
2021
- description?: string;
2022
- disabled?: boolean;
2023
- icon?: string;
2024
- id: number;
2025
- llm_code: string;
2026
- llm_name: string;
2027
- llm_type: string;
2028
- max_token_size: number;
2029
- property: {
2030
- agent_type?: string;
2031
- default?: boolean;
2032
- is_self_host?: boolean;
2033
- max_model_len?: number;
2034
- support_summary?: boolean;
2035
- support_thinking?: boolean;
2036
- support_thinking_quick?: boolean;
2037
- support_tools?: boolean;
2038
- support_vision?: boolean;
2039
- support_window?: boolean;
2040
- };
2041
- space_auth_mode: string;
2042
- tag_names?: string[];
2043
- user_auth_mode: string;
2044
- }[]>;
2045
- isModelsLoading: import("vue").Ref<boolean, boolean>;
2046
- chat: (userInput: import("./message").IUserMessage["content"], sessionCode: string, url?: string, config?: import("./http").IRequestConfig, property?: import("./message").IMessageProperty, model?: string) => Promise<void>;
1890
+ chat: (userInput: import("./message").IUserMessage["content"], sessionCode: string, url?: string, config?: import("./http").IRequestConfig, property?: import("./message").IMessageProperty) => Promise<void>;
2047
1891
  handleRole: (data: import("./agent").IAgentInfo, sessionCode: string) => void;
2048
- resendMessage: (messageId: string, sessionCode: string, newContent?: import("./message").IUserMessage["content"], url?: string, config?: import("./http").IRequestConfig, model?: string) => Promise<void>;
2049
- resumeStreamingChat: (sessionCode: string, url?: string, config?: import("./http").IRequestConfig, model?: string) => void;
1892
+ resendMessage: (messageId: string, sessionCode: string, newContent?: import("./message").IUserMessage["content"], url?: string, config?: import("./http").IRequestConfig) => Promise<void>;
1893
+ resumeStreamingChat: (sessionCode: string, url?: string, config?: import("./http").IRequestConfig) => void;
2050
1894
  abortChat: () => void;
2051
1895
  stopChat: (sessionCode: string) => Promise<void>;
2052
1896
  getAgentInfo: () => Promise<void>;
2053
- getLlms: (params?: import("./agent").ILlmListQuery, config?: import("./http").IRequestConfig) => Promise<import("./agent").ILlmItem[]>;
2054
1897
  reset: (protocol: import("./http").ISSEProtocol) => void;
2055
- pollResumeSession: (sessionCode: string, model?: string) => void;
1898
+ pollResumeSession: (sessionCode: string) => void;
2056
1899
  clearLongPollTimer: () => void;
2057
- userOperationStreamRequest: (sessionCode: string, operation: import("./message").UserOperation, payload: import("./message").IUserOperationPayload, config?: import("./http").IRequestConfig, model?: string) => Promise<void>;
2058
- streamRequest: ({ sessionCode, model, url, config, resume, input, lastMessageId, isReconnect, }: {
1900
+ userOperationStreamRequest: (sessionCode: string, operation: import("./message").UserOperation, payload: import("./message").IUserOperationPayload, config?: import("./http").IRequestConfig) => Promise<void>;
1901
+ streamRequest: ({ sessionCode, url, config, resume, input, lastMessageId, isReconnect, }: {
2059
1902
  sessionCode: string;
2060
- model?: string;
2061
1903
  url?: string;
2062
1904
  config?: import("./http").IRequestConfig;
2063
1905
  resume?: import("./event").IResume;
@@ -2086,17 +1928,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
2086
1928
  content: ({
2087
1929
  activityType: import("./message").ActivityType;
2088
1930
  content: {
2089
- artifacts: {
2090
- name: string;
2091
- outputId: string;
2092
- size: number;
2093
- type: string;
2094
- previewUrl?: string;
2095
- url?: string;
2096
- }[];
2097
- runId: string;
2098
- status: "complete" | "empty";
2099
- } | {
2100
1931
  nodes: Record<string, import("./event").IFlowAgentNode>;
2101
1932
  task_id: string;
2102
1933
  task_name: string;
@@ -2114,31 +1945,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
2114
1945
  originFileUrl?: string;
2115
1946
  url: string;
2116
1947
  }[];
2117
- property?: {
2118
- [x: string]: unknown;
2119
- artifacts?: {
2120
- name: string;
2121
- outputId: string;
2122
- size: number;
2123
- type: string;
2124
- previewUrl?: string;
2125
- url?: string;
2126
- }[];
2127
- extra?: {
2128
- [x: string]: unknown;
2129
- cite?: string | {
2130
- data: {
2131
- key: string;
2132
- value: string;
2133
- }[];
2134
- title: string;
2135
- type: string;
2136
- };
2137
- command?: string;
2138
- context?: Array<Record<string, unknown>>;
2139
- resources?: Array<Record<string, unknown>>;
2140
- };
2141
- };
2142
1948
  role: import("./message").MessageRole.Activity;
2143
1949
  id?: string;
2144
1950
  messageId?: string;
@@ -2149,14 +1955,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
2149
1955
  content?: string;
2150
1956
  property?: {
2151
1957
  [x: string]: unknown;
2152
- artifacts?: {
2153
- name: string;
2154
- outputId: string;
2155
- size: number;
2156
- type: string;
2157
- previewUrl?: string;
2158
- url?: string;
2159
- }[];
2160
1958
  extra?: {
2161
1959
  [x: string]: unknown;
2162
1960
  cite?: string | {
@@ -2980,14 +2778,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
2980
2778
  })[];
2981
2779
  property?: {
2982
2780
  [x: string]: unknown;
2983
- artifacts?: {
2984
- name: string;
2985
- outputId: string;
2986
- size: number;
2987
- type: string;
2988
- previewUrl?: string;
2989
- url?: string;
2990
- }[];
2991
2781
  extra?: {
2992
2782
  [x: string]: unknown;
2993
2783
  cite?: string | {
@@ -3015,17 +2805,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
3015
2805
  value: string | ({
3016
2806
  activityType: import("./message").ActivityType;
3017
2807
  content: {
3018
- artifacts: {
3019
- name: string;
3020
- outputId: string;
3021
- size: number;
3022
- type: string;
3023
- previewUrl?: string;
3024
- url?: string;
3025
- }[];
3026
- runId: string;
3027
- status: "complete" | "empty";
3028
- } | {
3029
2808
  nodes: Record<string, import("./event").IFlowAgentNode>;
3030
2809
  task_id: string;
3031
2810
  task_name: string;
@@ -3043,31 +2822,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
3043
2822
  originFileUrl?: string;
3044
2823
  url: string;
3045
2824
  }[];
3046
- property?: {
3047
- [x: string]: unknown;
3048
- artifacts?: {
3049
- name: string;
3050
- outputId: string;
3051
- size: number;
3052
- type: string;
3053
- previewUrl?: string;
3054
- url?: string;
3055
- }[];
3056
- extra?: {
3057
- [x: string]: unknown;
3058
- cite?: string | {
3059
- data: {
3060
- key: string;
3061
- value: string;
3062
- }[];
3063
- title: string;
3064
- type: string;
3065
- };
3066
- command?: string;
3067
- context?: Array<Record<string, unknown>>;
3068
- resources?: Array<Record<string, unknown>>;
3069
- };
3070
- };
3071
2825
  role: import("./message").MessageRole.Activity;
3072
2826
  id?: string;
3073
2827
  messageId?: string;
@@ -3078,14 +2832,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
3078
2832
  content?: string;
3079
2833
  property?: {
3080
2834
  [x: string]: unknown;
3081
- artifacts?: {
3082
- name: string;
3083
- outputId: string;
3084
- size: number;
3085
- type: string;
3086
- previewUrl?: string;
3087
- url?: string;
3088
- }[];
3089
2835
  extra?: {
3090
2836
  [x: string]: unknown;
3091
2837
  cite?: string | {
@@ -3909,14 +3655,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
3909
3655
  })[];
3910
3656
  property?: {
3911
3657
  [x: string]: unknown;
3912
- artifacts?: {
3913
- name: string;
3914
- outputId: string;
3915
- size: number;
3916
- type: string;
3917
- previewUrl?: string;
3918
- url?: string;
3919
- }[];
3920
3658
  extra?: {
3921
3659
  [x: string]: unknown;
3922
3660
  cite?: string | {
@@ -3965,17 +3703,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
3965
3703
  content: ({
3966
3704
  activityType: import("./message").ActivityType;
3967
3705
  content: {
3968
- artifacts: {
3969
- name: string;
3970
- outputId: string;
3971
- size: number;
3972
- type: string;
3973
- previewUrl?: string;
3974
- url?: string;
3975
- }[];
3976
- runId: string;
3977
- status: "complete" | "empty";
3978
- } | {
3979
3706
  nodes: Record<string, import("./event").IFlowAgentNode>;
3980
3707
  task_id: string;
3981
3708
  task_name: string;
@@ -3993,31 +3720,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
3993
3720
  originFileUrl?: string;
3994
3721
  url: string;
3995
3722
  }[];
3996
- property?: {
3997
- [x: string]: unknown;
3998
- artifacts?: {
3999
- name: string;
4000
- outputId: string;
4001
- size: number;
4002
- type: string;
4003
- previewUrl?: string;
4004
- url?: string;
4005
- }[];
4006
- extra?: {
4007
- [x: string]: unknown;
4008
- cite?: string | {
4009
- data: {
4010
- key: string;
4011
- value: string;
4012
- }[];
4013
- title: string;
4014
- type: string;
4015
- };
4016
- command?: string;
4017
- context?: Array<Record<string, unknown>>;
4018
- resources?: Array<Record<string, unknown>>;
4019
- };
4020
- };
4021
3723
  role: import("./message").MessageRole.Activity;
4022
3724
  id?: string;
4023
3725
  messageId?: string;
@@ -4028,14 +3730,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
4028
3730
  content?: string;
4029
3731
  property?: {
4030
3732
  [x: string]: unknown;
4031
- artifacts?: {
4032
- name: string;
4033
- outputId: string;
4034
- size: number;
4035
- type: string;
4036
- previewUrl?: string;
4037
- url?: string;
4038
- }[];
4039
3733
  extra?: {
4040
3734
  [x: string]: unknown;
4041
3735
  cite?: string | {
@@ -4859,14 +4553,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
4859
4553
  })[];
4860
4554
  property?: {
4861
4555
  [x: string]: unknown;
4862
- artifacts?: {
4863
- name: string;
4864
- outputId: string;
4865
- size: number;
4866
- type: string;
4867
- previewUrl?: string;
4868
- url?: string;
4869
- }[];
4870
4556
  extra?: {
4871
4557
  [x: string]: unknown;
4872
4558
  cite?: string | {
@@ -4894,17 +4580,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
4894
4580
  value: string | ({
4895
4581
  activityType: import("./message").ActivityType;
4896
4582
  content: {
4897
- artifacts: {
4898
- name: string;
4899
- outputId: string;
4900
- size: number;
4901
- type: string;
4902
- previewUrl?: string;
4903
- url?: string;
4904
- }[];
4905
- runId: string;
4906
- status: "complete" | "empty";
4907
- } | {
4908
4583
  nodes: Record<string, import("./event").IFlowAgentNode>;
4909
4584
  task_id: string;
4910
4585
  task_name: string;
@@ -4922,31 +4597,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
4922
4597
  originFileUrl?: string;
4923
4598
  url: string;
4924
4599
  }[];
4925
- property?: {
4926
- [x: string]: unknown;
4927
- artifacts?: {
4928
- name: string;
4929
- outputId: string;
4930
- size: number;
4931
- type: string;
4932
- previewUrl?: string;
4933
- url?: string;
4934
- }[];
4935
- extra?: {
4936
- [x: string]: unknown;
4937
- cite?: string | {
4938
- data: {
4939
- key: string;
4940
- value: string;
4941
- }[];
4942
- title: string;
4943
- type: string;
4944
- };
4945
- command?: string;
4946
- context?: Array<Record<string, unknown>>;
4947
- resources?: Array<Record<string, unknown>>;
4948
- };
4949
- };
4950
4600
  role: import("./message").MessageRole.Activity;
4951
4601
  id?: string;
4952
4602
  messageId?: string;
@@ -4957,14 +4607,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
4957
4607
  content?: string;
4958
4608
  property?: {
4959
4609
  [x: string]: unknown;
4960
- artifacts?: {
4961
- name: string;
4962
- outputId: string;
4963
- size: number;
4964
- type: string;
4965
- previewUrl?: string;
4966
- url?: string;
4967
- }[];
4968
4610
  extra?: {
4969
4611
  [x: string]: unknown;
4970
4612
  cite?: string | {
@@ -5788,14 +5430,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
5788
5430
  })[];
5789
5431
  property?: {
5790
5432
  [x: string]: unknown;
5791
- artifacts?: {
5792
- name: string;
5793
- outputId: string;
5794
- size: number;
5795
- type: string;
5796
- previewUrl?: string;
5797
- url?: string;
5798
- }[];
5799
5433
  extra?: {
5800
5434
  [x: string]: unknown;
5801
5435
  cite?: string | {
@@ -5845,17 +5479,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
5845
5479
  content: ({
5846
5480
  activityType: import("./message").ActivityType;
5847
5481
  content: {
5848
- artifacts: {
5849
- name: string;
5850
- outputId: string;
5851
- size: number;
5852
- type: string;
5853
- previewUrl?: string;
5854
- url?: string;
5855
- }[];
5856
- runId: string;
5857
- status: "complete" | "empty";
5858
- } | {
5859
5482
  nodes: Record<string, import("./event").IFlowAgentNode>;
5860
5483
  task_id: string;
5861
5484
  task_name: string;
@@ -5873,31 +5496,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
5873
5496
  originFileUrl?: string;
5874
5497
  url: string;
5875
5498
  }[];
5876
- property?: {
5877
- [x: string]: unknown;
5878
- artifacts?: {
5879
- name: string;
5880
- outputId: string;
5881
- size: number;
5882
- type: string;
5883
- previewUrl?: string;
5884
- url?: string;
5885
- }[];
5886
- extra?: {
5887
- [x: string]: unknown;
5888
- cite?: string | {
5889
- data: {
5890
- key: string;
5891
- value: string;
5892
- }[];
5893
- title: string;
5894
- type: string;
5895
- };
5896
- command?: string;
5897
- context?: Array<Record<string, unknown>>;
5898
- resources?: Array<Record<string, unknown>>;
5899
- };
5900
- };
5901
5499
  role: import("./message").MessageRole.Activity;
5902
5500
  id?: string;
5903
5501
  messageId?: string;
@@ -5908,14 +5506,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
5908
5506
  content?: string;
5909
5507
  property?: {
5910
5508
  [x: string]: unknown;
5911
- artifacts?: {
5912
- name: string;
5913
- outputId: string;
5914
- size: number;
5915
- type: string;
5916
- previewUrl?: string;
5917
- url?: string;
5918
- }[];
5919
5509
  extra?: {
5920
5510
  [x: string]: unknown;
5921
5511
  cite?: string | {
@@ -6739,14 +6329,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
6739
6329
  })[];
6740
6330
  property?: {
6741
6331
  [x: string]: unknown;
6742
- artifacts?: {
6743
- name: string;
6744
- outputId: string;
6745
- size: number;
6746
- type: string;
6747
- previewUrl?: string;
6748
- url?: string;
6749
- }[];
6750
6332
  extra?: {
6751
6333
  [x: string]: unknown;
6752
6334
  cite?: string | {
@@ -6774,17 +6356,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
6774
6356
  value: string | ({
6775
6357
  activityType: import("./message").ActivityType;
6776
6358
  content: {
6777
- artifacts: {
6778
- name: string;
6779
- outputId: string;
6780
- size: number;
6781
- type: string;
6782
- previewUrl?: string;
6783
- url?: string;
6784
- }[];
6785
- runId: string;
6786
- status: "complete" | "empty";
6787
- } | {
6788
6359
  nodes: Record<string, import("./event").IFlowAgentNode>;
6789
6360
  task_id: string;
6790
6361
  task_name: string;
@@ -6802,31 +6373,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
6802
6373
  originFileUrl?: string;
6803
6374
  url: string;
6804
6375
  }[];
6805
- property?: {
6806
- [x: string]: unknown;
6807
- artifacts?: {
6808
- name: string;
6809
- outputId: string;
6810
- size: number;
6811
- type: string;
6812
- previewUrl?: string;
6813
- url?: string;
6814
- }[];
6815
- extra?: {
6816
- [x: string]: unknown;
6817
- cite?: string | {
6818
- data: {
6819
- key: string;
6820
- value: string;
6821
- }[];
6822
- title: string;
6823
- type: string;
6824
- };
6825
- command?: string;
6826
- context?: Array<Record<string, unknown>>;
6827
- resources?: Array<Record<string, unknown>>;
6828
- };
6829
- };
6830
6376
  role: import("./message").MessageRole.Activity;
6831
6377
  id?: string;
6832
6378
  messageId?: string;
@@ -6837,14 +6383,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
6837
6383
  content?: string;
6838
6384
  property?: {
6839
6385
  [x: string]: unknown;
6840
- artifacts?: {
6841
- name: string;
6842
- outputId: string;
6843
- size: number;
6844
- type: string;
6845
- previewUrl?: string;
6846
- url?: string;
6847
- }[];
6848
6386
  extra?: {
6849
6387
  [x: string]: unknown;
6850
6388
  cite?: string | {
@@ -7668,14 +7206,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
7668
7206
  })[];
7669
7207
  property?: {
7670
7208
  [x: string]: unknown;
7671
- artifacts?: {
7672
- name: string;
7673
- outputId: string;
7674
- size: number;
7675
- type: string;
7676
- previewUrl?: string;
7677
- url?: string;
7678
- }[];
7679
7209
  extra?: {
7680
7210
  [x: string]: unknown;
7681
7211
  cite?: string | {
@@ -7724,17 +7254,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
7724
7254
  content: ({
7725
7255
  activityType: import("./message").ActivityType;
7726
7256
  content: {
7727
- artifacts: {
7728
- name: string;
7729
- outputId: string;
7730
- size: number;
7731
- type: string;
7732
- previewUrl?: string;
7733
- url?: string;
7734
- }[];
7735
- runId: string;
7736
- status: "complete" | "empty";
7737
- } | {
7738
7257
  nodes: Record<string, import("./event").IFlowAgentNode>;
7739
7258
  task_id: string;
7740
7259
  task_name: string;
@@ -7752,31 +7271,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
7752
7271
  originFileUrl?: string;
7753
7272
  url: string;
7754
7273
  }[];
7755
- property?: {
7756
- [x: string]: unknown;
7757
- artifacts?: {
7758
- name: string;
7759
- outputId: string;
7760
- size: number;
7761
- type: string;
7762
- previewUrl?: string;
7763
- url?: string;
7764
- }[];
7765
- extra?: {
7766
- [x: string]: unknown;
7767
- cite?: string | {
7768
- data: {
7769
- key: string;
7770
- value: string;
7771
- }[];
7772
- title: string;
7773
- type: string;
7774
- };
7775
- command?: string;
7776
- context?: Array<Record<string, unknown>>;
7777
- resources?: Array<Record<string, unknown>>;
7778
- };
7779
- };
7780
7274
  role: import("./message").MessageRole.Activity;
7781
7275
  id?: string;
7782
7276
  messageId?: string;
@@ -7787,14 +7281,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
7787
7281
  content?: string;
7788
7282
  property?: {
7789
7283
  [x: string]: unknown;
7790
- artifacts?: {
7791
- name: string;
7792
- outputId: string;
7793
- size: number;
7794
- type: string;
7795
- previewUrl?: string;
7796
- url?: string;
7797
- }[];
7798
7284
  extra?: {
7799
7285
  [x: string]: unknown;
7800
7286
  cite?: string | {
@@ -8618,14 +8104,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
8618
8104
  })[];
8619
8105
  property?: {
8620
8106
  [x: string]: unknown;
8621
- artifacts?: {
8622
- name: string;
8623
- outputId: string;
8624
- size: number;
8625
- type: string;
8626
- previewUrl?: string;
8627
- url?: string;
8628
- }[];
8629
8107
  extra?: {
8630
8108
  [x: string]: unknown;
8631
8109
  cite?: string | {
@@ -8653,17 +8131,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
8653
8131
  value: string | ({
8654
8132
  activityType: import("./message").ActivityType;
8655
8133
  content: {
8656
- artifacts: {
8657
- name: string;
8658
- outputId: string;
8659
- size: number;
8660
- type: string;
8661
- previewUrl?: string;
8662
- url?: string;
8663
- }[];
8664
- runId: string;
8665
- status: "complete" | "empty";
8666
- } | {
8667
8134
  nodes: Record<string, import("./event").IFlowAgentNode>;
8668
8135
  task_id: string;
8669
8136
  task_name: string;
@@ -8681,31 +8148,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
8681
8148
  originFileUrl?: string;
8682
8149
  url: string;
8683
8150
  }[];
8684
- property?: {
8685
- [x: string]: unknown;
8686
- artifacts?: {
8687
- name: string;
8688
- outputId: string;
8689
- size: number;
8690
- type: string;
8691
- previewUrl?: string;
8692
- url?: string;
8693
- }[];
8694
- extra?: {
8695
- [x: string]: unknown;
8696
- cite?: string | {
8697
- data: {
8698
- key: string;
8699
- value: string;
8700
- }[];
8701
- title: string;
8702
- type: string;
8703
- };
8704
- command?: string;
8705
- context?: Array<Record<string, unknown>>;
8706
- resources?: Array<Record<string, unknown>>;
8707
- };
8708
- };
8709
8151
  role: import("./message").MessageRole.Activity;
8710
8152
  id?: string;
8711
8153
  messageId?: string;
@@ -8716,14 +8158,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
8716
8158
  content?: string;
8717
8159
  property?: {
8718
8160
  [x: string]: unknown;
8719
- artifacts?: {
8720
- name: string;
8721
- outputId: string;
8722
- size: number;
8723
- type: string;
8724
- previewUrl?: string;
8725
- url?: string;
8726
- }[];
8727
8161
  extra?: {
8728
8162
  [x: string]: unknown;
8729
8163
  cite?: string | {
@@ -9547,14 +8981,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
9547
8981
  })[];
9548
8982
  property?: {
9549
8983
  [x: string]: unknown;
9550
- artifacts?: {
9551
- name: string;
9552
- outputId: string;
9553
- size: number;
9554
- type: string;
9555
- previewUrl?: string;
9556
- url?: string;
9557
- }[];
9558
8984
  extra?: {
9559
8985
  [x: string]: unknown;
9560
8986
  cite?: string | {
@@ -9620,24 +9046,12 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
9620
9046
  uploadFile: (sessionCode: string, file: File) => Promise<{
9621
9047
  download_url?: string;
9622
9048
  }>;
9623
- getPvFileDownloadUrl: (sessionCode: string, path: string, options?: import("./session").GetPvFileDownloadUrlOptions) => Promise<import("./session").IPvFileDownloadUrlResult>;
9624
9049
  reset: () => void;
9625
9050
  };
9626
9051
  message: {
9627
9052
  list: import("vue").Ref<({
9628
9053
  activityType: import("./message").ActivityType;
9629
9054
  content: {
9630
- artifacts: {
9631
- name: string;
9632
- outputId: string;
9633
- size: number;
9634
- type: string;
9635
- previewUrl?: string;
9636
- url?: string;
9637
- }[];
9638
- runId: string;
9639
- status: "complete" | "empty";
9640
- } | {
9641
9055
  nodes: Record<string, import("./event").IFlowAgentNode>;
9642
9056
  task_id: string;
9643
9057
  task_name: string;
@@ -9655,31 +9069,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
9655
9069
  originFileUrl?: string;
9656
9070
  url: string;
9657
9071
  }[];
9658
- property?: {
9659
- [x: string]: unknown;
9660
- artifacts?: {
9661
- name: string;
9662
- outputId: string;
9663
- size: number;
9664
- type: string;
9665
- previewUrl?: string;
9666
- url?: string;
9667
- }[];
9668
- extra?: {
9669
- [x: string]: unknown;
9670
- cite?: string | {
9671
- data: {
9672
- key: string;
9673
- value: string;
9674
- }[];
9675
- title: string;
9676
- type: string;
9677
- };
9678
- command?: string;
9679
- context?: Array<Record<string, unknown>>;
9680
- resources?: Array<Record<string, unknown>>;
9681
- };
9682
- };
9683
9072
  role: import("./message").MessageRole.Activity;
9684
9073
  id?: string;
9685
9074
  messageId?: string;
@@ -9690,14 +9079,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
9690
9079
  content?: string;
9691
9080
  property?: {
9692
9081
  [x: string]: unknown;
9693
- artifacts?: {
9694
- name: string;
9695
- outputId: string;
9696
- size: number;
9697
- type: string;
9698
- previewUrl?: string;
9699
- url?: string;
9700
- }[];
9701
9082
  extra?: {
9702
9083
  [x: string]: unknown;
9703
9084
  cite?: string | {
@@ -10521,14 +9902,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
10521
9902
  })[];
10522
9903
  property?: {
10523
9904
  [x: string]: unknown;
10524
- artifacts?: {
10525
- name: string;
10526
- outputId: string;
10527
- size: number;
10528
- type: string;
10529
- previewUrl?: string;
10530
- url?: string;
10531
- }[];
10532
9905
  extra?: {
10533
9906
  [x: string]: unknown;
10534
9907
  cite?: string | {
@@ -10553,17 +9926,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
10553
9926
  })[], import("./message").IMessage[] | ({
10554
9927
  activityType: import("./message").ActivityType;
10555
9928
  content: {
10556
- artifacts: {
10557
- name: string;
10558
- outputId: string;
10559
- size: number;
10560
- type: string;
10561
- previewUrl?: string;
10562
- url?: string;
10563
- }[];
10564
- runId: string;
10565
- status: "complete" | "empty";
10566
- } | {
10567
9929
  nodes: Record<string, import("./event").IFlowAgentNode>;
10568
9930
  task_id: string;
10569
9931
  task_name: string;
@@ -10581,31 +9943,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
10581
9943
  originFileUrl?: string;
10582
9944
  url: string;
10583
9945
  }[];
10584
- property?: {
10585
- [x: string]: unknown;
10586
- artifacts?: {
10587
- name: string;
10588
- outputId: string;
10589
- size: number;
10590
- type: string;
10591
- previewUrl?: string;
10592
- url?: string;
10593
- }[];
10594
- extra?: {
10595
- [x: string]: unknown;
10596
- cite?: string | {
10597
- data: {
10598
- key: string;
10599
- value: string;
10600
- }[];
10601
- title: string;
10602
- type: string;
10603
- };
10604
- command?: string;
10605
- context?: Array<Record<string, unknown>>;
10606
- resources?: Array<Record<string, unknown>>;
10607
- };
10608
- };
10609
9946
  role: import("./message").MessageRole.Activity;
10610
9947
  id?: string;
10611
9948
  messageId?: string;
@@ -10616,14 +9953,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
10616
9953
  content?: string;
10617
9954
  property?: {
10618
9955
  [x: string]: unknown;
10619
- artifacts?: {
10620
- name: string;
10621
- outputId: string;
10622
- size: number;
10623
- type: string;
10624
- previewUrl?: string;
10625
- url?: string;
10626
- }[];
10627
9956
  extra?: {
10628
9957
  [x: string]: unknown;
10629
9958
  cite?: string | {
@@ -11447,14 +10776,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
11447
10776
  })[];
11448
10777
  property?: {
11449
10778
  [x: string]: unknown;
11450
- artifacts?: {
11451
- name: string;
11452
- outputId: string;
11453
- size: number;
11454
- type: string;
11455
- previewUrl?: string;
11456
- url?: string;
11457
- }[];
11458
10779
  extra?: {
11459
10780
  [x: string]: unknown;
11460
10781
  cite?: string | {
@@ -11484,17 +10805,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
11484
10805
  getCurrentLoadingMessage: () => {
11485
10806
  activityType: import("./message").ActivityType;
11486
10807
  content: {
11487
- artifacts: {
11488
- name: string;
11489
- outputId: string;
11490
- size: number;
11491
- type: string;
11492
- previewUrl?: string;
11493
- url?: string;
11494
- }[];
11495
- runId: string;
11496
- status: "complete" | "empty";
11497
- } | {
11498
10808
  nodes: Record<string, import("./event").IFlowAgentNode>;
11499
10809
  task_id: string;
11500
10810
  task_name: string;
@@ -11512,31 +10822,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
11512
10822
  originFileUrl?: string;
11513
10823
  url: string;
11514
10824
  }[];
11515
- property?: {
11516
- [x: string]: unknown;
11517
- artifacts?: {
11518
- name: string;
11519
- outputId: string;
11520
- size: number;
11521
- type: string;
11522
- previewUrl?: string;
11523
- url?: string;
11524
- }[];
11525
- extra?: {
11526
- [x: string]: unknown;
11527
- cite?: string | {
11528
- data: {
11529
- key: string;
11530
- value: string;
11531
- }[];
11532
- title: string;
11533
- type: string;
11534
- };
11535
- command?: string;
11536
- context?: Array<Record<string, unknown>>;
11537
- resources?: Array<Record<string, unknown>>;
11538
- };
11539
- };
11540
10825
  role: import("./message").MessageRole.Activity;
11541
10826
  id?: string;
11542
10827
  messageId?: string;
@@ -11547,14 +10832,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
11547
10832
  content?: string;
11548
10833
  property?: {
11549
10834
  [x: string]: unknown;
11550
- artifacts?: {
11551
- name: string;
11552
- outputId: string;
11553
- size: number;
11554
- type: string;
11555
- previewUrl?: string;
11556
- url?: string;
11557
- }[];
11558
10835
  extra?: {
11559
10836
  [x: string]: unknown;
11560
10837
  cite?: string | {
@@ -12378,14 +11655,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
12378
11655
  })[];
12379
11656
  property?: {
12380
11657
  [x: string]: unknown;
12381
- artifacts?: {
12382
- name: string;
12383
- outputId: string;
12384
- size: number;
12385
- type: string;
12386
- previewUrl?: string;
12387
- url?: string;
12388
- }[];
12389
11658
  extra?: {
12390
11659
  [x: string]: unknown;
12391
11660
  cite?: string | {
@@ -12411,17 +11680,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
12411
11680
  getMessageByMessageId: (id: string) => {
12412
11681
  activityType: import("./message").ActivityType;
12413
11682
  content: {
12414
- artifacts: {
12415
- name: string;
12416
- outputId: string;
12417
- size: number;
12418
- type: string;
12419
- previewUrl?: string;
12420
- url?: string;
12421
- }[];
12422
- runId: string;
12423
- status: "complete" | "empty";
12424
- } | {
12425
11683
  nodes: Record<string, import("./event").IFlowAgentNode>;
12426
11684
  task_id: string;
12427
11685
  task_name: string;
@@ -12439,31 +11697,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
12439
11697
  originFileUrl?: string;
12440
11698
  url: string;
12441
11699
  }[];
12442
- property?: {
12443
- [x: string]: unknown;
12444
- artifacts?: {
12445
- name: string;
12446
- outputId: string;
12447
- size: number;
12448
- type: string;
12449
- previewUrl?: string;
12450
- url?: string;
12451
- }[];
12452
- extra?: {
12453
- [x: string]: unknown;
12454
- cite?: string | {
12455
- data: {
12456
- key: string;
12457
- value: string;
12458
- }[];
12459
- title: string;
12460
- type: string;
12461
- };
12462
- command?: string;
12463
- context?: Array<Record<string, unknown>>;
12464
- resources?: Array<Record<string, unknown>>;
12465
- };
12466
- };
12467
11700
  role: import("./message").MessageRole.Activity;
12468
11701
  id?: string;
12469
11702
  messageId?: string;
@@ -12474,14 +11707,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
12474
11707
  content?: string;
12475
11708
  property?: {
12476
11709
  [x: string]: unknown;
12477
- artifacts?: {
12478
- name: string;
12479
- outputId: string;
12480
- size: number;
12481
- type: string;
12482
- previewUrl?: string;
12483
- url?: string;
12484
- }[];
12485
11710
  extra?: {
12486
11711
  [x: string]: unknown;
12487
11712
  cite?: string | {
@@ -13305,14 +12530,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
13305
12530
  })[];
13306
12531
  property?: {
13307
12532
  [x: string]: unknown;
13308
- artifacts?: {
13309
- name: string;
13310
- outputId: string;
13311
- size: number;
13312
- type: string;
13313
- previewUrl?: string;
13314
- url?: string;
13315
- }[];
13316
12533
  extra?: {
13317
12534
  [x: string]: unknown;
13318
12535
  cite?: string | {
@@ -13349,7 +12566,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
13349
12566
  onError: (handler: import("./http").GlobalErrorHandler, options?: import("./http").ErrorHandlerOptions) => void;
13350
12567
  agent: {
13351
12568
  getAgentInfo: (config?: import("./http").IRequestConfig) => Promise<import("./agent").IAgentInfo>;
13352
- getLlms: (params?: import("./agent").ILlmListQuery, config?: import("./http").IRequestConfig) => Promise<import("./agent").ILlmItem[]>;
13353
12569
  };
13354
12570
  session: {
13355
12571
  clearSession: (sessionCode: string, config?: import("./http").IRequestConfig) => Promise<unknown>;
@@ -13376,7 +12592,6 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
13376
12592
  uploadFile: (sessionCode: string, file: File, config?: import("./http").IRequestConfig) => Promise<{
13377
12593
  download_url?: string;
13378
12594
  }>;
13379
- getPvFileDownloadUrl: (sessionCode: string, path: string, options?: import("./session").GetPvFileDownloadUrlOptions, config?: import("./http").IRequestConfig) => Promise<import("./session").IPvFileDownloadUrlResult>;
13380
12595
  isResumeSession: (sessionCode: string, config?: import("./http").IRequestConfig) => Promise<boolean>;
13381
12596
  };
13382
12597
  message: {