3683
export function to(mode: IChatRequestModeInstructions | Dto<IChatRequestModeInstructions> | undefined): vscode.ChatRequestModeInstructions | undefined {
3684
if (mode) {
3686
>
uri: URI.revive(mode.uri),
3687
>
name: mode.name,
3688
>
content: mode.content,
3689
>
toolReferences: ChatLanguageModelToolReferences.to(revive(mode.toolReferences)),
3690
>
allowedSubagents: mode.allowedSubagents,
3691
>
metadata: mode.metadata,
3692
>
isBuiltin: mode.isBuiltin,
3693
>
};
3694
>
}
3695
return undefined;
3696
}