From the course: AI-Powered Development: GitHub Copilot in Visual Studio Code

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Review the hidden reasoning workflow

Review the hidden reasoning workflow

Your prompt isn't sent to Copilot exactly as you wrote it. Copilot uses your text as a starting point but it adds its own layers on top. It's similar to the prompt chaining we looked at earlier. Some of that process is surfaced in the chat panel. Let's see what I mean. So I have scrolled up in the chat responses to look at the history and I'm looking at this query I asked earlier. I see what looks like regex in the code, can you explain what it does? And here is the answer. You may have noticed when I send the requests to Copilot, a series of messages appear in the response window before this final answer appears. You can see those messages in this collapse section. So here's what was actually occurring when I made this query. I'll open this up and I see there's several steps initiating file inspection, identifying regex location, review the HTML, decode the regular expressions, clarify the purpose. Now my simple prompt, I see what looks like regex in the code. Can you explain what it…

Contents