@blueking/chat-helper 0.0.12-beta.11 → 0.0.12-beta.12
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/README.md +8 -2
- package/dist/agent/type.d.ts +69 -0
- package/dist/agent/type.ts.js +1 -1
- package/dist/agent/use-agent.d.ts +165 -7
- package/dist/agent/use-agent.ts.js +50 -11
- package/dist/event/ag-ui.d.ts +2 -0
- package/dist/event/ag-ui.ts.js +35 -3
- package/dist/event/type.d.ts +13 -2
- package/dist/event/type.ts.js +2 -0
- package/dist/http/index.d.ts +2 -0
- package/dist/http/module/agent.d.ts +2 -0
- package/dist/http/module/agent.ts.js +19 -2
- package/dist/http/module/index.d.ts +2 -0
- package/dist/http/module/message.ts.js +2 -2
- package/dist/http/module/session.d.ts +2 -1
- package/dist/http/module/session.ts.js +44 -7
- package/dist/http/transform/agent.d.ts +9 -1
- package/dist/http/transform/agent.ts.js +27 -0
- package/dist/http/transform/message.d.ts +6 -0
- package/dist/http/transform/message.ts.js +56 -0
- package/dist/index.d.ts +791 -6
- package/dist/message/type.d.ts +18 -3
- package/dist/message/type.ts.js +2 -0
- package/dist/message/use-message.d.ts +208 -0
- package/dist/session/type.d.ts +14 -0
- package/dist/session/use-session.d.ts +418 -1
- package/dist/session/use-session.ts.js +5 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -72,6 +72,17 @@ 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
|
+
} | {
|
|
75
86
|
nodes: Record<string, import("./event").IFlowAgentNode>;
|
|
76
87
|
task_id: string;
|
|
77
88
|
task_name: string;
|
|
@@ -89,6 +100,31 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
89
100
|
originFileUrl?: string;
|
|
90
101
|
url: string;
|
|
91
102
|
}[];
|
|
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
|
+
};
|
|
92
128
|
role: import("./message").MessageRole.Activity;
|
|
93
129
|
id?: string;
|
|
94
130
|
messageId?: string;
|
|
@@ -99,6 +135,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
99
135
|
content?: string;
|
|
100
136
|
property?: {
|
|
101
137
|
[x: string]: unknown;
|
|
138
|
+
artifacts?: {
|
|
139
|
+
name: string;
|
|
140
|
+
outputId: string;
|
|
141
|
+
size: number;
|
|
142
|
+
type: string;
|
|
143
|
+
previewUrl?: string;
|
|
144
|
+
url?: string;
|
|
145
|
+
}[];
|
|
102
146
|
extra?: {
|
|
103
147
|
[x: string]: unknown;
|
|
104
148
|
cite?: string | {
|
|
@@ -922,6 +966,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
922
966
|
})[];
|
|
923
967
|
property?: {
|
|
924
968
|
[x: string]: unknown;
|
|
969
|
+
artifacts?: {
|
|
970
|
+
name: string;
|
|
971
|
+
outputId: string;
|
|
972
|
+
size: number;
|
|
973
|
+
type: string;
|
|
974
|
+
previewUrl?: string;
|
|
975
|
+
url?: string;
|
|
976
|
+
}[];
|
|
925
977
|
extra?: {
|
|
926
978
|
[x: string]: unknown;
|
|
927
979
|
cite?: string | {
|
|
@@ -1008,6 +1060,17 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
1008
1060
|
content?: ({
|
|
1009
1061
|
activityType: import("./message").ActivityType;
|
|
1010
1062
|
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
|
+
} | {
|
|
1011
1074
|
nodes: Record<string, import("./event").IFlowAgentNode>;
|
|
1012
1075
|
task_id: string;
|
|
1013
1076
|
task_name: string;
|
|
@@ -1025,6 +1088,31 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
1025
1088
|
originFileUrl?: string;
|
|
1026
1089
|
url: string;
|
|
1027
1090
|
}[];
|
|
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
|
+
};
|
|
1028
1116
|
role: import("./message").MessageRole.Activity;
|
|
1029
1117
|
id?: string;
|
|
1030
1118
|
messageId?: string;
|
|
@@ -1035,6 +1123,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
1035
1123
|
content?: string;
|
|
1036
1124
|
property?: {
|
|
1037
1125
|
[x: string]: unknown;
|
|
1126
|
+
artifacts?: {
|
|
1127
|
+
name: string;
|
|
1128
|
+
outputId: string;
|
|
1129
|
+
size: number;
|
|
1130
|
+
type: string;
|
|
1131
|
+
previewUrl?: string;
|
|
1132
|
+
url?: string;
|
|
1133
|
+
}[];
|
|
1038
1134
|
extra?: {
|
|
1039
1135
|
[x: string]: unknown;
|
|
1040
1136
|
cite?: string | {
|
|
@@ -1858,6 +1954,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
1858
1954
|
})[];
|
|
1859
1955
|
property?: {
|
|
1860
1956
|
[x: string]: unknown;
|
|
1957
|
+
artifacts?: {
|
|
1958
|
+
name: string;
|
|
1959
|
+
outputId: string;
|
|
1960
|
+
size: number;
|
|
1961
|
+
type: string;
|
|
1962
|
+
previewUrl?: string;
|
|
1963
|
+
url?: string;
|
|
1964
|
+
}[];
|
|
1861
1965
|
extra?: {
|
|
1862
1966
|
[x: string]: unknown;
|
|
1863
1967
|
cite?: string | {
|
|
@@ -1887,19 +1991,73 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
1887
1991
|
}>;
|
|
1888
1992
|
isInfoLoading: import("vue").Ref<boolean, boolean>;
|
|
1889
1993
|
isChatting: import("vue").Ref<boolean, boolean>;
|
|
1890
|
-
|
|
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>;
|
|
1891
2047
|
handleRole: (data: import("./agent").IAgentInfo, sessionCode: 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;
|
|
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;
|
|
1894
2050
|
abortChat: () => void;
|
|
1895
2051
|
stopChat: (sessionCode: string) => Promise<void>;
|
|
1896
2052
|
getAgentInfo: () => Promise<void>;
|
|
2053
|
+
getLlms: (params?: import("./agent").ILlmListQuery, config?: import("./http").IRequestConfig) => Promise<import("./agent").ILlmItem[]>;
|
|
1897
2054
|
reset: (protocol: import("./http").ISSEProtocol) => void;
|
|
1898
|
-
pollResumeSession: (sessionCode: string) => void;
|
|
2055
|
+
pollResumeSession: (sessionCode: string, model?: string) => void;
|
|
1899
2056
|
clearLongPollTimer: () => void;
|
|
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, }: {
|
|
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, }: {
|
|
1902
2059
|
sessionCode: string;
|
|
2060
|
+
model?: string;
|
|
1903
2061
|
url?: string;
|
|
1904
2062
|
config?: import("./http").IRequestConfig;
|
|
1905
2063
|
resume?: import("./event").IResume;
|
|
@@ -1928,6 +2086,17 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
1928
2086
|
content: ({
|
|
1929
2087
|
activityType: import("./message").ActivityType;
|
|
1930
2088
|
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
|
+
} | {
|
|
1931
2100
|
nodes: Record<string, import("./event").IFlowAgentNode>;
|
|
1932
2101
|
task_id: string;
|
|
1933
2102
|
task_name: string;
|
|
@@ -1945,6 +2114,31 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
1945
2114
|
originFileUrl?: string;
|
|
1946
2115
|
url: string;
|
|
1947
2116
|
}[];
|
|
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
|
+
};
|
|
1948
2142
|
role: import("./message").MessageRole.Activity;
|
|
1949
2143
|
id?: string;
|
|
1950
2144
|
messageId?: string;
|
|
@@ -1955,6 +2149,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
1955
2149
|
content?: string;
|
|
1956
2150
|
property?: {
|
|
1957
2151
|
[x: string]: unknown;
|
|
2152
|
+
artifacts?: {
|
|
2153
|
+
name: string;
|
|
2154
|
+
outputId: string;
|
|
2155
|
+
size: number;
|
|
2156
|
+
type: string;
|
|
2157
|
+
previewUrl?: string;
|
|
2158
|
+
url?: string;
|
|
2159
|
+
}[];
|
|
1958
2160
|
extra?: {
|
|
1959
2161
|
[x: string]: unknown;
|
|
1960
2162
|
cite?: string | {
|
|
@@ -2778,6 +2980,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
2778
2980
|
})[];
|
|
2779
2981
|
property?: {
|
|
2780
2982
|
[x: string]: unknown;
|
|
2983
|
+
artifacts?: {
|
|
2984
|
+
name: string;
|
|
2985
|
+
outputId: string;
|
|
2986
|
+
size: number;
|
|
2987
|
+
type: string;
|
|
2988
|
+
previewUrl?: string;
|
|
2989
|
+
url?: string;
|
|
2990
|
+
}[];
|
|
2781
2991
|
extra?: {
|
|
2782
2992
|
[x: string]: unknown;
|
|
2783
2993
|
cite?: string | {
|
|
@@ -2805,6 +3015,17 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
2805
3015
|
value: string | ({
|
|
2806
3016
|
activityType: import("./message").ActivityType;
|
|
2807
3017
|
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
|
+
} | {
|
|
2808
3029
|
nodes: Record<string, import("./event").IFlowAgentNode>;
|
|
2809
3030
|
task_id: string;
|
|
2810
3031
|
task_name: string;
|
|
@@ -2822,6 +3043,31 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
2822
3043
|
originFileUrl?: string;
|
|
2823
3044
|
url: string;
|
|
2824
3045
|
}[];
|
|
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
|
+
};
|
|
2825
3071
|
role: import("./message").MessageRole.Activity;
|
|
2826
3072
|
id?: string;
|
|
2827
3073
|
messageId?: string;
|
|
@@ -2832,6 +3078,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
2832
3078
|
content?: string;
|
|
2833
3079
|
property?: {
|
|
2834
3080
|
[x: string]: unknown;
|
|
3081
|
+
artifacts?: {
|
|
3082
|
+
name: string;
|
|
3083
|
+
outputId: string;
|
|
3084
|
+
size: number;
|
|
3085
|
+
type: string;
|
|
3086
|
+
previewUrl?: string;
|
|
3087
|
+
url?: string;
|
|
3088
|
+
}[];
|
|
2835
3089
|
extra?: {
|
|
2836
3090
|
[x: string]: unknown;
|
|
2837
3091
|
cite?: string | {
|
|
@@ -3655,6 +3909,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
3655
3909
|
})[];
|
|
3656
3910
|
property?: {
|
|
3657
3911
|
[x: string]: unknown;
|
|
3912
|
+
artifacts?: {
|
|
3913
|
+
name: string;
|
|
3914
|
+
outputId: string;
|
|
3915
|
+
size: number;
|
|
3916
|
+
type: string;
|
|
3917
|
+
previewUrl?: string;
|
|
3918
|
+
url?: string;
|
|
3919
|
+
}[];
|
|
3658
3920
|
extra?: {
|
|
3659
3921
|
[x: string]: unknown;
|
|
3660
3922
|
cite?: string | {
|
|
@@ -3703,6 +3965,17 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
3703
3965
|
content: ({
|
|
3704
3966
|
activityType: import("./message").ActivityType;
|
|
3705
3967
|
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
|
+
} | {
|
|
3706
3979
|
nodes: Record<string, import("./event").IFlowAgentNode>;
|
|
3707
3980
|
task_id: string;
|
|
3708
3981
|
task_name: string;
|
|
@@ -3720,6 +3993,31 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
3720
3993
|
originFileUrl?: string;
|
|
3721
3994
|
url: string;
|
|
3722
3995
|
}[];
|
|
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
|
+
};
|
|
3723
4021
|
role: import("./message").MessageRole.Activity;
|
|
3724
4022
|
id?: string;
|
|
3725
4023
|
messageId?: string;
|
|
@@ -3730,6 +4028,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
3730
4028
|
content?: string;
|
|
3731
4029
|
property?: {
|
|
3732
4030
|
[x: string]: unknown;
|
|
4031
|
+
artifacts?: {
|
|
4032
|
+
name: string;
|
|
4033
|
+
outputId: string;
|
|
4034
|
+
size: number;
|
|
4035
|
+
type: string;
|
|
4036
|
+
previewUrl?: string;
|
|
4037
|
+
url?: string;
|
|
4038
|
+
}[];
|
|
3733
4039
|
extra?: {
|
|
3734
4040
|
[x: string]: unknown;
|
|
3735
4041
|
cite?: string | {
|
|
@@ -4553,6 +4859,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
4553
4859
|
})[];
|
|
4554
4860
|
property?: {
|
|
4555
4861
|
[x: string]: unknown;
|
|
4862
|
+
artifacts?: {
|
|
4863
|
+
name: string;
|
|
4864
|
+
outputId: string;
|
|
4865
|
+
size: number;
|
|
4866
|
+
type: string;
|
|
4867
|
+
previewUrl?: string;
|
|
4868
|
+
url?: string;
|
|
4869
|
+
}[];
|
|
4556
4870
|
extra?: {
|
|
4557
4871
|
[x: string]: unknown;
|
|
4558
4872
|
cite?: string | {
|
|
@@ -4580,6 +4894,17 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
4580
4894
|
value: string | ({
|
|
4581
4895
|
activityType: import("./message").ActivityType;
|
|
4582
4896
|
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
|
+
} | {
|
|
4583
4908
|
nodes: Record<string, import("./event").IFlowAgentNode>;
|
|
4584
4909
|
task_id: string;
|
|
4585
4910
|
task_name: string;
|
|
@@ -4597,6 +4922,31 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
4597
4922
|
originFileUrl?: string;
|
|
4598
4923
|
url: string;
|
|
4599
4924
|
}[];
|
|
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
|
+
};
|
|
4600
4950
|
role: import("./message").MessageRole.Activity;
|
|
4601
4951
|
id?: string;
|
|
4602
4952
|
messageId?: string;
|
|
@@ -4607,6 +4957,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
4607
4957
|
content?: string;
|
|
4608
4958
|
property?: {
|
|
4609
4959
|
[x: string]: unknown;
|
|
4960
|
+
artifacts?: {
|
|
4961
|
+
name: string;
|
|
4962
|
+
outputId: string;
|
|
4963
|
+
size: number;
|
|
4964
|
+
type: string;
|
|
4965
|
+
previewUrl?: string;
|
|
4966
|
+
url?: string;
|
|
4967
|
+
}[];
|
|
4610
4968
|
extra?: {
|
|
4611
4969
|
[x: string]: unknown;
|
|
4612
4970
|
cite?: string | {
|
|
@@ -5430,6 +5788,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
5430
5788
|
})[];
|
|
5431
5789
|
property?: {
|
|
5432
5790
|
[x: string]: unknown;
|
|
5791
|
+
artifacts?: {
|
|
5792
|
+
name: string;
|
|
5793
|
+
outputId: string;
|
|
5794
|
+
size: number;
|
|
5795
|
+
type: string;
|
|
5796
|
+
previewUrl?: string;
|
|
5797
|
+
url?: string;
|
|
5798
|
+
}[];
|
|
5433
5799
|
extra?: {
|
|
5434
5800
|
[x: string]: unknown;
|
|
5435
5801
|
cite?: string | {
|
|
@@ -5479,6 +5845,17 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
5479
5845
|
content: ({
|
|
5480
5846
|
activityType: import("./message").ActivityType;
|
|
5481
5847
|
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
|
+
} | {
|
|
5482
5859
|
nodes: Record<string, import("./event").IFlowAgentNode>;
|
|
5483
5860
|
task_id: string;
|
|
5484
5861
|
task_name: string;
|
|
@@ -5496,6 +5873,31 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
5496
5873
|
originFileUrl?: string;
|
|
5497
5874
|
url: string;
|
|
5498
5875
|
}[];
|
|
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
|
+
};
|
|
5499
5901
|
role: import("./message").MessageRole.Activity;
|
|
5500
5902
|
id?: string;
|
|
5501
5903
|
messageId?: string;
|
|
@@ -5506,6 +5908,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
5506
5908
|
content?: string;
|
|
5507
5909
|
property?: {
|
|
5508
5910
|
[x: string]: unknown;
|
|
5911
|
+
artifacts?: {
|
|
5912
|
+
name: string;
|
|
5913
|
+
outputId: string;
|
|
5914
|
+
size: number;
|
|
5915
|
+
type: string;
|
|
5916
|
+
previewUrl?: string;
|
|
5917
|
+
url?: string;
|
|
5918
|
+
}[];
|
|
5509
5919
|
extra?: {
|
|
5510
5920
|
[x: string]: unknown;
|
|
5511
5921
|
cite?: string | {
|
|
@@ -6329,6 +6739,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
6329
6739
|
})[];
|
|
6330
6740
|
property?: {
|
|
6331
6741
|
[x: string]: unknown;
|
|
6742
|
+
artifacts?: {
|
|
6743
|
+
name: string;
|
|
6744
|
+
outputId: string;
|
|
6745
|
+
size: number;
|
|
6746
|
+
type: string;
|
|
6747
|
+
previewUrl?: string;
|
|
6748
|
+
url?: string;
|
|
6749
|
+
}[];
|
|
6332
6750
|
extra?: {
|
|
6333
6751
|
[x: string]: unknown;
|
|
6334
6752
|
cite?: string | {
|
|
@@ -6356,6 +6774,17 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
6356
6774
|
value: string | ({
|
|
6357
6775
|
activityType: import("./message").ActivityType;
|
|
6358
6776
|
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
|
+
} | {
|
|
6359
6788
|
nodes: Record<string, import("./event").IFlowAgentNode>;
|
|
6360
6789
|
task_id: string;
|
|
6361
6790
|
task_name: string;
|
|
@@ -6373,6 +6802,31 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
6373
6802
|
originFileUrl?: string;
|
|
6374
6803
|
url: string;
|
|
6375
6804
|
}[];
|
|
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
|
+
};
|
|
6376
6830
|
role: import("./message").MessageRole.Activity;
|
|
6377
6831
|
id?: string;
|
|
6378
6832
|
messageId?: string;
|
|
@@ -6383,6 +6837,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
6383
6837
|
content?: string;
|
|
6384
6838
|
property?: {
|
|
6385
6839
|
[x: string]: unknown;
|
|
6840
|
+
artifacts?: {
|
|
6841
|
+
name: string;
|
|
6842
|
+
outputId: string;
|
|
6843
|
+
size: number;
|
|
6844
|
+
type: string;
|
|
6845
|
+
previewUrl?: string;
|
|
6846
|
+
url?: string;
|
|
6847
|
+
}[];
|
|
6386
6848
|
extra?: {
|
|
6387
6849
|
[x: string]: unknown;
|
|
6388
6850
|
cite?: string | {
|
|
@@ -7206,6 +7668,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
7206
7668
|
})[];
|
|
7207
7669
|
property?: {
|
|
7208
7670
|
[x: string]: unknown;
|
|
7671
|
+
artifacts?: {
|
|
7672
|
+
name: string;
|
|
7673
|
+
outputId: string;
|
|
7674
|
+
size: number;
|
|
7675
|
+
type: string;
|
|
7676
|
+
previewUrl?: string;
|
|
7677
|
+
url?: string;
|
|
7678
|
+
}[];
|
|
7209
7679
|
extra?: {
|
|
7210
7680
|
[x: string]: unknown;
|
|
7211
7681
|
cite?: string | {
|
|
@@ -7254,6 +7724,17 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
7254
7724
|
content: ({
|
|
7255
7725
|
activityType: import("./message").ActivityType;
|
|
7256
7726
|
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
|
+
} | {
|
|
7257
7738
|
nodes: Record<string, import("./event").IFlowAgentNode>;
|
|
7258
7739
|
task_id: string;
|
|
7259
7740
|
task_name: string;
|
|
@@ -7271,6 +7752,31 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
7271
7752
|
originFileUrl?: string;
|
|
7272
7753
|
url: string;
|
|
7273
7754
|
}[];
|
|
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
|
+
};
|
|
7274
7780
|
role: import("./message").MessageRole.Activity;
|
|
7275
7781
|
id?: string;
|
|
7276
7782
|
messageId?: string;
|
|
@@ -7281,6 +7787,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
7281
7787
|
content?: string;
|
|
7282
7788
|
property?: {
|
|
7283
7789
|
[x: string]: unknown;
|
|
7790
|
+
artifacts?: {
|
|
7791
|
+
name: string;
|
|
7792
|
+
outputId: string;
|
|
7793
|
+
size: number;
|
|
7794
|
+
type: string;
|
|
7795
|
+
previewUrl?: string;
|
|
7796
|
+
url?: string;
|
|
7797
|
+
}[];
|
|
7284
7798
|
extra?: {
|
|
7285
7799
|
[x: string]: unknown;
|
|
7286
7800
|
cite?: string | {
|
|
@@ -8104,6 +8618,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
8104
8618
|
})[];
|
|
8105
8619
|
property?: {
|
|
8106
8620
|
[x: string]: unknown;
|
|
8621
|
+
artifacts?: {
|
|
8622
|
+
name: string;
|
|
8623
|
+
outputId: string;
|
|
8624
|
+
size: number;
|
|
8625
|
+
type: string;
|
|
8626
|
+
previewUrl?: string;
|
|
8627
|
+
url?: string;
|
|
8628
|
+
}[];
|
|
8107
8629
|
extra?: {
|
|
8108
8630
|
[x: string]: unknown;
|
|
8109
8631
|
cite?: string | {
|
|
@@ -8131,6 +8653,17 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
8131
8653
|
value: string | ({
|
|
8132
8654
|
activityType: import("./message").ActivityType;
|
|
8133
8655
|
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
|
+
} | {
|
|
8134
8667
|
nodes: Record<string, import("./event").IFlowAgentNode>;
|
|
8135
8668
|
task_id: string;
|
|
8136
8669
|
task_name: string;
|
|
@@ -8148,6 +8681,31 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
8148
8681
|
originFileUrl?: string;
|
|
8149
8682
|
url: string;
|
|
8150
8683
|
}[];
|
|
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
|
+
};
|
|
8151
8709
|
role: import("./message").MessageRole.Activity;
|
|
8152
8710
|
id?: string;
|
|
8153
8711
|
messageId?: string;
|
|
@@ -8158,6 +8716,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
8158
8716
|
content?: string;
|
|
8159
8717
|
property?: {
|
|
8160
8718
|
[x: string]: unknown;
|
|
8719
|
+
artifacts?: {
|
|
8720
|
+
name: string;
|
|
8721
|
+
outputId: string;
|
|
8722
|
+
size: number;
|
|
8723
|
+
type: string;
|
|
8724
|
+
previewUrl?: string;
|
|
8725
|
+
url?: string;
|
|
8726
|
+
}[];
|
|
8161
8727
|
extra?: {
|
|
8162
8728
|
[x: string]: unknown;
|
|
8163
8729
|
cite?: string | {
|
|
@@ -8981,6 +9547,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
8981
9547
|
})[];
|
|
8982
9548
|
property?: {
|
|
8983
9549
|
[x: string]: unknown;
|
|
9550
|
+
artifacts?: {
|
|
9551
|
+
name: string;
|
|
9552
|
+
outputId: string;
|
|
9553
|
+
size: number;
|
|
9554
|
+
type: string;
|
|
9555
|
+
previewUrl?: string;
|
|
9556
|
+
url?: string;
|
|
9557
|
+
}[];
|
|
8984
9558
|
extra?: {
|
|
8985
9559
|
[x: string]: unknown;
|
|
8986
9560
|
cite?: string | {
|
|
@@ -9046,12 +9620,24 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
9046
9620
|
uploadFile: (sessionCode: string, file: File) => Promise<{
|
|
9047
9621
|
download_url?: string;
|
|
9048
9622
|
}>;
|
|
9623
|
+
getPvFileDownloadUrl: (sessionCode: string, path: string, options?: import("./session").GetPvFileDownloadUrlOptions) => Promise<import("./session").IPvFileDownloadUrlResult>;
|
|
9049
9624
|
reset: () => void;
|
|
9050
9625
|
};
|
|
9051
9626
|
message: {
|
|
9052
9627
|
list: import("vue").Ref<({
|
|
9053
9628
|
activityType: import("./message").ActivityType;
|
|
9054
9629
|
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
|
+
} | {
|
|
9055
9641
|
nodes: Record<string, import("./event").IFlowAgentNode>;
|
|
9056
9642
|
task_id: string;
|
|
9057
9643
|
task_name: string;
|
|
@@ -9069,6 +9655,31 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
9069
9655
|
originFileUrl?: string;
|
|
9070
9656
|
url: string;
|
|
9071
9657
|
}[];
|
|
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
|
+
};
|
|
9072
9683
|
role: import("./message").MessageRole.Activity;
|
|
9073
9684
|
id?: string;
|
|
9074
9685
|
messageId?: string;
|
|
@@ -9079,6 +9690,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
9079
9690
|
content?: string;
|
|
9080
9691
|
property?: {
|
|
9081
9692
|
[x: string]: unknown;
|
|
9693
|
+
artifacts?: {
|
|
9694
|
+
name: string;
|
|
9695
|
+
outputId: string;
|
|
9696
|
+
size: number;
|
|
9697
|
+
type: string;
|
|
9698
|
+
previewUrl?: string;
|
|
9699
|
+
url?: string;
|
|
9700
|
+
}[];
|
|
9082
9701
|
extra?: {
|
|
9083
9702
|
[x: string]: unknown;
|
|
9084
9703
|
cite?: string | {
|
|
@@ -9902,6 +10521,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
9902
10521
|
})[];
|
|
9903
10522
|
property?: {
|
|
9904
10523
|
[x: string]: unknown;
|
|
10524
|
+
artifacts?: {
|
|
10525
|
+
name: string;
|
|
10526
|
+
outputId: string;
|
|
10527
|
+
size: number;
|
|
10528
|
+
type: string;
|
|
10529
|
+
previewUrl?: string;
|
|
10530
|
+
url?: string;
|
|
10531
|
+
}[];
|
|
9905
10532
|
extra?: {
|
|
9906
10533
|
[x: string]: unknown;
|
|
9907
10534
|
cite?: string | {
|
|
@@ -9926,6 +10553,17 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
9926
10553
|
})[], import("./message").IMessage[] | ({
|
|
9927
10554
|
activityType: import("./message").ActivityType;
|
|
9928
10555
|
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
|
+
} | {
|
|
9929
10567
|
nodes: Record<string, import("./event").IFlowAgentNode>;
|
|
9930
10568
|
task_id: string;
|
|
9931
10569
|
task_name: string;
|
|
@@ -9943,6 +10581,31 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
9943
10581
|
originFileUrl?: string;
|
|
9944
10582
|
url: string;
|
|
9945
10583
|
}[];
|
|
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
|
+
};
|
|
9946
10609
|
role: import("./message").MessageRole.Activity;
|
|
9947
10610
|
id?: string;
|
|
9948
10611
|
messageId?: string;
|
|
@@ -9953,6 +10616,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
9953
10616
|
content?: string;
|
|
9954
10617
|
property?: {
|
|
9955
10618
|
[x: string]: unknown;
|
|
10619
|
+
artifacts?: {
|
|
10620
|
+
name: string;
|
|
10621
|
+
outputId: string;
|
|
10622
|
+
size: number;
|
|
10623
|
+
type: string;
|
|
10624
|
+
previewUrl?: string;
|
|
10625
|
+
url?: string;
|
|
10626
|
+
}[];
|
|
9956
10627
|
extra?: {
|
|
9957
10628
|
[x: string]: unknown;
|
|
9958
10629
|
cite?: string | {
|
|
@@ -10776,6 +11447,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
10776
11447
|
})[];
|
|
10777
11448
|
property?: {
|
|
10778
11449
|
[x: string]: unknown;
|
|
11450
|
+
artifacts?: {
|
|
11451
|
+
name: string;
|
|
11452
|
+
outputId: string;
|
|
11453
|
+
size: number;
|
|
11454
|
+
type: string;
|
|
11455
|
+
previewUrl?: string;
|
|
11456
|
+
url?: string;
|
|
11457
|
+
}[];
|
|
10779
11458
|
extra?: {
|
|
10780
11459
|
[x: string]: unknown;
|
|
10781
11460
|
cite?: string | {
|
|
@@ -10805,6 +11484,17 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
10805
11484
|
getCurrentLoadingMessage: () => {
|
|
10806
11485
|
activityType: import("./message").ActivityType;
|
|
10807
11486
|
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
|
+
} | {
|
|
10808
11498
|
nodes: Record<string, import("./event").IFlowAgentNode>;
|
|
10809
11499
|
task_id: string;
|
|
10810
11500
|
task_name: string;
|
|
@@ -10822,6 +11512,31 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
10822
11512
|
originFileUrl?: string;
|
|
10823
11513
|
url: string;
|
|
10824
11514
|
}[];
|
|
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
|
+
};
|
|
10825
11540
|
role: import("./message").MessageRole.Activity;
|
|
10826
11541
|
id?: string;
|
|
10827
11542
|
messageId?: string;
|
|
@@ -10832,6 +11547,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
10832
11547
|
content?: string;
|
|
10833
11548
|
property?: {
|
|
10834
11549
|
[x: string]: unknown;
|
|
11550
|
+
artifacts?: {
|
|
11551
|
+
name: string;
|
|
11552
|
+
outputId: string;
|
|
11553
|
+
size: number;
|
|
11554
|
+
type: string;
|
|
11555
|
+
previewUrl?: string;
|
|
11556
|
+
url?: string;
|
|
11557
|
+
}[];
|
|
10835
11558
|
extra?: {
|
|
10836
11559
|
[x: string]: unknown;
|
|
10837
11560
|
cite?: string | {
|
|
@@ -11655,6 +12378,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
11655
12378
|
})[];
|
|
11656
12379
|
property?: {
|
|
11657
12380
|
[x: string]: unknown;
|
|
12381
|
+
artifacts?: {
|
|
12382
|
+
name: string;
|
|
12383
|
+
outputId: string;
|
|
12384
|
+
size: number;
|
|
12385
|
+
type: string;
|
|
12386
|
+
previewUrl?: string;
|
|
12387
|
+
url?: string;
|
|
12388
|
+
}[];
|
|
11658
12389
|
extra?: {
|
|
11659
12390
|
[x: string]: unknown;
|
|
11660
12391
|
cite?: string | {
|
|
@@ -11680,6 +12411,17 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
11680
12411
|
getMessageByMessageId: (id: string) => {
|
|
11681
12412
|
activityType: import("./message").ActivityType;
|
|
11682
12413
|
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
|
+
} | {
|
|
11683
12425
|
nodes: Record<string, import("./event").IFlowAgentNode>;
|
|
11684
12426
|
task_id: string;
|
|
11685
12427
|
task_name: string;
|
|
@@ -11697,6 +12439,31 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
11697
12439
|
originFileUrl?: string;
|
|
11698
12440
|
url: string;
|
|
11699
12441
|
}[];
|
|
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
|
+
};
|
|
11700
12467
|
role: import("./message").MessageRole.Activity;
|
|
11701
12468
|
id?: string;
|
|
11702
12469
|
messageId?: string;
|
|
@@ -11707,6 +12474,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
11707
12474
|
content?: string;
|
|
11708
12475
|
property?: {
|
|
11709
12476
|
[x: string]: unknown;
|
|
12477
|
+
artifacts?: {
|
|
12478
|
+
name: string;
|
|
12479
|
+
outputId: string;
|
|
12480
|
+
size: number;
|
|
12481
|
+
type: string;
|
|
12482
|
+
previewUrl?: string;
|
|
12483
|
+
url?: string;
|
|
12484
|
+
}[];
|
|
11710
12485
|
extra?: {
|
|
11711
12486
|
[x: string]: unknown;
|
|
11712
12487
|
cite?: string | {
|
|
@@ -12530,6 +13305,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
12530
13305
|
})[];
|
|
12531
13306
|
property?: {
|
|
12532
13307
|
[x: string]: unknown;
|
|
13308
|
+
artifacts?: {
|
|
13309
|
+
name: string;
|
|
13310
|
+
outputId: string;
|
|
13311
|
+
size: number;
|
|
13312
|
+
type: string;
|
|
13313
|
+
previewUrl?: string;
|
|
13314
|
+
url?: string;
|
|
13315
|
+
}[];
|
|
12533
13316
|
extra?: {
|
|
12534
13317
|
[x: string]: unknown;
|
|
12535
13318
|
cite?: string | {
|
|
@@ -12566,6 +13349,7 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
12566
13349
|
onError: (handler: import("./http").GlobalErrorHandler, options?: import("./http").ErrorHandlerOptions) => void;
|
|
12567
13350
|
agent: {
|
|
12568
13351
|
getAgentInfo: (config?: import("./http").IRequestConfig) => Promise<import("./agent").IAgentInfo>;
|
|
13352
|
+
getLlms: (params?: import("./agent").ILlmListQuery, config?: import("./http").IRequestConfig) => Promise<import("./agent").ILlmItem[]>;
|
|
12569
13353
|
};
|
|
12570
13354
|
session: {
|
|
12571
13355
|
clearSession: (sessionCode: string, config?: import("./http").IRequestConfig) => Promise<unknown>;
|
|
@@ -12592,6 +13376,7 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
12592
13376
|
uploadFile: (sessionCode: string, file: File, config?: import("./http").IRequestConfig) => Promise<{
|
|
12593
13377
|
download_url?: string;
|
|
12594
13378
|
}>;
|
|
13379
|
+
getPvFileDownloadUrl: (sessionCode: string, path: string, options?: import("./session").GetPvFileDownloadUrlOptions, config?: import("./http").IRequestConfig) => Promise<import("./session").IPvFileDownloadUrlResult>;
|
|
12595
13380
|
isResumeSession: (sessionCode: string, config?: import("./http").IRequestConfig) => Promise<boolean>;
|
|
12596
13381
|
};
|
|
12597
13382
|
message: {
|