Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/src/platform/chat/common/responses.ts
13401 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
import { Raw } from '@vscode/prompt-tsx';
7
import { OptionalChatRequestParams } from '../../networking/common/fetch';
8
import { Source } from './chatMLFetcher';
9
import { ChatLocation } from './commonTypes';
10
11
export interface IRichChatRequestOptions {
12
/** Name of the request for debugging purposes */
13
debugName: string;
14
messages: Raw.ChatMessage[];
15
location: ChatLocation;
16
source?: Source;
17
requestOptions?: Omit<OptionalChatRequestParams, 'n'>;
18
/** Whether the request was user-initiated (applicable to CAPI requests) */
19
userInitiatedRequest?: boolean;
20
}
21
22