59
this._onDidCreateModel.fire(session);
60
}
62
>
removeSession(sessionResource: URI): void {
63
this.sessions.delete(sessionResource);
64
// Update the chatModels observable
65
this._chatModels.set([...this.sessions.values()], undefined);
66
}
68
>
isEnabled(_location: ChatAgentLocation): boolean {
69
return true;
70
}
72
>
hasSessions(): boolean {
73
return this.sessions.size > 0;
74
}
76
>
getProviderInfos() {
77
return [];
78
}
80
>
startNewLocalSession(_location: ChatAgentLocation, _options?: IChatSessionStartOptions): IChatModelReference {
81
throw new Error('Method not implemented.');
82
}
84
>
getSession(sessionResource: URI): IChatModel | undefined {
85
return this.sessions.get(sessionResource);
86
}
88
>
getLatestRequest(): IChatRequestModel | undefined {
89
return undefined;
90
}
92
>
acquireOrRestoreSession(_sessionResource: URI): Promise<IChatModelReference | undefined> {
93
throw new Error('Method not implemented.');
94
}
96
>
getSessionTitle(_sessionResource: URI): string | undefined {
97
return undefined;
98
}
100
>
loadSessionFromData(data: IExportableChatData | ISerializableChatData, _debugOwner?: string): IChatModelReference {
101
throw new Error('Method not implemented.');
102
}
104
>
getChatModelReferenceDebugInfo(): IChatModelReferenceDebugSnapshot {
105
return { totalModels: 0, totalReferences: 0, models: [] };
106
}
108
>
acquireOrLoadSession(_resource: URI, _position: ChatAgentLocation, _token: CancellationToken, _debugOwner?: string): Promise<IChatModelReference | undefined> {
109
throw new Error('Method not implemented.');
110
}
112
>
acquireExistingSession(_sessionResource: URI, _debugOwner?: string): IChatModelReference | undefined {
113
return undefined;
114
}
116
>
setSessionTitle(_sessionResource: URI, _title: string): void { }
117
>
118
>
appendProgress(_request: IChatRequestModel, _progress: IChatProgress): void { }
119
>
120
>
sendRequest(_sessionResource: URI, _message: string): Promise<ChatSendResult> {
121
throw new Error('Method not implemented.');
122
}
124
>
resendRequest(_request: IChatRequestModel, _options?: IChatSendRequestOptions): Promise<void> {
125
throw new Error('Method not implemented.');
126
}
128
>
adoptRequest(_sessionResource: URI, _request: IChatRequestModel): Promise<void> {
129
throw new Error('Method not implemented.');
130
}
132
>
removeRequest(_sessionResource: URI, _requestId: string): Promise<void> {
133
throw new Error('Method not implemented.');
134
}
136
>
async cancelCurrentRequestForSession(_sessionResource: URI, _source?: string): Promise<void> { }
137
>
138
>
migrateRequests(_originalResource: URI, _targetResource: URI): void { }
139
>
140
>
setYieldRequested(_sessionResource: URI): void { }
141
>
142
>
removePendingRequest(_sessionResource: URI, _requestId: string): void { }
143
>
144
>
setPendingRequests(_sessionResource: URI, _requests: readonly { requestId: string; kind: ChatRequestQueueKind }[]): void { }
145
>
146
>
syncPendingRequestsFromRemote(_sessionResource: URI, _requests: readonly IRemotePendingRequest[]): void { }
147
>
148
>
sendPendingRequestImmediately(_sessionResource: URI, _requestId: string): Promise<void> {
149
throw new Error('Method not implemented.');
150
}
152
>
addCompleteRequest(): void { }
153
>
154
>
async getLocalSessionHistory(): Promise<IChatDetail[]> {
155
return this.historySessionItems;
156
}
158
>
async clearAllHistoryEntries(): Promise<void> { }
159
>
160
>
async removeHistoryEntry(_resource: URI): Promise<void> { }
161
>
162
>
readonly onDidPerformUserAction = Event.None;
163
>
164
>
notifyUserAction(_event: IChatUserActionEvent): void { }
165
>
166
>
readonly onDidReceiveQuestionCarouselAnswer = Event.None;
167
168
notifyQuestionCarouselAnswer(_requestId: string, _resolveId: string, _answers: Record<string, unknown> | undefined): void { }