|
1 | | -using BotSharp.Abstraction.Loggers.Models; |
2 | | -using BotSharp.Abstraction.Plugins.Models; |
3 | | -using BotSharp.Abstraction.Tasks.Models; |
4 | | -using BotSharp.Abstraction.Translation.Models; |
5 | | -using BotSharp.Abstraction.VectorStorage.Models; |
6 | | - |
7 | 1 | namespace BotSharp.Core.Repository; |
8 | 2 |
|
9 | 3 | public class BotSharpDbContext : Database, IBotSharpRepository |
10 | 4 | { |
11 | 5 | public IServiceProvider ServiceProvider => throw new NotImplementedException(); |
12 | | - |
13 | | - #region Plugin |
14 | | - public PluginConfig GetPluginConfig() => throw new NotImplementedException(); |
15 | | - public void SavePluginConfig(PluginConfig config) => throw new NotImplementedException(); |
16 | | - #endregion |
17 | | - |
18 | | - #region Agent |
19 | | - public Agent GetAgent(string agentId, bool basicsOnly = false) |
20 | | - => throw new NotImplementedException(); |
21 | | - |
22 | | - public List<Agent> GetAgents(AgentFilter filter) |
23 | | - => throw new NotImplementedException(); |
24 | | - |
25 | | - public List<UserAgent> GetUserAgents(string userId) |
26 | | - => throw new NotImplementedException(); |
27 | | - |
28 | | - public void UpdateAgent(Agent agent, AgentField field) |
29 | | - => throw new NotImplementedException(); |
30 | | - |
31 | | - public string GetAgentTemplate(string agentId, string templateName) |
32 | | - => throw new NotImplementedException(); |
33 | | - |
34 | | - public bool PatchAgentTemplate(string agentId, AgentTemplate template) |
35 | | - => throw new NotImplementedException(); |
36 | | - |
37 | | - public List<string> GetAgentResponses(string agentId, string prefix, string intent) |
38 | | - => throw new NotImplementedException(); |
39 | | - |
40 | | - public void BulkInsertAgents(List<Agent> agents) |
41 | | - => throw new NotImplementedException(); |
42 | | - |
43 | | - public void BulkInsertUserAgents(List<UserAgent> userAgents) |
44 | | - => throw new NotImplementedException(); |
45 | | - |
46 | | - public bool DeleteAgents() |
47 | | - => throw new NotImplementedException(); |
48 | | - |
49 | | - public bool DeleteAgent(string agentId) |
50 | | - => throw new NotImplementedException(); |
51 | | - #endregion |
52 | | - |
53 | | - #region Agent Task |
54 | | - public PagedItems<AgentTask> GetAgentTasks(AgentTaskFilter filter) |
55 | | - => throw new NotImplementedException(); |
56 | | - |
57 | | - public AgentTask? GetAgentTask(string agentId, string taskId) |
58 | | - => throw new NotImplementedException(); |
59 | | - |
60 | | - public void InsertAgentTask(AgentTask task) |
61 | | - => throw new NotImplementedException(); |
62 | | - |
63 | | - public void BulkInsertAgentTasks(List<AgentTask> tasks) |
64 | | - => throw new NotImplementedException(); |
65 | | - |
66 | | - public void UpdateAgentTask(AgentTask task, AgentTaskField field) |
67 | | - => throw new NotImplementedException(); |
68 | | - |
69 | | - public bool DeleteAgentTask(string agentId, List<string> taskIds) |
70 | | - => throw new NotImplementedException(); |
71 | | - |
72 | | - public bool DeleteAgentTasks() |
73 | | - => throw new NotImplementedException(); |
74 | | - #endregion |
75 | | - |
76 | | - #region Conversation |
77 | | - public void CreateNewConversation(Conversation conversation) |
78 | | - => throw new NotImplementedException(); |
79 | | - |
80 | | - public bool DeleteConversations(IEnumerable<string> conversationIds) |
81 | | - => throw new NotImplementedException(); |
82 | | - |
83 | | - public Conversation GetConversation(string conversationId, bool isLoadStates = false) |
84 | | - => throw new NotImplementedException(); |
85 | | - |
86 | | - public PagedItems<Conversation> GetConversations(ConversationFilter filter) |
87 | | - => throw new NotImplementedException(); |
88 | | - |
89 | | - public List<Conversation> GetLastConversations() |
90 | | - => throw new NotImplementedException(); |
91 | | - |
92 | | - public List<string> GetIdleConversations(int batchSize, int messageLimit, int bufferHours, IEnumerable<string> excludeAgentIds) |
93 | | - => throw new NotImplementedException(); |
94 | | - |
95 | | - [SideCar] |
96 | | - public List<DialogElement> GetConversationDialogs(string conversationId) |
97 | | - => throw new NotImplementedException(); |
98 | | - |
99 | | - public ConversationState GetConversationStates(string conversationId) |
100 | | - => throw new NotImplementedException(); |
101 | | - |
102 | | - [SideCar] |
103 | | - public void AppendConversationDialogs(string conversationId, List<DialogElement> dialogs) |
104 | | - => throw new NotImplementedException(); |
105 | | - |
106 | | - public void UpdateConversationTitle(string conversationId, string title) |
107 | | - => throw new NotImplementedException(); |
108 | | - public void UpdateConversationTitleAlias(string conversationId, string titleAlias) |
109 | | - => throw new NotImplementedException(); |
110 | | - |
111 | | - public bool UpdateConversationTags(string conversationId, List<string> tags) |
112 | | - => throw new NotImplementedException(); |
113 | | - |
114 | | - public bool AppendConversationTags(string conversationId, List<string> tags) |
115 | | - => throw new NotImplementedException(); |
116 | | - |
117 | | - public bool UpdateConversationMessage(string conversationId, UpdateMessageRequest request) |
118 | | - => throw new NotImplementedException(); |
119 | | - |
120 | | - [SideCar] |
121 | | - public void UpdateConversationBreakpoint(string conversationId, ConversationBreakpoint breakpoint) |
122 | | - => throw new NotImplementedException(); |
123 | | - |
124 | | - [SideCar] |
125 | | - public ConversationBreakpoint? GetConversationBreakpoint(string conversationId) |
126 | | - => throw new NotImplementedException(); |
127 | | - |
128 | | - public void UpdateConversationStates(string conversationId, List<StateKeyValue> states) |
129 | | - => throw new NotImplementedException(); |
130 | | - |
131 | | - public void UpdateConversationStatus(string conversationId, string status) |
132 | | - => throw new NotImplementedException(); |
133 | | - |
134 | | - public List<string> TruncateConversation(string conversationId, string messageId, bool cleanLog = false) |
135 | | - => throw new NotImplementedException(); |
136 | | - #endregion |
137 | | - |
138 | | - #region LLM Completion Log |
139 | | - public void SaveLlmCompletionLog(LlmCompletionLog log) |
140 | | - { |
141 | | - throw new NotImplementedException(); |
142 | | - } |
143 | | - #endregion |
144 | | - |
145 | | - #region Conversation Content Log |
146 | | - public void SaveConversationContentLog(ContentLogOutputModel log) |
147 | | - { |
148 | | - throw new NotImplementedException(); |
149 | | - } |
150 | | - |
151 | | - public List<ContentLogOutputModel> GetConversationContentLogs(string conversationId) |
152 | | - { |
153 | | - throw new NotImplementedException(); |
154 | | - } |
155 | | - #endregion |
156 | | - |
157 | | - #region Conversation State Log |
158 | | - public void SaveConversationStateLog(ConversationStateLogModel log) |
159 | | - { |
160 | | - throw new NotImplementedException(); |
161 | | - } |
162 | | - |
163 | | - public List<ConversationStateLogModel> GetConversationStateLogs(string conversationId) |
164 | | - { |
165 | | - throw new NotImplementedException(); |
166 | | - } |
167 | | - #endregion |
168 | | - |
169 | | - #region Stats |
170 | | - public void IncrementConversationCount() |
171 | | - { |
172 | | - throw new NotImplementedException(); |
173 | | - } |
174 | | - #endregion |
175 | | - |
176 | | - #region Translation |
177 | | - public IEnumerable<TranslationMemoryOutput> GetTranslationMemories(IEnumerable<TranslationMemoryQuery> queries) |
178 | | - => throw new NotImplementedException(); |
179 | | - public bool SaveTranslationMemories(IEnumerable<TranslationMemoryInput> inputs) => |
180 | | - throw new NotImplementedException(); |
181 | | - #endregion |
182 | | - |
183 | | - #region KnowledgeBase |
184 | | - public bool AddKnowledgeCollectionConfigs(List<VectorCollectionConfig> configs, bool reset = false) => |
185 | | - throw new NotImplementedException(); |
186 | | - |
187 | | - public bool DeleteKnowledgeCollectionConfig(string collectionName) => |
188 | | - throw new NotImplementedException(); |
189 | | - |
190 | | - public IEnumerable<VectorCollectionConfig> GetKnowledgeCollectionConfigs(VectorCollectionConfigFilter filter) => |
191 | | - throw new NotImplementedException(); |
192 | | - |
193 | | - public bool SaveKnolwedgeBaseFileMeta(KnowledgeDocMetaData metaData) => |
194 | | - throw new NotImplementedException(); |
195 | | - |
196 | | - public bool DeleteKnolwedgeBaseFileMeta(string collectionName, string vectorStoreProvider, Guid? fileId = null) => |
197 | | - throw new NotImplementedException(); |
198 | | - |
199 | | - public PagedItems<KnowledgeDocMetaData> GetKnowledgeBaseFileMeta(string collectionName, string vectorStoreProvider, KnowledgeFileFilter filter) => |
200 | | - throw new NotImplementedException(); |
201 | | - #endregion |
202 | 6 | } |
0 commit comments