File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ export interface BuildPayloadParams {
2020 fileAttachments ?: Array < { id : string ; key : string ; size : number ; [ key : string ] : unknown } >
2121 commands ?: string [ ]
2222 chatId ?: string
23+ conversationId ?: string
24+ prefetch ?: boolean
2325 implicitFeedback ?: string
2426}
2527
@@ -64,6 +66,10 @@ export async function buildCopilotRequestPayload(
6466 fileAttachments,
6567 commands,
6668 chatId,
69+ conversationId,
70+ prefetch,
71+ conversationHistory,
72+ implicitFeedback,
6773 } = params
6874
6975 const selectedModel = options . selectedModel
@@ -154,6 +160,12 @@ export async function buildCopilotRequestPayload(
154160 version : SIM_AGENT_VERSION ,
155161 ...( contexts && contexts . length > 0 ? { context : contexts } : { } ) ,
156162 ...( chatId ? { chatId } : { } ) ,
163+ ...( conversationId ? { conversationId } : { } ) ,
164+ ...( Array . isArray ( conversationHistory ) && conversationHistory . length > 0
165+ ? { conversationHistory }
166+ : { } ) ,
167+ ...( typeof prefetch === 'boolean' ? { prefetch } : { } ) ,
168+ ...( implicitFeedback ? { implicitFeedback } : { } ) ,
157169 ...( processedFileContents . length > 0 ? { fileAttachments : processedFileContents } : { } ) ,
158170 ...( integrationTools . length > 0 ? { integrationTools } : { } ) ,
159171 ...( credentials ? { credentials } : { } ) ,
You can’t perform that action at this time.
0 commit comments