Path: blob/main/extensions/copilot/src/platform/chat/common/responses.ts
13401 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { Raw } from '@vscode/prompt-tsx';6import { OptionalChatRequestParams } from '../../networking/common/fetch';7import { Source } from './chatMLFetcher';8import { ChatLocation } from './commonTypes';910export interface IRichChatRequestOptions {11/** Name of the request for debugging purposes */12debugName: string;13messages: Raw.ChatMessage[];14location: ChatLocation;15source?: Source;16requestOptions?: Omit<OptionalChatRequestParams, 'n'>;17/** Whether the request was user-initiated (applicable to CAPI requests) */18userInitiatedRequest?: boolean;19}202122