@theia/ai-chat 1.46.0-next.241
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 +31 -0
- package/lib/browser/ai-chat-frontend-module.d.ts +4 -0
- package/lib/browser/ai-chat-frontend-module.d.ts.map +1 -0
- package/lib/browser/ai-chat-frontend-module.js +79 -0
- package/lib/browser/ai-chat-frontend-module.js.map +1 -0
- package/lib/browser/ai-chat-preferences.d.ts +4 -0
- package/lib/browser/ai-chat-preferences.d.ts.map +1 -0
- package/lib/browser/ai-chat-preferences.js +32 -0
- package/lib/browser/ai-chat-preferences.js.map +1 -0
- package/lib/browser/custom-agent-factory.d.ts +4 -0
- package/lib/browser/custom-agent-factory.d.ts.map +1 -0
- package/lib/browser/custom-agent-factory.js +20 -0
- package/lib/browser/custom-agent-factory.js.map +1 -0
- package/lib/browser/custom-agent-frontend-application-contribution.d.ts +13 -0
- package/lib/browser/custom-agent-frontend-application-contribution.d.ts.map +1 -0
- package/lib/browser/custom-agent-frontend-application-contribution.js +82 -0
- package/lib/browser/custom-agent-frontend-application-contribution.js.map +1 -0
- package/lib/browser/frontend-chat-service.d.ts +8 -0
- package/lib/browser/frontend-chat-service.d.ts.map +1 -0
- package/lib/browser/frontend-chat-service.js +67 -0
- package/lib/browser/frontend-chat-service.js.map +1 -0
- package/lib/common/chat-agent-service.d.ts +45 -0
- package/lib/common/chat-agent-service.d.ts.map +1 -0
- package/lib/common/chat-agent-service.js +78 -0
- package/lib/common/chat-agent-service.js.map +1 -0
- package/lib/common/chat-agents-variable-contribution.d.ts +17 -0
- package/lib/common/chat-agents-variable-contribution.d.ts.map +1 -0
- package/lib/common/chat-agents-variable-contribution.js +51 -0
- package/lib/common/chat-agents-variable-contribution.js.map +1 -0
- package/lib/common/chat-agents.d.ts +108 -0
- package/lib/common/chat-agents.d.ts.map +1 -0
- package/lib/common/chat-agents.js +321 -0
- package/lib/common/chat-agents.js.map +1 -0
- package/lib/common/chat-history-entry.d.ts +7 -0
- package/lib/common/chat-history-entry.d.ts.map +1 -0
- package/lib/common/chat-history-entry.js +42 -0
- package/lib/common/chat-history-entry.js.map +1 -0
- package/lib/common/chat-model-util.d.ts +7 -0
- package/lib/common/chat-model-util.d.ts.map +1 -0
- package/lib/common/chat-model-util.js +50 -0
- package/lib/common/chat-model-util.js.map +1 -0
- package/lib/common/chat-model.d.ts +393 -0
- package/lib/common/chat-model.d.ts.map +1 -0
- package/lib/common/chat-model.js +612 -0
- package/lib/common/chat-model.js.map +1 -0
- package/lib/common/chat-request-parser.d.ts +20 -0
- package/lib/common/chat-request-parser.d.ts.map +1 -0
- package/lib/common/chat-request-parser.js +158 -0
- package/lib/common/chat-request-parser.js.map +1 -0
- package/lib/common/chat-request-parser.spec.d.ts +2 -0
- package/lib/common/chat-request-parser.spec.d.ts.map +1 -0
- package/lib/common/chat-request-parser.spec.js +108 -0
- package/lib/common/chat-request-parser.spec.js.map +1 -0
- package/lib/common/chat-service.d.ts +72 -0
- package/lib/common/chat-service.d.ts.map +1 -0
- package/lib/common/chat-service.js +170 -0
- package/lib/common/chat-service.js.map +1 -0
- package/lib/common/command-chat-agents.d.ts +33 -0
- package/lib/common/command-chat-agents.d.ts.map +1 -0
- package/lib/common/command-chat-agents.js +329 -0
- package/lib/common/command-chat-agents.js.map +1 -0
- package/lib/common/custom-chat-agent.d.ts +14 -0
- package/lib/common/custom-chat-agent.d.ts.map +1 -0
- package/lib/common/custom-chat-agent.js +43 -0
- package/lib/common/custom-chat-agent.js.map +1 -0
- package/lib/common/index.d.ts +12 -0
- package/lib/common/index.d.ts.map +1 -0
- package/lib/common/index.js +30 -0
- package/lib/common/index.js.map +1 -0
- package/lib/common/o1-chat-agent.d.ts +13 -0
- package/lib/common/o1-chat-agent.d.ts.map +1 -0
- package/lib/common/o1-chat-agent.js +45 -0
- package/lib/common/o1-chat-agent.js.map +1 -0
- package/lib/common/orchestrator-chat-agent.d.ts +22 -0
- package/lib/common/orchestrator-chat-agent.d.ts.map +1 -0
- package/lib/common/orchestrator-chat-agent.js +167 -0
- package/lib/common/orchestrator-chat-agent.js.map +1 -0
- package/lib/common/parse-contents.d.ts +11 -0
- package/lib/common/parse-contents.d.ts.map +1 -0
- package/lib/common/parse-contents.js +67 -0
- package/lib/common/parse-contents.js.map +1 -0
- package/lib/common/parse-contents.spec.d.ts +9 -0
- package/lib/common/parse-contents.spec.d.ts.map +1 -0
- package/lib/common/parse-contents.spec.js +134 -0
- package/lib/common/parse-contents.spec.js.map +1 -0
- package/lib/common/parsed-chat-request.d.ts +66 -0
- package/lib/common/parsed-chat-request.d.ts.map +1 -0
- package/lib/common/parsed-chat-request.js +83 -0
- package/lib/common/parsed-chat-request.js.map +1 -0
- package/lib/common/response-content-matcher.d.ts +63 -0
- package/lib/common/response-content-matcher.d.ts.map +1 -0
- package/lib/common/response-content-matcher.js +86 -0
- package/lib/common/response-content-matcher.js.map +1 -0
- package/lib/common/universal-chat-agent.d.ts +16 -0
- package/lib/common/universal-chat-agent.d.ts.map +1 -0
- package/lib/common/universal-chat-agent.js +109 -0
- package/lib/common/universal-chat-agent.js.map +1 -0
- package/package.json +54 -0
- package/src/browser/ai-chat-frontend-module.ts +98 -0
- package/src/browser/ai-chat-preferences.ts +32 -0
- package/src/browser/custom-agent-factory.ts +20 -0
- package/src/browser/custom-agent-frontend-application-contribution.ts +73 -0
- package/src/browser/frontend-chat-service.ts +66 -0
- package/src/common/chat-agent-service.ts +100 -0
- package/src/common/chat-agents-variable-contribution.ts +81 -0
- package/src/common/chat-agents.ts +392 -0
- package/src/common/chat-history-entry.ts +47 -0
- package/src/common/chat-model-util.ts +44 -0
- package/src/common/chat-model.ts +889 -0
- package/src/common/chat-request-parser.spec.ts +120 -0
- package/src/common/chat-request-parser.ts +220 -0
- package/src/common/chat-service.ts +236 -0
- package/src/common/command-chat-agents.ts +354 -0
- package/src/common/custom-chat-agent.ts +44 -0
- package/src/common/index.ts +26 -0
- package/src/common/o1-chat-agent.ts +51 -0
- package/src/common/orchestrator-chat-agent.ts +179 -0
- package/src/common/parse-contents.spec.ts +144 -0
- package/src/common/parse-contents.ts +93 -0
- package/src/common/parsed-chat-request.ts +112 -0
- package/src/common/response-content-matcher.ts +103 -0
- package/src/common/universal-chat-agent.ts +117 -0
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
import { Command, Emitter, Event, URI } from '@theia/core';
|
|
2
|
+
import { MarkdownString, MarkdownStringImpl } from '@theia/core/lib/common/markdown-rendering';
|
|
3
|
+
import { Position } from '@theia/core/shared/vscode-languageserver-protocol';
|
|
4
|
+
import { ChatAgentLocation } from './chat-agents';
|
|
5
|
+
import { ParsedChatRequest } from './parsed-chat-request';
|
|
6
|
+
/**********************
|
|
7
|
+
* INTERFACES AND TYPE GUARDS
|
|
8
|
+
**********************/
|
|
9
|
+
export type ChatChangeEvent = ChatAddRequestEvent | ChatAddResponseEvent | ChatRemoveRequestEvent;
|
|
10
|
+
export interface ChatAddRequestEvent {
|
|
11
|
+
kind: 'addRequest';
|
|
12
|
+
request: ChatRequestModel;
|
|
13
|
+
}
|
|
14
|
+
export interface ChatAddResponseEvent {
|
|
15
|
+
kind: 'addResponse';
|
|
16
|
+
response: ChatResponseModel;
|
|
17
|
+
}
|
|
18
|
+
export type ChatRequestRemovalReason = 'removal' | 'resend' | 'adoption';
|
|
19
|
+
export interface ChatRemoveRequestEvent {
|
|
20
|
+
kind: 'removeRequest';
|
|
21
|
+
requestId: string;
|
|
22
|
+
responseId?: string;
|
|
23
|
+
reason: ChatRequestRemovalReason;
|
|
24
|
+
}
|
|
25
|
+
export interface ChatModel {
|
|
26
|
+
readonly onDidChange: Event<ChatChangeEvent>;
|
|
27
|
+
readonly id: string;
|
|
28
|
+
readonly location: ChatAgentLocation;
|
|
29
|
+
getRequests(): ChatRequestModel[];
|
|
30
|
+
isEmpty(): boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface ChatRequest {
|
|
33
|
+
readonly text: string;
|
|
34
|
+
readonly displayText?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface ChatRequestModel {
|
|
37
|
+
readonly id: string;
|
|
38
|
+
readonly session: ChatModel;
|
|
39
|
+
readonly request: ChatRequest;
|
|
40
|
+
readonly response: ChatResponseModel;
|
|
41
|
+
readonly message: ParsedChatRequest;
|
|
42
|
+
readonly agentId?: string;
|
|
43
|
+
readonly data?: {
|
|
44
|
+
[key: string]: unknown;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export interface ChatProgressMessage {
|
|
48
|
+
kind: 'progressMessage';
|
|
49
|
+
id: string;
|
|
50
|
+
status: 'inProgress' | 'completed' | 'failed';
|
|
51
|
+
show: 'untilFirstContent' | 'whileIncomplete' | 'forever';
|
|
52
|
+
content: string;
|
|
53
|
+
}
|
|
54
|
+
export interface ChatResponseContent {
|
|
55
|
+
kind: string;
|
|
56
|
+
/**
|
|
57
|
+
* Represents the content as a string. Returns `undefined` if the content
|
|
58
|
+
* is purely informational and/or visual and should not be included in the overall
|
|
59
|
+
* representation of the response.
|
|
60
|
+
*/
|
|
61
|
+
asString?(): string | undefined;
|
|
62
|
+
merge?(nextChatResponseContent: ChatResponseContent): boolean;
|
|
63
|
+
}
|
|
64
|
+
export declare namespace ChatResponseContent {
|
|
65
|
+
function is(obj: unknown): obj is ChatResponseContent;
|
|
66
|
+
function hasAsString(obj: ChatResponseContent): obj is Required<Pick<ChatResponseContent, 'asString'>> & ChatResponseContent;
|
|
67
|
+
function hasMerge(obj: ChatResponseContent): obj is Required<Pick<ChatResponseContent, 'merge'>> & ChatResponseContent;
|
|
68
|
+
}
|
|
69
|
+
export interface TextChatResponseContent extends Required<ChatResponseContent> {
|
|
70
|
+
kind: 'text';
|
|
71
|
+
content: string;
|
|
72
|
+
}
|
|
73
|
+
export interface ErrorChatResponseContent extends ChatResponseContent {
|
|
74
|
+
kind: 'error';
|
|
75
|
+
error: Error;
|
|
76
|
+
}
|
|
77
|
+
export interface MarkdownChatResponseContent extends Required<ChatResponseContent> {
|
|
78
|
+
kind: 'markdownContent';
|
|
79
|
+
content: MarkdownString;
|
|
80
|
+
}
|
|
81
|
+
export interface CodeChatResponseContent extends ChatResponseContent {
|
|
82
|
+
kind: 'code';
|
|
83
|
+
code: string;
|
|
84
|
+
language?: string;
|
|
85
|
+
location?: Location;
|
|
86
|
+
}
|
|
87
|
+
export interface HorizontalLayoutChatResponseContent extends Required<ChatResponseContent> {
|
|
88
|
+
kind: 'horizontal';
|
|
89
|
+
content: ChatResponseContent[];
|
|
90
|
+
}
|
|
91
|
+
export interface ToolCallChatResponseContent extends Required<ChatResponseContent> {
|
|
92
|
+
kind: 'toolCall';
|
|
93
|
+
id?: string;
|
|
94
|
+
name?: string;
|
|
95
|
+
arguments?: string;
|
|
96
|
+
finished: boolean;
|
|
97
|
+
result?: string;
|
|
98
|
+
}
|
|
99
|
+
export interface Location {
|
|
100
|
+
uri: URI;
|
|
101
|
+
position: Position;
|
|
102
|
+
}
|
|
103
|
+
export declare namespace Location {
|
|
104
|
+
function is(obj: unknown): obj is Location;
|
|
105
|
+
}
|
|
106
|
+
export interface CustomCallback {
|
|
107
|
+
label: string;
|
|
108
|
+
callback: () => Promise<void>;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* A command chat response content represents a command that is offered to the user for execution.
|
|
112
|
+
* It either refers to an already registered Theia command or provides a custom callback.
|
|
113
|
+
* If both are given, the custom callback will be preferred.
|
|
114
|
+
*/
|
|
115
|
+
export interface CommandChatResponseContent extends ChatResponseContent {
|
|
116
|
+
kind: 'command';
|
|
117
|
+
command?: Command;
|
|
118
|
+
customCallback?: CustomCallback;
|
|
119
|
+
arguments?: unknown[];
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* An informational chat response content represents a message that is purely informational and should not be included in the overall representation of the response.
|
|
123
|
+
*/
|
|
124
|
+
export interface InformationalChatResponseContent extends ChatResponseContent {
|
|
125
|
+
kind: 'informational';
|
|
126
|
+
content: MarkdownString;
|
|
127
|
+
}
|
|
128
|
+
export declare namespace TextChatResponseContent {
|
|
129
|
+
function is(obj: unknown): obj is TextChatResponseContent;
|
|
130
|
+
}
|
|
131
|
+
export declare namespace MarkdownChatResponseContent {
|
|
132
|
+
function is(obj: unknown): obj is MarkdownChatResponseContent;
|
|
133
|
+
}
|
|
134
|
+
export declare namespace InformationalChatResponseContent {
|
|
135
|
+
function is(obj: unknown): obj is InformationalChatResponseContent;
|
|
136
|
+
}
|
|
137
|
+
export declare namespace CommandChatResponseContent {
|
|
138
|
+
function is(obj: unknown): obj is CommandChatResponseContent;
|
|
139
|
+
}
|
|
140
|
+
export declare namespace CodeChatResponseContent {
|
|
141
|
+
function is(obj: unknown): obj is CodeChatResponseContent;
|
|
142
|
+
}
|
|
143
|
+
export declare namespace HorizontalLayoutChatResponseContent {
|
|
144
|
+
function is(obj: unknown): obj is HorizontalLayoutChatResponseContent;
|
|
145
|
+
}
|
|
146
|
+
export declare namespace ToolCallChatResponseContent {
|
|
147
|
+
function is(obj: unknown): obj is ToolCallChatResponseContent;
|
|
148
|
+
}
|
|
149
|
+
export declare namespace ErrorChatResponseContent {
|
|
150
|
+
function is(obj: unknown): obj is ErrorChatResponseContent;
|
|
151
|
+
}
|
|
152
|
+
export type QuestionResponseHandler = (selectedOption: {
|
|
153
|
+
text: string;
|
|
154
|
+
value?: string;
|
|
155
|
+
}) => void;
|
|
156
|
+
export interface QuestionResponseContent extends ChatResponseContent {
|
|
157
|
+
kind: 'question';
|
|
158
|
+
question: string;
|
|
159
|
+
options: {
|
|
160
|
+
text: string;
|
|
161
|
+
value?: string;
|
|
162
|
+
}[];
|
|
163
|
+
selectedOption?: {
|
|
164
|
+
text: string;
|
|
165
|
+
value?: string;
|
|
166
|
+
};
|
|
167
|
+
handler: QuestionResponseHandler;
|
|
168
|
+
request: ChatRequestModelImpl;
|
|
169
|
+
}
|
|
170
|
+
export declare namespace QuestionResponseContent {
|
|
171
|
+
function is(obj: unknown): obj is QuestionResponseContent;
|
|
172
|
+
}
|
|
173
|
+
export interface ChatResponse {
|
|
174
|
+
readonly content: ChatResponseContent[];
|
|
175
|
+
asString(): string;
|
|
176
|
+
}
|
|
177
|
+
export interface ChatResponseModel {
|
|
178
|
+
readonly onDidChange: Event<void>;
|
|
179
|
+
readonly id: string;
|
|
180
|
+
readonly requestId: string;
|
|
181
|
+
readonly progressMessages: ChatProgressMessage[];
|
|
182
|
+
readonly response: ChatResponse;
|
|
183
|
+
readonly isComplete: boolean;
|
|
184
|
+
readonly isCanceled: boolean;
|
|
185
|
+
readonly isWaitingForInput: boolean;
|
|
186
|
+
readonly isError: boolean;
|
|
187
|
+
readonly agentId?: string;
|
|
188
|
+
readonly errorObject?: Error;
|
|
189
|
+
}
|
|
190
|
+
/**********************
|
|
191
|
+
* Implementations
|
|
192
|
+
**********************/
|
|
193
|
+
export declare class ChatModelImpl implements ChatModel {
|
|
194
|
+
readonly location: ChatAgentLocation;
|
|
195
|
+
protected readonly _onDidChangeEmitter: Emitter<ChatChangeEvent>;
|
|
196
|
+
onDidChange: Event<ChatChangeEvent>;
|
|
197
|
+
protected _requests: ChatRequestModelImpl[];
|
|
198
|
+
protected _id: string;
|
|
199
|
+
constructor(location?: ChatAgentLocation);
|
|
200
|
+
getRequests(): ChatRequestModelImpl[];
|
|
201
|
+
get id(): string;
|
|
202
|
+
addRequest(parsedChatRequest: ParsedChatRequest, agentId?: string): ChatRequestModelImpl;
|
|
203
|
+
isEmpty(): boolean;
|
|
204
|
+
}
|
|
205
|
+
export declare class ChatRequestModelImpl implements ChatRequestModel {
|
|
206
|
+
readonly message: ParsedChatRequest;
|
|
207
|
+
protected readonly _id: string;
|
|
208
|
+
protected _session: ChatModel;
|
|
209
|
+
protected _request: ChatRequest;
|
|
210
|
+
protected _response: ChatResponseModelImpl;
|
|
211
|
+
protected _agentId?: string;
|
|
212
|
+
protected _data: {
|
|
213
|
+
[key: string]: unknown;
|
|
214
|
+
};
|
|
215
|
+
constructor(session: ChatModel, message: ParsedChatRequest, agentId?: string, data?: {
|
|
216
|
+
[key: string]: unknown;
|
|
217
|
+
});
|
|
218
|
+
get data(): {
|
|
219
|
+
[key: string]: unknown;
|
|
220
|
+
} | undefined;
|
|
221
|
+
addData(key: string, value: unknown): void;
|
|
222
|
+
getDataByKey(key: string): unknown;
|
|
223
|
+
get id(): string;
|
|
224
|
+
get session(): ChatModel;
|
|
225
|
+
get request(): ChatRequest;
|
|
226
|
+
get response(): ChatResponseModelImpl;
|
|
227
|
+
get agentId(): string | undefined;
|
|
228
|
+
}
|
|
229
|
+
export declare class ErrorChatResponseContentImpl implements ErrorChatResponseContent {
|
|
230
|
+
readonly kind = "error";
|
|
231
|
+
protected _error: Error;
|
|
232
|
+
constructor(error: Error);
|
|
233
|
+
get error(): Error;
|
|
234
|
+
asString(): string | undefined;
|
|
235
|
+
}
|
|
236
|
+
export declare class TextChatResponseContentImpl implements TextChatResponseContent {
|
|
237
|
+
readonly kind = "text";
|
|
238
|
+
protected _content: string;
|
|
239
|
+
constructor(content: string);
|
|
240
|
+
get content(): string;
|
|
241
|
+
asString(): string;
|
|
242
|
+
merge(nextChatResponseContent: TextChatResponseContent): boolean;
|
|
243
|
+
}
|
|
244
|
+
export declare class MarkdownChatResponseContentImpl implements MarkdownChatResponseContent {
|
|
245
|
+
readonly kind = "markdownContent";
|
|
246
|
+
protected _content: MarkdownStringImpl;
|
|
247
|
+
constructor(content: string);
|
|
248
|
+
get content(): MarkdownString;
|
|
249
|
+
asString(): string;
|
|
250
|
+
merge(nextChatResponseContent: MarkdownChatResponseContent): boolean;
|
|
251
|
+
}
|
|
252
|
+
export declare class InformationalChatResponseContentImpl implements InformationalChatResponseContent {
|
|
253
|
+
readonly kind = "informational";
|
|
254
|
+
protected _content: MarkdownStringImpl;
|
|
255
|
+
constructor(content: string);
|
|
256
|
+
get content(): MarkdownString;
|
|
257
|
+
asString(): string | undefined;
|
|
258
|
+
merge(nextChatResponseContent: InformationalChatResponseContent): boolean;
|
|
259
|
+
}
|
|
260
|
+
export declare class CodeChatResponseContentImpl implements CodeChatResponseContent {
|
|
261
|
+
readonly kind = "code";
|
|
262
|
+
protected _code: string;
|
|
263
|
+
protected _language?: string;
|
|
264
|
+
protected _location?: Location;
|
|
265
|
+
constructor(code: string, language?: string, location?: Location);
|
|
266
|
+
get code(): string;
|
|
267
|
+
get language(): string | undefined;
|
|
268
|
+
get location(): Location | undefined;
|
|
269
|
+
asString(): string;
|
|
270
|
+
merge(nextChatResponseContent: CodeChatResponseContent): boolean;
|
|
271
|
+
}
|
|
272
|
+
export declare class ToolCallChatResponseContentImpl implements ToolCallChatResponseContent {
|
|
273
|
+
readonly kind = "toolCall";
|
|
274
|
+
protected _id?: string;
|
|
275
|
+
protected _name?: string;
|
|
276
|
+
protected _arguments?: string;
|
|
277
|
+
protected _finished?: boolean;
|
|
278
|
+
protected _result?: string;
|
|
279
|
+
constructor(id?: string, name?: string, arg_string?: string, finished?: boolean, result?: string);
|
|
280
|
+
get id(): string | undefined;
|
|
281
|
+
get name(): string | undefined;
|
|
282
|
+
get arguments(): string | undefined;
|
|
283
|
+
get finished(): boolean;
|
|
284
|
+
get result(): string | undefined;
|
|
285
|
+
asString(): string;
|
|
286
|
+
merge(nextChatResponseContent: ToolCallChatResponseContent): boolean;
|
|
287
|
+
}
|
|
288
|
+
export declare const COMMAND_CHAT_RESPONSE_COMMAND: Command;
|
|
289
|
+
export declare class CommandChatResponseContentImpl implements CommandChatResponseContent {
|
|
290
|
+
command?: Command | undefined;
|
|
291
|
+
customCallback?: CustomCallback | undefined;
|
|
292
|
+
protected args?: unknown[] | undefined;
|
|
293
|
+
readonly kind = "command";
|
|
294
|
+
constructor(command?: Command | undefined, customCallback?: CustomCallback | undefined, args?: unknown[] | undefined);
|
|
295
|
+
get arguments(): unknown[];
|
|
296
|
+
asString(): string;
|
|
297
|
+
}
|
|
298
|
+
export declare class HorizontalLayoutChatResponseContentImpl implements HorizontalLayoutChatResponseContent {
|
|
299
|
+
readonly kind = "horizontal";
|
|
300
|
+
protected _content: ChatResponseContent[];
|
|
301
|
+
constructor(content?: ChatResponseContent[]);
|
|
302
|
+
get content(): ChatResponseContent[];
|
|
303
|
+
asString(): string;
|
|
304
|
+
merge(nextChatResponseContent: ChatResponseContent): boolean;
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Default implementation for the QuestionResponseContent.
|
|
308
|
+
*/
|
|
309
|
+
export declare class QuestionResponseContentImpl implements QuestionResponseContent {
|
|
310
|
+
question: string;
|
|
311
|
+
options: {
|
|
312
|
+
text: string;
|
|
313
|
+
value?: string;
|
|
314
|
+
}[];
|
|
315
|
+
request: ChatRequestModelImpl;
|
|
316
|
+
handler: QuestionResponseHandler;
|
|
317
|
+
readonly kind = "question";
|
|
318
|
+
protected _selectedOption: {
|
|
319
|
+
text: string;
|
|
320
|
+
value?: string;
|
|
321
|
+
} | undefined;
|
|
322
|
+
constructor(question: string, options: {
|
|
323
|
+
text: string;
|
|
324
|
+
value?: string;
|
|
325
|
+
}[], request: ChatRequestModelImpl, handler: QuestionResponseHandler);
|
|
326
|
+
set selectedOption(option: {
|
|
327
|
+
text: string;
|
|
328
|
+
value?: string;
|
|
329
|
+
} | undefined);
|
|
330
|
+
get selectedOption(): {
|
|
331
|
+
text: string;
|
|
332
|
+
value?: string;
|
|
333
|
+
} | undefined;
|
|
334
|
+
asString?(): string | undefined;
|
|
335
|
+
merge?(): boolean;
|
|
336
|
+
}
|
|
337
|
+
declare class ChatResponseImpl implements ChatResponse {
|
|
338
|
+
protected readonly _onDidChangeEmitter: Emitter<void>;
|
|
339
|
+
onDidChange: Event<void>;
|
|
340
|
+
protected _content: ChatResponseContent[];
|
|
341
|
+
protected _responseRepresentation: string;
|
|
342
|
+
constructor();
|
|
343
|
+
get content(): ChatResponseContent[];
|
|
344
|
+
addContents(contents: ChatResponseContent[]): void;
|
|
345
|
+
addContent(nextContent: ChatResponseContent): void;
|
|
346
|
+
protected doAddContent(nextContent: ChatResponseContent): void;
|
|
347
|
+
responseContentChanged(): void;
|
|
348
|
+
protected _updateResponseRepresentation(): void;
|
|
349
|
+
asString(): string;
|
|
350
|
+
}
|
|
351
|
+
declare class ChatResponseModelImpl implements ChatResponseModel {
|
|
352
|
+
protected readonly _onDidChangeEmitter: Emitter<void>;
|
|
353
|
+
onDidChange: Event<void>;
|
|
354
|
+
protected _id: string;
|
|
355
|
+
protected _requestId: string;
|
|
356
|
+
protected _progressMessages: ChatProgressMessage[];
|
|
357
|
+
protected _response: ChatResponseImpl;
|
|
358
|
+
protected _isComplete: boolean;
|
|
359
|
+
protected _isCanceled: boolean;
|
|
360
|
+
protected _isWaitingForInput: boolean;
|
|
361
|
+
protected _agentId?: string;
|
|
362
|
+
protected _isError: boolean;
|
|
363
|
+
protected _errorObject: Error | undefined;
|
|
364
|
+
constructor(requestId: string, agentId?: string);
|
|
365
|
+
get id(): string;
|
|
366
|
+
get requestId(): string;
|
|
367
|
+
get progressMessages(): ChatProgressMessage[];
|
|
368
|
+
addProgressMessage(message: {
|
|
369
|
+
content: string;
|
|
370
|
+
} & Partial<Omit<ChatProgressMessage, 'kind'>>): ChatProgressMessage;
|
|
371
|
+
getProgressMessage(id: string): ChatProgressMessage | undefined;
|
|
372
|
+
updateProgressMessage(message: {
|
|
373
|
+
id: string;
|
|
374
|
+
} & Partial<Omit<ChatProgressMessage, 'kind'>>): void;
|
|
375
|
+
get response(): ChatResponseImpl;
|
|
376
|
+
get isComplete(): boolean;
|
|
377
|
+
get isCanceled(): boolean;
|
|
378
|
+
get isWaitingForInput(): boolean;
|
|
379
|
+
get agentId(): string | undefined;
|
|
380
|
+
overrideAgentId(agentId: string): void;
|
|
381
|
+
complete(): void;
|
|
382
|
+
cancel(): void;
|
|
383
|
+
waitForInput(): void;
|
|
384
|
+
stopWaitingForInput(): void;
|
|
385
|
+
error(error: Error): void;
|
|
386
|
+
get errorObject(): Error | undefined;
|
|
387
|
+
get isError(): boolean;
|
|
388
|
+
}
|
|
389
|
+
export declare class ErrorChatResponseModelImpl extends ChatResponseModelImpl {
|
|
390
|
+
constructor(requestId: string, error: Error, agentId?: string);
|
|
391
|
+
}
|
|
392
|
+
export {};
|
|
393
|
+
//# sourceMappingURL=chat-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-model.d.ts","sourceRoot":"","sources":["../../src/common/chat-model.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAgB,GAAG,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAC/F,OAAO,EAAE,QAAQ,EAAE,MAAM,mDAAmD,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D;;wBAEwB;AAExB,MAAM,MAAM,eAAe,GACrB,mBAAmB,GACnB,oBAAoB,GACpB,sBAAsB,CAAC;AAE7B,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,EAAE,gBAAgB,CAAC;CAC7B;AAED,MAAM,WAAW,oBAAoB;IACjC,IAAI,EAAE,aAAa,CAAC;IACpB,QAAQ,EAAE,iBAAiB,CAAC;CAC/B;AAED,MAAM,MAAM,wBAAwB,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEzE,MAAM,WAAW,sBAAsB;IACnC,IAAI,EAAE,eAAe,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,wBAAwB,CAAC;CACpC;AAED,MAAM,WAAW,SAAS;IACtB,QAAQ,CAAC,WAAW,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;IAC7C,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IAC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