-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
54 lines (47 loc) · 1.11 KB
/
types.ts
File metadata and controls
54 lines (47 loc) · 1.11 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
import { type PluginsCommonOptions, type CompletionAdapter } from "adminforth";
interface ISessionResource {
resourceId: string;
idField: string;
titleField: string;
turnsField: string;
askerIdField: string;
createdAtField: string;
}
interface ITurnResource {
resourceId: string;
idField: string;
sessionIdField: string;
createdAtField: string;
promptField: string;
responseField: string;
debugField?: string;
}
export interface PluginOptions extends PluginsCommonOptions {
/**
* Modes for the plugin.
* Each mode can have its own configuration.
* Each mode uses its own completion adapter instance.
*/
modes: {
name: string;
completionAdapter: CompletionAdapter;
}[];
/**
* Max tokens for the generation.
* Default is 1000
*/
maxTokens?: number;
/**
* Response generation level.
* Default is low
*/
reasoning?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
/**
* Resource configuration for sessions.
*/
sessionResource: ISessionResource;
/**
* Resource configuration for turns.
*/
turnResource: ITurnResource;
}