Path: blob/main/extensions/copilot/src/platform/requestLogger/common/capturingToken.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*--------------------------------------------------------------------------------------------*/45/**6* A token that can be used to capture and group related requests together.7*/8export class CapturingToken {9constructor(10/**11* A label to display for the parent tree element.12*/13public readonly label: string,14/**15* An optional icon to display alongside the label.16*/17public readonly icon: string | undefined,18/**19* Optional pre-assigned subAgentInvocationId as session id for trajectory tracking.20* When set, the trajectory will use this ID instead of generating a new one,21* enabling explicit linking between parent tool calls and subagent trajectories.22*/23public readonly subAgentInvocationId?: string,24/**25* Optional name of the subagent being invoked.26* Used alongside subAgentInvocationId to identify the subagent in trajectory tracking.27*/28public readonly subAgentName?: string,29/**30* Optional VS Code chat session ID for trajectory tracking.31* When set, this ID is used directly as the trajectory session ID for the main chat,32* providing a 1:1 mapping between chat sessions and trajectories.33*/34public readonly chatSessionId?: string,35/**36* Optional parent chat session ID for debug log grouping.37* When set, logs from this invocation are written as a child of38* the parent session's directory instead of creating a top-level log file.39*/40public readonly parentChatSessionId?: string,41/**42* Optional label for debug log child sessions (e.g., 'title', 'categorization').43* Used to name the child log file within the parent session's directory.44*/45public readonly debugLogLabel?: string,46) { }47}484950