summaryrefslogtreecommitdiff
path: root/extension/schema
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-06-27 11:17:26 -0700
committerNate Sesti <sestinj@gmail.com>2023-06-27 11:17:26 -0700
commitc3106d3540efbf48de694ac9b9294d56b520493a (patch)
treed5923db2a1151517181f0a26ee32a3a873e019f9 /extension/schema
parentbedd5f31e7a1d7b915fbb2a47a92f58035c96415 (diff)
parent3a39f7029f7faf5c77d4678ce6d796e4c99b558b (diff)
downloadsncontinue-c3106d3540efbf48de694ac9b9294d56b520493a.tar.gz
sncontinue-c3106d3540efbf48de694ac9b9294d56b520493a.tar.bz2
sncontinue-c3106d3540efbf48de694ac9b9294d56b520493a.zip
Merge branch 'main' into newer-simpler-stream-algo
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 {