diff options
Diffstat (limited to 'extension/schema/HistoryNode.d.ts')
-rw-r--r-- | extension/schema/HistoryNode.d.ts | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/extension/schema/HistoryNode.d.ts b/extension/schema/HistoryNode.d.ts index 08424d75..ad4c1154 100644 --- a/extension/schema/HistoryNode.d.ts +++ b/extension/schema/HistoryNode.d.ts @@ -23,6 +23,14 @@ export type Depth = number; export type Deleted = boolean; export type Active = boolean; export type Logs = string[]; +export type Name3 = string; +export type Description1 = string; +export type ProviderTitle = string; +export type ItemId = string; +export type Content1 = string; +export type Editing = boolean; +export type Editable = boolean; +export type ContextUsed = ContextItem[]; /** * A point in history, a list of which make up History @@ -34,6 +42,7 @@ export interface HistoryNode1 { deleted?: Deleted; active?: Active; logs?: Logs; + context_used?: ContextUsed; [k: string]: unknown; } export interface Step { @@ -62,3 +71,32 @@ export interface FunctionCall { export interface Observation { [k: string]: unknown; } +/** + * A ContextItem is a single item that is stored in the ContextManager. + */ +export interface ContextItem { + description: ContextItemDescription; + content: Content1; + editing?: Editing; + editable?: Editable; + [k: string]: unknown; +} +/** + * A ContextItemDescription is a description of a ContextItem that is displayed to the user when they type '@'. + * + * The id can be used to retrieve the ContextItem from the ContextManager. + */ +export interface ContextItemDescription { + name: Name3; + description: Description1; + id: ContextItemId; + [k: string]: unknown; +} +/** + * A ContextItemId is a unique identifier for a ContextItem. + */ +export interface ContextItemId { + provider_title: ProviderTitle; + item_id: ItemId; + [k: string]: unknown; +} |