-
-
Notifications
You must be signed in to change notification settings - Fork 633
Expand file tree
/
Copy pathIKnowledgeService.cs
More file actions
61 lines (55 loc) · 3.58 KB
/
IKnowledgeService.cs
File metadata and controls
61 lines (55 loc) · 3.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
using BotSharp.Abstraction.Knowledges.Models;
using BotSharp.Abstraction.Knowledges.Options;
namespace BotSharp.Abstraction.Knowledges;
public interface IKnowledgeService
{
string KnowledgeType { get; }
#region Collection
Task<bool> ExistCollection(string collectionName, KnowledgeCollectionOptions options)
=> Task.FromResult(false);
Task<bool> CreateCollection(string collectionName, CollectionCreateOptions options)
=> Task.FromResult(false);
Task<bool> DeleteCollection(string collectionName, KnowledgeCollectionOptions options)
=> Task.FromResult(false);
Task<IEnumerable<KnowledgeCollectionConfig>> GetCollections(KnowledgeCollectionOptions options)
=> Task.FromResult(Enumerable.Empty<KnowledgeCollectionConfig>());
Task<KnowledgeCollectionDetails?> GetCollectionDetails(string collectionName, KnowledgeCollectionOptions options)
=> Task.FromResult<KnowledgeCollectionDetails?>(null);
#endregion
#region Data
Task<IEnumerable<KnowledgeExecuteResult>> ExecuteQuery(string query, string collectionName, KnowledgeExecuteOptions options)
=> Task.FromResult(Enumerable.Empty<KnowledgeExecuteResult>());
Task<StringIdPagedItems<KnowledgeCollectionData>> GetPagedCollectionData(string collectionName, KnowledgeFilter filter)
=> Task.FromResult(new StringIdPagedItems<KnowledgeCollectionData>());
Task<IEnumerable<KnowledgeCollectionData>> GetCollectionData(string collectionName, IEnumerable<string> ids, KnowledgeQueryOptions? options = null)
=> Task.FromResult(Enumerable.Empty<KnowledgeCollectionData>());
Task<bool> DeleteCollectionData(string collectionName, string id, KnowledgeCollectionOptions? options)
=> Task.FromResult(false);
Task<bool> DeleteCollectionData(string collectionName, KnowledgeCollectionOptions? options)
=> Task.FromResult(false);
Task<bool> CreateCollectionData(string collectionName, KnowledgeCreateModel create)
=> Task.FromResult(false);
Task<bool> UpdateCollectionData(string collectionName, KnowledgeUpdateModel update)
=> Task.FromResult(false);
Task<bool> UpsertCollectionData(string collectionName, KnowledgeUpdateModel update)
=> Task.FromResult(false);
#endregion
#region Index
Task<SuccessFailResponse<string>> CreateIndexes(string collectionName, KnowledgeIndexOptions options)
=> Task.FromResult(new SuccessFailResponse<string>());
Task<SuccessFailResponse<string>> DeleteIndexes(string collectionName, KnowledgeIndexOptions options)
=> Task.FromResult(new SuccessFailResponse<string>());
#endregion
#region Snapshot
Task<IEnumerable<KnowledgeCollectionSnapshot>> GetCollectionSnapshots(string collectionName, KnowledgeSnapshotOptions? options = null)
=> Task.FromResult(Enumerable.Empty<KnowledgeCollectionSnapshot>());
Task<KnowledgeCollectionSnapshot?> CreateCollectionSnapshot(string collectionName, KnowledgeSnapshotOptions? options = null)
=> Task.FromResult<KnowledgeCollectionSnapshot?>(null);
Task<BinaryData> DownloadCollectionSnapshot(string collectionName, string snapshotFileName, KnowledgeSnapshotOptions? options = null)
=> Task.FromResult(new BinaryData(Array.Empty<byte>()));
Task<bool> RecoverCollectionFromSnapshot(string collectionName, string snapshotFileName, BinaryData snapshotData, KnowledgeSnapshotOptions? options = null)
=> Task.FromResult(false);
Task<bool> DeleteCollectionSnapshot(string collectionName, string snapshotName, KnowledgeSnapshotOptions? options = null)
=> Task.FromResult(false);
#endregion
}