summaryrefslogtreecommitdiff
path: root/schema/json/FullState.json
diff options
context:
space:
mode:
Diffstat (limited to 'schema/json/FullState.json')
-rw-r--r--schema/json/FullState.json164
1 files changed, 59 insertions, 105 deletions
diff --git a/schema/json/FullState.json b/schema/json/FullState.json
index 62ed337b..aea199fe 100644
--- a/schema/json/FullState.json
+++ b/schema/json/FullState.json
@@ -15,10 +15,7 @@
"type": "string"
}
},
- "required": [
- "name",
- "arguments"
- ]
+ "required": ["name", "arguments"]
},
"ChatMessage": {
"title": "ChatMessage",
@@ -26,12 +23,7 @@
"properties": {
"role": {
"title": "Role",
- "enum": [
- "assistant",
- "user",
- "system",
- "function"
- ],
+ "enum": ["assistant", "user", "system", "function"],
"type": "string"
},
"content": {
@@ -50,10 +42,7 @@
"$ref": "#/definitions/FunctionCall"
}
},
- "required": [
- "role",
- "summary"
- ]
+ "required": ["role", "summary"]
},
"Step": {
"title": "Step",
@@ -130,10 +119,7 @@
}
}
},
- "required": [
- "step",
- "depth"
- ]
+ "required": ["step", "depth"]
},
"History": {
"title": "History",
@@ -152,114 +138,82 @@
"type": "integer"
}
},
- "required": [
- "timeline",
- "current_index"
- ]
+ "required": ["timeline", "current_index"]
},
- "Position": {
- "title": "Position",
+ "SlashCommandDescription": {
+ "title": "SlashCommandDescription",
"type": "object",
"properties": {
- "line": {
- "title": "Line",
- "type": "integer"
+ "name": {
+ "title": "Name",
+ "type": "string"
},
- "character": {
- "title": "Character",
- "type": "integer"
+ "description": {
+ "title": "Description",
+ "type": "string"
}
},
- "required": [
- "line",
- "character"
- ]
+ "required": ["name", "description"]
},
- "Range": {
- "title": "Range",
- "description": "A range in a file. 0-indexed.",
+ "ContextItemId": {
+ "title": "ContextItemId",
+ "description": "A ContextItemId is a unique identifier for a ContextItem.",
"type": "object",
"properties": {
- "start": {
- "$ref": "#/definitions/Position"
+ "provider_title": {
+ "title": "Provider Title",
+ "type": "string"
},
- "end": {
- "$ref": "#/definitions/Position"
+ "item_id": {
+ "title": "Item Id",
+ "type": "string"
}
},
- "required": [
- "start",
- "end"
- ]
+ "required": ["provider_title", "item_id"]
},
- "RangeInFileWithContents": {
- "title": "RangeInFileWithContents",
- "description": "A range in a file with the contents of the range.",
+ "ContextItemDescription": {
+ "title": "ContextItemDescription",
+ "description": "A ContextItemDescription is a description of a ContextItem that is displayed to the user when they type '@'.\n\nThe id can be used to retrieve the ContextItem from the ContextManager.",
"type": "object",
"properties": {
- "filepath": {
- "title": "Filepath",
+ "name": {
+ "title": "Name",
"type": "string"
},
- "range": {
- "$ref": "#/definitions/Range"
- },
- "contents": {
- "title": "Contents",
+ "description": {
+ "title": "Description",
"type": "string"
+ },
+ "id": {
+ "$ref": "#/definitions/ContextItemId"
}
},
- "required": [
- "filepath",
- "range",
- "contents"
- ]
+ "required": ["name", "description", "id"]
},
- "HighlightedRangeContext": {
- "title": "HighlightedRangeContext",
- "description": "Context for a highlighted range",
+ "ContextItem": {
+ "title": "ContextItem",
+ "description": "A ContextItem is a single item that is stored in the ContextManager.",
"type": "object",
"properties": {
- "range": {
- "$ref": "#/definitions/RangeInFileWithContents"
+ "description": {
+ "$ref": "#/definitions/ContextItemDescription"
+ },
+ "content": {
+ "title": "Content",
+ "type": "string"
},
"editing": {
"title": "Editing",
+ "default": false,
"type": "boolean"
},
- "pinned": {
- "title": "Pinned",
+ "editable": {
+ "title": "Editable",
+ "default": false,
"type": "boolean"
- },
- "display_name": {
- "title": "Display Name",
- "type": "string"
}
},
- "required": [
- "range",
- "editing",
- "pinned",
- "display_name"
- ]
- },
- "SlashCommandDescription": {
- "title": "SlashCommandDescription",
- "type": "object",
- "properties": {
- "name": {
- "title": "Name",
- "type": "string"
- },
- "description": {
- "title": "Description",
- "type": "string"
- }
- },
- "required": [
- "name",
- "description"
- ]
+ "required": ["description", "content"]
},
"src__continuedev__core__main__FullState": {
"title": "FullState",
@@ -284,13 +238,6 @@
"title": "Default Model",
"type": "string"
},
- "highlighted_ranges": {
- "title": "Highlighted Ranges",
- "type": "array",
- "items": {
- "$ref": "#/definitions/HighlightedRangeContext"
- }
- },
"slash_commands": {
"title": "Slash Commands",
"type": "array",
@@ -301,6 +248,13 @@
"adding_highlighted_code": {
"title": "Adding Highlighted Code",
"type": "boolean"
+ },
+ "selected_context_items": {
+ "title": "Selected Context Items",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ContextItem"
+ }
}
},
"required": [
@@ -308,10 +262,10 @@
"active",
"user_input_queue",
"default_model",
- "highlighted_ranges",
"slash_commands",
- "adding_highlighted_code"
+ "adding_highlighted_code",
+ "selected_context_items"
]
}
}
-} \ No newline at end of file
+}