dochub-sdk 0.1.315 → 0.1.317
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/interfaces/ai.ts +9 -1
- package/package.json +1 -1
package/interfaces/ai.ts
CHANGED
@@ -2,6 +2,14 @@
|
|
2
2
|
* Интерфейс открытого запроса к AI
|
3
3
|
*/
|
4
4
|
export interface IDocHubAIRequest {
|
5
|
+
/**
|
6
|
+
* Возвращает локальный контекст
|
7
|
+
*/
|
8
|
+
getLocalContext?: () => Promise<string>
|
9
|
+
/**
|
10
|
+
* Возвращает локальный промпт
|
11
|
+
*/
|
12
|
+
getLocalPrompt?: () => Promise<string>
|
5
13
|
/**
|
6
14
|
* Обрабатывает ответ от AI
|
7
15
|
* @param answer - Ответ от AI
|
@@ -30,7 +38,7 @@ export interface IDocHubAIDriver {
|
|
30
38
|
/**
|
31
39
|
*
|
32
40
|
*/
|
33
|
-
|
41
|
+
isActive(): boolean;
|
34
42
|
/**
|
35
43
|
* Задает вопрос AI
|
36
44
|
* @param question - Вопрос
|