summaryrefslogtreecommitdiff
path: root/extension/schema/History.d.ts
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-06-26 17:41:12 -0700
committerNate Sesti <sestinj@gmail.com>2023-06-26 17:41:12 -0700
commitce846df27aa9646d79da4160c833031766d2c13b (patch)
tree5993b2d211fcaa0a14bd742249d66d5ae52c5a85 /extension/schema/History.d.ts
parentf4beca92731a81c32aec9c692ec32b78024f5974 (diff)
downloadsncontinue-ce846df27aa9646d79da4160c833031766d2c13b.tar.gz
sncontinue-ce846df27aa9646d79da4160c833031766d2c13b.tar.bz2
sncontinue-ce846df27aa9646d79da4160c833031766d2c13b.zip
syntax highlighting lang auto detection
Diffstat (limited to 'extension/schema/History.d.ts')
-rw-r--r--extension/schema/History.d.ts29
1 files changed, 29 insertions, 0 deletions
diff --git a/extension/schema/History.d.ts b/extension/schema/History.d.ts
index 508deaf0..6eb8ad81 100644
--- a/extension/schema/History.d.ts
+++ b/extension/schema/History.d.ts
@@ -8,8 +8,19 @@
export type History = History1;
export type Name = string;
export type Hide = boolean;
+export type Description = string;
export type SystemMessage = string;
+export type Role = "assistant" | "user" | "system" | "function";
+export type Content = string;
+export type Name1 = string;
+export type Summary = string;
+export type Name2 = string;
+export type Arguments = string;
+export type ChatContext = ChatMessage[];
+export type ManageOwnChatContext = boolean;
export type Depth = number;
+export type Deleted = boolean;
+export type Active = boolean;
export type Timeline = HistoryNode[];
export type CurrentIndex = number;
@@ -28,12 +39,30 @@ export interface HistoryNode {
step: Step;
observation?: Observation;
depth: Depth;
+ deleted?: Deleted;
+ active?: Active;
[k: string]: unknown;
}
export interface Step {
name?: Name;
hide?: Hide;
+ description?: Description;
system_message?: SystemMessage;
+ chat_context?: ChatContext;
+ manage_own_chat_context?: ManageOwnChatContext;
+ [k: string]: unknown;
+}
+export interface ChatMessage {
+ role: Role;
+ content?: Content;
+ name?: Name1;
+ summary: Summary;
+ function_call?: FunctionCall;
+ [k: string]: unknown;
+}
+export interface FunctionCall {
+ name: Name2;
+ arguments: Arguments;
[k: string]: unknown;
}
export interface Observation {