diff options
| author | Nate Sesti <sestinj@gmail.com> | 2023-06-02 14:09:50 -0400 | 
|---|---|---|
| committer | Nate Sesti <sestinj@gmail.com> | 2023-06-02 14:09:50 -0400 | 
| commit | 3157898f13a6990aff909e8e4af7f58515a28e8c (patch) | |
| tree | 773ec943df45a679fa4a0f221b871b7248be50d7 /extension/schema | |
| parent | 6b909caa8dcbd4bf3d1078ded1c12146944ab349 (diff) | |
| parent | aea318b48dd7e15df16eca12ba59c677671869aa (diff) | |
| download | sncontinue-3157898f13a6990aff909e8e4af7f58515a28e8c.tar.gz sncontinue-3157898f13a6990aff909e8e4af7f58515a28e8c.tar.bz2 sncontinue-3157898f13a6990aff909e8e4af7f58515a28e8c.zip  | |
Merge branch 'main' into docs
Diffstat (limited to 'extension/schema')
| -rw-r--r-- | extension/schema/History.d.ts | 41 | ||||
| -rw-r--r-- | extension/schema/HistoryNode.d.ts | 31 | ||||
| -rw-r--r-- | extension/schema/README.md | 3 | 
3 files changed, 75 insertions, 0 deletions
diff --git a/extension/schema/History.d.ts b/extension/schema/History.d.ts new file mode 100644 index 00000000..508deaf0 --- /dev/null +++ b/extension/schema/History.d.ts @@ -0,0 +1,41 @@ +/* eslint-disable */ +/** + * This file was automatically generated by json-schema-to-typescript. + * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, + * and run json-schema-to-typescript to regenerate this file. + */ + +export type History = History1; +export type Name = string; +export type Hide = boolean; +export type SystemMessage = string; +export type Depth = number; +export type Timeline = HistoryNode[]; +export type CurrentIndex = number; + +/** + * A history of steps taken and their results + */ +export interface History1 { +  timeline: Timeline; +  current_index: CurrentIndex; +  [k: string]: unknown; +} +/** + * A point in history, a list of which make up History + */ +export interface HistoryNode { +  step: Step; +  observation?: Observation; +  depth: Depth; +  [k: string]: unknown; +} +export interface Step { +  name?: Name; +  hide?: Hide; +  system_message?: SystemMessage; +  [k: string]: unknown; +} +export interface Observation { +  [k: string]: unknown; +} diff --git a/extension/schema/HistoryNode.d.ts b/extension/schema/HistoryNode.d.ts new file mode 100644 index 00000000..c1507270 --- /dev/null +++ b/extension/schema/HistoryNode.d.ts @@ -0,0 +1,31 @@ +/* eslint-disable */ +/** + * This file was automatically generated by json-schema-to-typescript. + * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, + * and run json-schema-to-typescript to regenerate this file. + */ + +export type HistoryNode = HistoryNode1; +export type Name = string; +export type Hide = boolean; +export type SystemMessage = string; +export type Depth = number; + +/** + * A point in history, a list of which make up History + */ +export interface HistoryNode1 { +  step: Step; +  observation?: Observation; +  depth: Depth; +  [k: string]: unknown; +} +export interface Step { +  name?: Name; +  hide?: Hide; +  system_message?: SystemMessage; +  [k: string]: unknown; +} +export interface Observation { +  [k: string]: unknown; +} diff --git a/extension/schema/README.md b/extension/schema/README.md new file mode 100644 index 00000000..9c97c0eb --- /dev/null +++ b/extension/schema/README.md @@ -0,0 +1,3 @@ +# Schema + +These are files autogenerated by `npm run typegen`. They come originally from the `continuedev` Python package's Pydantic types.  | 
