You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Instructions/Labs/LAB_AK_01_examine_settings_interface.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -386,7 +386,7 @@ The Chat view has three modes: **Ask**, **Edit**, and **Agent**. The Ask mode is
386
386
387
387
In addition to the edit controls displayed the editor tab, the Chat view displays a **Keep** button that you can use to apply all edits and an **Undo** button to cancel the edits, and an abbreviated description of the suggested update.
388
388
389
-
1. In the Chat view, select**Keep** to apply the suggested code updates, and thenselect**Done** to end the Chat session.
389
+
1. In the Chat view, select**Keep** to apply the suggested code updates.
390
390
391
391
>**NOTE**: The Chat view's Agent mode is designed for running tasks using an autonomous agent. To conserve GitHub Copilot resources, the Agent mode isn't used in this exercise.
Copy file name to clipboardExpand all lines: Instructions/Labs/LAB_AK_04_develop_unit_tests_xunit.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -300,6 +300,8 @@ Use the following steps to complete this section of the exercise:
300
300
301
301
1. In the Chat view, selectthe**Set Mode** button, and thenselect**Agent**.
302
302
303
+
>**IMPORTANT**: When you use the Chat view in agent mode, GitHub Copilot may make multiple premium requests to complete a single task. Premium requests can be used by user-initiated prompts and follow-up actions Copilot takes on your behalf. The total number of premium requests used is based on the complexity of the task, the number of steps involved, and the model selected.
304
+
303
305
1. To start an automated task that creates a test class for the JsonLoanRepository.GetLoan method, enter the following prompt:
Copy file name to clipboardExpand all lines: Instructions/Labs/LAB_AK_05_refactor_improve_existing_code.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ If you're using a hosted lab environment for this exercise:
40
40
41
41
You're a developer working in the IT department of your local community. The backend systems that support the public library were lost in a fire. Your team needs to develop a temporary solution to help the library staff manage their operations until the system can be replaced. Your team chose GitHub Copilot to accelerate the development process.
42
42
43
-
You handed off an initial version of the library application for review. The review team identified opportunities to improve code quality, performance, readability, maintainability, and security.
43
+
You handed off an initial version of the library application for review. The review team identified opportunities to improve code quality, performance, readability, maintainability, and security.
44
44
45
45
The following updates are assigned to you:
46
46
@@ -963,6 +963,8 @@ Use the following steps to complete this section of the exercise:
963
963
964
964
Agent mode uses a combination of code editing and tool invocation to accomplish the task you specified. As it processes your request, it monitors the outcome of edits and tools, and iterates to resolve any issues that arise. If the agent is unable to resolve an issue, it will ask you to intervene. For example, if the agent uses several iterations working to resolve the same issue, it will pause the process and ask you to provide additional context to clarify your request or cancel the process.
965
965
966
+
>**IMPORTANT**: When you use the Chat view in agent mode, GitHub Copilot may make multiple premium requests to complete a single task. Premium requests can be used by user-initiated prompts and follow-up actions Copilot takes on your behalf. The total number of premium requests used is based on the complexity of the task, the number of steps involved, and the model selected.
967
+
966
968
1. Take a minute to consider the task that you need to assign to the agent.
967
969
968
970
The task is to refactor the **JsonPatronRepository** class. The goal is to replace the foreach loops with LINQ queries that produce the same result as the original foreach code.
@@ -1036,8 +1038,6 @@ Use the following steps to complete this section of the exercise:
1036
1038
1037
1039
1. To accept all updates, select **Keep**.
1038
1040
1039
-
1. To end the Chat session, select **Done**.
1040
-
1041
1041
### Build and run the application
1042
1042
1043
1043
Now that you've refactored the code, it's time to build and run the application to ensure that everything is working correctly. You'll also test the application to ensure that the refactored code is functioning as expected.
0 commit comments