Path: blob/main/extensions/copilot/src/extension/prompt/node/responseProcessorContext.ts
13399 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 { InteractionOutcomeComputer, ISessionTurnStorage, OutcomeAnnotation } from '../../inlineChat/node/promptCraftingTypes';7import { Turn } from '../common/conversation';8import { IResponseProcessorContext } from './intents';910export class ResponseProcessorContext implements IResponseProcessorContext {1112constructor(13public readonly chatSessionId: string,14public readonly turn: Turn,15public readonly messages: readonly Raw.ChatMessage[],16private readonly _interactionOutcomeComputer: InteractionOutcomeComputer17) { }1819addAnnotations(annotations: OutcomeAnnotation[]): void {20this._interactionOutcomeComputer.addAnnotations(annotations);21}2223storeInInlineSession(store: ISessionTurnStorage): void {24this._interactionOutcomeComputer.storeInInlineSession(store);25}26}272829