644
645
loadSessionFromData(data: IExportableChatData | ISerializableChatData, debugOwner?: string): IChatModelReference {
646
>
const sessionId = (data as ISerializableChatData).sessionId ?? generateUuid();
chatServiceImpl.ts
647
>
const sessionResource = LocalChatSessionUri.forSession(sessionId);
648
>
return this._sessionModels.acquireOrCreate({
649
>
initialData: { value: data, serializer: new ChatSessionOperationLog() },
650
>
location: data.initialLocation ?? ChatAgentLocation.Chat,
651
>
sessionResource,
652
>
canUseTools: true,
653
>
}, debugOwner ?? 'ChatService#loadSessionFromData');
654
>
}
655
656
async acquireOrLoadSession(sessionResource: URI, location: ChatAgentLocation, token: CancellationToken, debugOwner?: string): Promise<IChatModelReference | undefined> {