This example assumes using Inception; is in scope and apiKey contains your Inception API key.
123456789
usingvarclient=newInceptionClient(apiKey);varresponse=awaitclient.Edit.CreateEditCompletionAsync(newEditCompletionRequest{Model="mercury-edit-2",MaxTokens=256,Messages=[newEditMessageParam{Content="<|recently_viewed_code_snippets|>\n\n<|/recently_viewed_code_snippets|>\n<|current_file_content|>\ncurrent_file_path: add.py\n<|code_to_edit|>\ndef add(a, b):\n return a - b<|cursor|>\n<|/code_to_edit|>\n<|/current_file_content|>\n<|edit_diff_history|>\n# Implement addition rather than subtraction.\n<|/edit_diff_history|>",}],});