@blueking/chat-helper 0.0.12-beta.10 → 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 +170 -10
- package/dist/agent/use-agent.ts.js +257 -17
- package/dist/event/ag-ui.d.ts +3 -0
- package/dist/event/ag-ui.ts.js +42 -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 +792 -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,24 +1991,79 @@ 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, }: {
|
|
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;
|
|
1906
2064
|
input?: string;
|
|
1907
2065
|
lastMessageId?: string;
|
|
2066
|
+
isReconnect?: boolean;
|
|
1908
2067
|
}) => Promise<void>;
|
|
1909
2068
|
};
|
|
1910
2069
|
session: {
|
|
@@ -1927,6 +2086,17 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
1927
2086
|
content: ({
|
|
1928
2087
|
activityType: import("./message").ActivityType;
|
|
1929
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
|
+
} | {
|
|
1930
2100
|
nodes: Record<string, import("./event").IFlowAgentNode>;
|
|
1931
2101
|
task_id: string;
|
|
1932
2102
|
task_name: string;
|
|
@@ -1944,6 +2114,31 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
1944
2114
|
originFileUrl?: string;
|
|
1945
2115
|
url: string;
|
|
1946
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
|
+
};
|
|
1947
2142
|
role: import("./message").MessageRole.Activity;
|
|
1948
2143
|
id?: string;
|
|
1949
2144
|
messageId?: string;
|
|
@@ -1954,6 +2149,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
1954
2149
|
content?: string;
|
|
1955
2150
|
property?: {
|
|
1956
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
|
+
}[];
|
|
1957
2160
|
extra?: {
|
|
1958
2161
|
[x: string]: unknown;
|
|
1959
2162
|
cite?: string | {
|
|
@@ -2777,6 +2980,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
2777
2980
|
})[];
|
|
2778
2981
|
property?: {
|
|
2779
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
|
+
}[];
|
|
2780
2991
|
extra?: {
|
|
2781
2992
|
[x: string]: unknown;
|
|
2782
2993
|
cite?: string | {
|
|
@@ -2804,6 +3015,17 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
2804
3015
|
value: string | ({
|
|
2805
3016
|
activityType: import("./message").ActivityType;
|
|
2806
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
|
+
} | {
|
|
2807
3029
|
nodes: Record<string, import("./event").IFlowAgentNode>;
|
|
2808
3030
|
task_id: string;
|
|
2809
3031
|
task_name: string;
|
|
@@ -2821,6 +3043,31 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
2821
3043
|
originFileUrl?: string;
|
|
2822
3044
|
url: string;
|
|
2823
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
|
+
};
|
|
2824
3071
|
role: import("./message").MessageRole.Activity;
|
|
2825
3072
|
id?: string;
|
|
2826
3073
|
messageId?: string;
|
|
@@ -2831,6 +3078,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
2831
3078
|
content?: string;
|
|
2832
3079
|
property?: {
|
|
2833
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
|
+
}[];
|
|
2834
3089
|
extra?: {
|
|
2835
3090
|
[x: string]: unknown;
|
|
2836
3091
|
cite?: string | {
|
|
@@ -3654,6 +3909,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
3654
3909
|
})[];
|
|
3655
3910
|
property?: {
|
|
3656
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
|
+
}[];
|
|
3657
3920
|
extra?: {
|
|
3658
3921
|
[x: string]: unknown;
|
|
3659
3922
|
cite?: string | {
|
|
@@ -3702,6 +3965,17 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
3702
3965
|
content: ({
|
|
3703
3966
|
activityType: import("./message").ActivityType;
|
|
3704
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
|
+
} | {
|
|
3705
3979
|
nodes: Record<string, import("./event").IFlowAgentNode>;
|
|
3706
3980
|
task_id: string;
|
|
3707
3981
|
task_name: string;
|
|
@@ -3719,6 +3993,31 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
3719
3993
|
originFileUrl?: string;
|
|
3720
3994
|
url: string;
|
|
3721
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
|
+
};
|
|
3722
4021
|
role: import("./message").MessageRole.Activity;
|
|
3723
4022
|
id?: string;
|
|
3724
4023
|
messageId?: string;
|
|
@@ -3729,6 +4028,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
3729
4028
|
content?: string;
|
|
3730
4029
|
property?: {
|
|
3731
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
|
+
}[];
|
|
3732
4039
|
extra?: {
|
|
3733
4040
|
[x: string]: unknown;
|
|
3734
4041
|
cite?: string | {
|
|
@@ -4552,6 +4859,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
4552
4859
|
})[];
|
|
4553
4860
|
property?: {
|
|
4554
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
|
+
}[];
|
|
4555
4870
|
extra?: {
|
|
4556
4871
|
[x: string]: unknown;
|
|
4557
4872
|
cite?: string | {
|
|
@@ -4579,6 +4894,17 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
4579
4894
|
value: string | ({
|
|
4580
4895
|
activityType: import("./message").ActivityType;
|
|
4581
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
|
+
} | {
|
|
4582
4908
|
nodes: Record<string, import("./event").IFlowAgentNode>;
|
|
4583
4909
|
task_id: string;
|
|
4584
4910
|
task_name: string;
|
|
@@ -4596,6 +4922,31 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
4596
4922
|
originFileUrl?: string;
|
|
4597
4923
|
url: string;
|
|
4598
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
|
+
};
|
|
4599
4950
|
role: import("./message").MessageRole.Activity;
|
|
4600
4951
|
id?: string;
|
|
4601
4952
|
messageId?: string;
|
|
@@ -4606,6 +4957,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
4606
4957
|
content?: string;
|
|
4607
4958
|
property?: {
|
|
4608
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
|
+
}[];
|
|
4609
4968
|
extra?: {
|
|
4610
4969
|
[x: string]: unknown;
|
|
4611
4970
|
cite?: string | {
|
|
@@ -5429,6 +5788,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
5429
5788
|
})[];
|
|
5430
5789
|
property?: {
|
|
5431
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
|
+
}[];
|
|
5432
5799
|
extra?: {
|
|
5433
5800
|
[x: string]: unknown;
|
|
5434
5801
|
cite?: string | {
|
|
@@ -5478,6 +5845,17 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
5478
5845
|
content: ({
|
|
5479
5846
|
activityType: import("./message").ActivityType;
|
|
5480
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
|
+
} | {
|
|
5481
5859
|
nodes: Record<string, import("./event").IFlowAgentNode>;
|
|
5482
5860
|
task_id: string;
|
|
5483
5861
|
task_name: string;
|
|
@@ -5495,6 +5873,31 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
5495
5873
|
originFileUrl?: string;
|
|
5496
5874
|
url: string;
|
|
5497
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
|
+
};
|
|
5498
5901
|
role: import("./message").MessageRole.Activity;
|
|
5499
5902
|
id?: string;
|
|
5500
5903
|
messageId?: string;
|
|
@@ -5505,6 +5908,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
5505
5908
|
content?: string;
|
|
5506
5909
|
property?: {
|
|
5507
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
|
+
}[];
|
|
5508
5919
|
extra?: {
|
|
5509
5920
|
[x: string]: unknown;
|
|
5510
5921
|
cite?: string | {
|
|
@@ -6328,6 +6739,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
6328
6739
|
})[];
|
|
6329
6740
|
property?: {
|
|
6330
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
|
+
}[];
|
|
6331
6750
|
extra?: {
|
|
6332
6751
|
[x: string]: unknown;
|
|
6333
6752
|
cite?: string | {
|
|
@@ -6355,6 +6774,17 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
6355
6774
|
value: string | ({
|
|
6356
6775
|
activityType: import("./message").ActivityType;
|
|
6357
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
|
+
} | {
|
|
6358
6788
|
nodes: Record<string, import("./event").IFlowAgentNode>;
|
|
6359
6789
|
task_id: string;
|
|
6360
6790
|
task_name: string;
|
|
@@ -6372,6 +6802,31 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
6372
6802
|
originFileUrl?: string;
|
|
6373
6803
|
url: string;
|
|
6374
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
|
+
};
|
|
6375
6830
|
role: import("./message").MessageRole.Activity;
|
|
6376
6831
|
id?: string;
|
|
6377
6832
|
messageId?: string;
|
|
@@ -6382,6 +6837,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
6382
6837
|
content?: string;
|
|
6383
6838
|
property?: {
|
|
6384
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
|
+
}[];
|
|
6385
6848
|
extra?: {
|
|
6386
6849
|
[x: string]: unknown;
|
|
6387
6850
|
cite?: string | {
|
|
@@ -7205,6 +7668,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
7205
7668
|
})[];
|
|
7206
7669
|
property?: {
|
|
7207
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
|
+
}[];
|
|
7208
7679
|
extra?: {
|
|
7209
7680
|
[x: string]: unknown;
|
|
7210
7681
|
cite?: string | {
|
|
@@ -7253,6 +7724,17 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
7253
7724
|
content: ({
|
|
7254
7725
|
activityType: import("./message").ActivityType;
|
|
7255
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
|
+
} | {
|
|
7256
7738
|
nodes: Record<string, import("./event").IFlowAgentNode>;
|
|
7257
7739
|
task_id: string;
|
|
7258
7740
|
task_name: string;
|
|
@@ -7270,6 +7752,31 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
7270
7752
|
originFileUrl?: string;
|
|
7271
7753
|
url: string;
|
|
7272
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
|
+
};
|
|
7273
7780
|
role: import("./message").MessageRole.Activity;
|
|
7274
7781
|
id?: string;
|
|
7275
7782
|
messageId?: string;
|
|
@@ -7280,6 +7787,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
7280
7787
|
content?: string;
|
|
7281
7788
|
property?: {
|
|
7282
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
|
+
}[];
|
|
7283
7798
|
extra?: {
|
|
7284
7799
|
[x: string]: unknown;
|
|
7285
7800
|
cite?: string | {
|
|
@@ -8103,6 +8618,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
8103
8618
|
})[];
|
|
8104
8619
|
property?: {
|
|
8105
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
|
+
}[];
|
|
8106
8629
|
extra?: {
|
|
8107
8630
|
[x: string]: unknown;
|
|
8108
8631
|
cite?: string | {
|
|
@@ -8130,6 +8653,17 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
8130
8653
|
value: string | ({
|
|
8131
8654
|
activityType: import("./message").ActivityType;
|
|
8132
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
|
+
} | {
|
|
8133
8667
|
nodes: Record<string, import("./event").IFlowAgentNode>;
|
|
8134
8668
|
task_id: string;
|
|
8135
8669
|
task_name: string;
|
|
@@ -8147,6 +8681,31 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
8147
8681
|
originFileUrl?: string;
|
|
8148
8682
|
url: string;
|
|
8149
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
|
+
};
|
|
8150
8709
|
role: import("./message").MessageRole.Activity;
|
|
8151
8710
|
id?: string;
|
|
8152
8711
|
messageId?: string;
|
|
@@ -8157,6 +8716,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
8157
8716
|
content?: string;
|
|
8158
8717
|
property?: {
|
|
8159
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
|
+
}[];
|
|
8160
8727
|
extra?: {
|
|
8161
8728
|
[x: string]: unknown;
|
|
8162
8729
|
cite?: string | {
|
|
@@ -8980,6 +9547,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
8980
9547
|
})[];
|
|
8981
9548
|
property?: {
|
|
8982
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
|
+
}[];
|
|
8983
9558
|
extra?: {
|
|
8984
9559
|
[x: string]: unknown;
|
|
8985
9560
|
cite?: string | {
|
|
@@ -9045,12 +9620,24 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
9045
9620
|
uploadFile: (sessionCode: string, file: File) => Promise<{
|
|
9046
9621
|
download_url?: string;
|
|
9047
9622
|
}>;
|
|
9623
|
+
getPvFileDownloadUrl: (sessionCode: string, path: string, options?: import("./session").GetPvFileDownloadUrlOptions) => Promise<import("./session").IPvFileDownloadUrlResult>;
|
|
9048
9624
|
reset: () => void;
|
|
9049
9625
|
};
|
|
9050
9626
|
message: {
|
|
9051
9627
|
list: import("vue").Ref<({
|
|
9052
9628
|
activityType: import("./message").ActivityType;
|
|
9053
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
|
+
} | {
|
|
9054
9641
|
nodes: Record<string, import("./event").IFlowAgentNode>;
|
|
9055
9642
|
task_id: string;
|
|
9056
9643
|
task_name: string;
|
|
@@ -9068,6 +9655,31 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
9068
9655
|
originFileUrl?: string;
|
|
9069
9656
|
url: string;
|
|
9070
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
|
+
};
|
|
9071
9683
|
role: import("./message").MessageRole.Activity;
|
|
9072
9684
|
id?: string;
|
|
9073
9685
|
messageId?: string;
|
|
@@ -9078,6 +9690,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
9078
9690
|
content?: string;
|
|
9079
9691
|
property?: {
|
|
9080
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
|
+
}[];
|
|
9081
9701
|
extra?: {
|
|
9082
9702
|
[x: string]: unknown;
|
|
9083
9703
|
cite?: string | {
|
|
@@ -9901,6 +10521,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
9901
10521
|
})[];
|
|
9902
10522
|
property?: {
|
|
9903
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
|
+
}[];
|
|
9904
10532
|
extra?: {
|
|
9905
10533
|
[x: string]: unknown;
|
|
9906
10534
|
cite?: string | {
|
|
@@ -9925,6 +10553,17 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
9925
10553
|
})[], import("./message").IMessage[] | ({
|
|
9926
10554
|
activityType: import("./message").ActivityType;
|
|
9927
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
|
+
} | {
|
|
9928
10567
|
nodes: Record<string, import("./event").IFlowAgentNode>;
|
|
9929
10568
|
task_id: string;
|
|
9930
10569
|
task_name: string;
|
|
@@ -9942,6 +10581,31 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
9942
10581
|
originFileUrl?: string;
|
|
9943
10582
|
url: string;
|
|
9944
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
|
+
};
|
|
9945
10609
|
role: import("./message").MessageRole.Activity;
|
|
9946
10610
|
id?: string;
|
|
9947
10611
|
messageId?: string;
|
|
@@ -9952,6 +10616,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
9952
10616
|
content?: string;
|
|
9953
10617
|
property?: {
|
|
9954
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
|
+
}[];
|
|
9955
10627
|
extra?: {
|
|
9956
10628
|
[x: string]: unknown;
|
|
9957
10629
|
cite?: string | {
|
|
@@ -10775,6 +11447,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
10775
11447
|
})[];
|
|
10776
11448
|
property?: {
|
|
10777
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
|
+
}[];
|
|
10778
11458
|
extra?: {
|
|
10779
11459
|
[x: string]: unknown;
|
|
10780
11460
|
cite?: string | {
|
|
@@ -10804,6 +11484,17 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
10804
11484
|
getCurrentLoadingMessage: () => {
|
|
10805
11485
|
activityType: import("./message").ActivityType;
|
|
10806
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
|
+
} | {
|
|
10807
11498
|
nodes: Record<string, import("./event").IFlowAgentNode>;
|
|
10808
11499
|
task_id: string;
|
|
10809
11500
|
task_name: string;
|
|
@@ -10821,6 +11512,31 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
10821
11512
|
originFileUrl?: string;
|
|
10822
11513
|
url: string;
|
|
10823
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
|
+
};
|
|
10824
11540
|
role: import("./message").MessageRole.Activity;
|
|
10825
11541
|
id?: string;
|
|
10826
11542
|
messageId?: string;
|
|
@@ -10831,6 +11547,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
10831
11547
|
content?: string;
|
|
10832
11548
|
property?: {
|
|
10833
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
|
+
}[];
|
|
10834
11558
|
extra?: {
|
|
10835
11559
|
[x: string]: unknown;
|
|
10836
11560
|
cite?: string | {
|
|
@@ -11654,6 +12378,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
11654
12378
|
})[];
|
|
11655
12379
|
property?: {
|
|
11656
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
|
+
}[];
|
|
11657
12389
|
extra?: {
|
|
11658
12390
|
[x: string]: unknown;
|
|
11659
12391
|
cite?: string | {
|
|
@@ -11679,6 +12411,17 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
11679
12411
|
getMessageByMessageId: (id: string) => {
|
|
11680
12412
|
activityType: import("./message").ActivityType;
|
|
11681
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
|
+
} | {
|
|
11682
12425
|
nodes: Record<string, import("./event").IFlowAgentNode>;
|
|
11683
12426
|
task_id: string;
|
|
11684
12427
|
task_name: string;
|
|
@@ -11696,6 +12439,31 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
11696
12439
|
originFileUrl?: string;
|
|
11697
12440
|
url: string;
|
|
11698
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
|
+
};
|
|
11699
12467
|
role: import("./message").MessageRole.Activity;
|
|
11700
12468
|
id?: string;
|
|
11701
12469
|
messageId?: string;
|
|
@@ -11706,6 +12474,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
11706
12474
|
content?: string;
|
|
11707
12475
|
property?: {
|
|
11708
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
|
+
}[];
|
|
11709
12485
|
extra?: {
|
|
11710
12486
|
[x: string]: unknown;
|
|
11711
12487
|
cite?: string | {
|
|
@@ -12529,6 +13305,14 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
12529
13305
|
})[];
|
|
12530
13306
|
property?: {
|
|
12531
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
|
+
}[];
|
|
12532
13316
|
extra?: {
|
|
12533
13317
|
[x: string]: unknown;
|
|
12534
13318
|
cite?: string | {
|
|
@@ -12565,6 +13349,7 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
12565
13349
|
onError: (handler: import("./http").GlobalErrorHandler, options?: import("./http").ErrorHandlerOptions) => void;
|
|
12566
13350
|
agent: {
|
|
12567
13351
|
getAgentInfo: (config?: import("./http").IRequestConfig) => Promise<import("./agent").IAgentInfo>;
|
|
13352
|
+
getLlms: (params?: import("./agent").ILlmListQuery, config?: import("./http").IRequestConfig) => Promise<import("./agent").ILlmItem[]>;
|
|
12568
13353
|
};
|
|
12569
13354
|
session: {
|
|
12570
13355
|
clearSession: (sessionCode: string, config?: import("./http").IRequestConfig) => Promise<unknown>;
|
|
@@ -12591,6 +13376,7 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
12591
13376
|
uploadFile: (sessionCode: string, file: File, config?: import("./http").IRequestConfig) => Promise<{
|
|
12592
13377
|
download_url?: string;
|
|
12593
13378
|
}>;
|
|
13379
|
+
getPvFileDownloadUrl: (sessionCode: string, path: string, options?: import("./session").GetPvFileDownloadUrlOptions, config?: import("./http").IRequestConfig) => Promise<import("./session").IPvFileDownloadUrlResult>;
|
|
12594
13380
|
isResumeSession: (sessionCode: string, config?: import("./http").IRequestConfig) => Promise<boolean>;
|
|
12595
13381
|
};
|
|
12596
13382
|
message: {
|