summaryrefslogtreecommitdiff
path: root/extension/schema
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
commitcf9d8c40f480be22c1cfd0493177b5a61adf8d0f (patch)
tree2ddddf0f88f97d602cb691e110886ceab54dcfba /extension/schema
parent1c58e6847470457b15ea577adc4f6b8764ee890c (diff)
downloadsncontinue-cf9d8c40f480be22c1cfd0493177b5a61adf8d0f.tar.gz
sncontinue-cf9d8c40f480be22c1cfd0493177b5a61adf8d0f.tar.bz2
sncontinue-cf9d8c40f480be22c1cfd0493177b5a61adf8d0f.zip
syntax highlighting lang auto detection
Diffstat (limited to 'extension/schema')
-rw-r--r--extension/schema/History.d.ts29
-rw-r--r--extension/schema/HistoryNode.d.ts29
2 files changed, 58 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 {
diff --git a/extension/schema/HistoryNode.d.ts b/extension/schema/HistoryNode.d.ts
index c1507270..bc77be89 100644
--- a/extension/schema/HistoryNode.d.ts
+++ b/extension/schema/HistoryNode.d.ts
@@ -8,8 +8,19 @@
export type HistoryNode = HistoryNode1;
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;
/**
* A point in history, a list of which make up History
@@ -18,12 +29,30 @@ export interface HistoryNode1 {
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 {