import { URI } from "../../../../base/common/uri.js"; import { IAgentFeedbackVariableEntry } from "../../../../workbench/contrib/chat/common/attachments/chatVariableEntries.js"; import { IAgentFeedback } from "./agentFeedbackModel.js"; /** * Stable prefix used for the id of the agent feedback chat attachment. One * attachment exists per session resource, so the id is the prefix plus the * session resource string. */ export declare const ATTACHMENT_ID_PREFIX = "agentFeedback:"; /** * Builds the chat attachment variable entry that carries the given feedback * items into a chat request. The shape is shared between the reactive * attachment contribution (non-agent-host sessions) and the agent-host submit * flow so both produce identical attachments. * * For agent-host sessions, pass {@link annotationsResource} (the session's * annotations channel URI) so the request emits * {@link MessageAnnotationsAttachment}s referencing the specific comments. */ export declare function createAgentFeedbackVariableEntry(sessionResource: URI, feedbackItems: readonly IAgentFeedback[], annotationsResource?: URI): IAgentFeedbackVariableEntry; /** * Builds a rich string value for the agent feedback attachment from the * selection and diff context already stored on each feedback item. This value * is what the agent ultimately reads as the textual representation of the * feedback. */ export declare function buildAgentFeedbackValue(feedbackItems: readonly IAgentFeedback[]): string; /** Appends draft feedback comments to a new-session prompt. */ export declare function buildNewSessionPrompt(prompt: string, feedbackItems: readonly IAgentFeedback[], workspaceRoots: readonly URI[]): string;