Table of Contents

Class SessionExporter

Namespace
JD.AI.Core.Sessions
Assembly
JD.AI.Core.dll

Exports and imports sessions as human-readable JSON files.

public static class SessionExporter
Inheritance
SessionExporter
Inherited Members

Methods

ExportAsync(SessionInfo, string?)

Export a session to a JSON file under ~/.jdai/projects/{hash}/sessions/{id}.json.

public static Task ExportAsync(SessionInfo session, string? basePath = null)

Parameters

session SessionInfo
basePath string

Returns

Task

ImportAsync(string)

Import a session from a JSON file.

public static Task<SessionInfo?> ImportAsync(string path)

Parameters

path string

Returns

Task<SessionInfo>

ListExportedFiles(string, string?)

List exported JSON sessions for a project.

public static IEnumerable<string> ListExportedFiles(string projectHash, string? basePath = null)

Parameters

projectHash string
basePath string

Returns

IEnumerable<string>