Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/src/extension/prompts/node/inline/inlineChatNotebookCommon.ts
13405 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
export interface NotebookPromptPriority {
7
/**
8
* Core information for notebook, e.g., custom rules for Jupyter Notebook.
9
*/
10
core?: number;
11
context?: number;
12
/*
13
* The priority for runtime core states, e.g., variables.
14
*/
15
runtimeCore?: number;
16
/**
17
* The priority for Conversation History.
18
*/
19
history?: number;
20
/*
21
* The priority for the rest, should be dropped first.
22
*/
23
other?: number;
24
}
25
26
export const promptPriorities: NotebookPromptPriority = {
27
core: 1000,
28
context: 800,
29
runtimeCore: 600,
30
history: 500,
31
other: 100
32
};
33