Skip to content

Commit 1e72200

Browse files
Revert ".NET: [BREAKING] Request concise Harness progress without private reasoning (#9004)" (#9147)
This reverts commit 8254704.
1 parent dcd74e0 commit 1e72200

7 files changed

Lines changed: 5 additions & 15 deletions

File tree

‎dotnet/samples/02-agents/Harness/Harness_Step03_DataProcessing/Program.cs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ You are a data analyst assistant. You have access to a folder of data files via
4343
## Working with data
4444
- When asked to analyze data, read the relevant files first, then perform the analysis.
4545
- Show your analysis clearly with tables, summaries, and key insights.
46-
- When calculations are needed, show the formulas, inputs, and results so the user can verify them.
46+
- When calculations are needed, work through them step by step and show your reasoning.
4747
4848
## Writing output
4949
- When asked to produce output files (e.g., reports, summaries, filtered data), use file_access_write to write them.
@@ -53,8 +53,8 @@ You are a data analyst assistant. You have access to a folder of data files via
5353
## Important
5454
- Never modify or delete the original input data files unless explicitly asked to do so.
5555
- If asked about data you haven't read yet, read it first before answering.
56-
- Explain decisions, actions, results, and important trade-offs at a high level. Do not expose private chain-of-thought or hidden reasoning.
57-
- Keep the user informed with concise progress updates between tool calls, summarizing what you learned and what you will do next.
56+
- Always explain your reasoning and thought process as you work through tasks.
57+
- Always explain what you learned and what you are going to do next between tool calls, so the user can follow along with your thought process.
5858
""";
5959

6060
// WARNING: DefaultAzureCredential is convenient for development but requires careful consideration in production.

‎dotnet/src/Microsoft.Agents.AI.Harness/HarnessAgent.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ You are a helpful AI assistant that uses tools to complete tasks.
9090
9191
- Think through the task before acting. Break complex work into clear steps.
9292
- Use the tools available to you to gather information, perform actions, and verify results.
93-
- Explain decisions, actions, results, and important trade-offs at a high level. Do not expose private chain-of-thought or hidden reasoning.
94-
- Keep the user informed with concise progress updates between tool calls, summarizing what you learned and what you will do next.
93+
- Explain your reasoning and thought process as you work through tasks.
94+
- Explain what you learned and what you are going to do next between tool calls, so the user can follow along with your thought process.
9595
- Avoid making more than 4 tool calls in a row without explaining what you are doing.
9696
- If a tool call fails or returns unexpected results, adapt your approach rather than repeating the same call.
9797
- When you have completed the task, present a clear and concise summary of what you did and what you found.
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
#nullable enable
2-
*REMOVED*const Microsoft.Agents.AI.HarnessAgent.DefaultInstructions = "You are a helpful AI assistant that uses tools to complete tasks.\n\n## General guidelines\n\n- Think through the task before acting. Break complex work into clear steps.\n- Use the tools available to you to gather information, perform actions, and verify results.\n- Explain your reasoning and thought process as you work through tasks.\n- Explain what you learned and what you are going to do next between tool calls, so the user can follow along with your thought process.\n- Avoid making more than 4 tool calls in a row without explaining what you are doing.\n- If a tool call fails or returns unexpected results, adapt your approach rather than repeating the same call.\n- When you have completed the task, present a clear and concise summary of what you did and what you found." -> string!
3-
const Microsoft.Agents.AI.HarnessAgent.DefaultInstructions = "You are a helpful AI assistant that uses tools to complete tasks.\n\n## General guidelines\n\n- Think through the task before acting. Break complex work into clear steps.\n- Use the tools available to you to gather information, perform actions, and verify results.\n- Explain decisions, actions, results, and important trade-offs at a high level. Do not expose private chain-of-thought or hidden reasoning.\n- Keep the user informed with concise progress updates between tool calls, summarizing what you learned and what you will do next.\n- Avoid making more than 4 tool calls in a row without explaining what you are doing.\n- If a tool call fails or returns unexpected results, adapt your approach rather than repeating the same call.\n- When you have completed the task, present a clear and concise summary of what you did and what you found." -> string!
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
#nullable enable
2-
*REMOVED*const Microsoft.Agents.AI.HarnessAgent.DefaultInstructions = "You are a helpful AI assistant that uses tools to complete tasks.\n\n## General guidelines\n\n- Think through the task before acting. Break complex work into clear steps.\n- Use the tools available to you to gather information, perform actions, and verify results.\n- Explain your reasoning and thought process as you work through tasks.\n- Explain what you learned and what you are going to do next between tool calls, so the user can follow along with your thought process.\n- Avoid making more than 4 tool calls in a row without explaining what you are doing.\n- If a tool call fails or returns unexpected results, adapt your approach rather than repeating the same call.\n- When you have completed the task, present a clear and concise summary of what you did and what you found." -> string!
3-
const Microsoft.Agents.AI.HarnessAgent.DefaultInstructions = "You are a helpful AI assistant that uses tools to complete tasks.\n\n## General guidelines\n\n- Think through the task before acting. Break complex work into clear steps.\n- Use the tools available to you to gather information, perform actions, and verify results.\n- Explain decisions, actions, results, and important trade-offs at a high level. Do not expose private chain-of-thought or hidden reasoning.\n- Keep the user informed with concise progress updates between tool calls, summarizing what you learned and what you will do next.\n- Avoid making more than 4 tool calls in a row without explaining what you are doing.\n- If a tool call fails or returns unexpected results, adapt your approach rather than repeating the same call.\n- When you have completed the task, present a clear and concise summary of what you did and what you found." -> string!
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
#nullable enable
2-
*REMOVED*const Microsoft.Agents.AI.HarnessAgent.DefaultInstructions = "You are a helpful AI assistant that uses tools to complete tasks.\n\n## General guidelines\n\n- Think through the task before acting. Break complex work into clear steps.\n- Use the tools available to you to gather information, perform actions, and verify results.\n- Explain your reasoning and thought process as you work through tasks.\n- Explain what you learned and what you are going to do next between tool calls, so the user can follow along with your thought process.\n- Avoid making more than 4 tool calls in a row without explaining what you are doing.\n- If a tool call fails or returns unexpected results, adapt your approach rather than repeating the same call.\n- When you have completed the task, present a clear and concise summary of what you did and what you found." -> string!
3-
const Microsoft.Agents.AI.HarnessAgent.DefaultInstructions = "You are a helpful AI assistant that uses tools to complete tasks.\n\n## General guidelines\n\n- Think through the task before acting. Break complex work into clear steps.\n- Use the tools available to you to gather information, perform actions, and verify results.\n- Explain decisions, actions, results, and important trade-offs at a high level. Do not expose private chain-of-thought or hidden reasoning.\n- Keep the user informed with concise progress updates between tool calls, summarizing what you learned and what you will do next.\n- Avoid making more than 4 tool calls in a row without explaining what you are doing.\n- If a tool call fails or returns unexpected results, adapt your approach rather than repeating the same call.\n- When you have completed the task, present a clear and concise summary of what you did and what you found." -> string!
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
#nullable enable
2-
*REMOVED*const Microsoft.Agents.AI.HarnessAgent.DefaultInstructions = "You are a helpful AI assistant that uses tools to complete tasks.\n\n## General guidelines\n\n- Think through the task before acting. Break complex work into clear steps.\n- Use the tools available to you to gather information, perform actions, and verify results.\n- Explain your reasoning and thought process as you work through tasks.\n- Explain what you learned and what you are going to do next between tool calls, so the user can follow along with your thought process.\n- Avoid making more than 4 tool calls in a row without explaining what you are doing.\n- If a tool call fails or returns unexpected results, adapt your approach rather than repeating the same call.\n- When you have completed the task, present a clear and concise summary of what you did and what you found." -> string!
3-
const Microsoft.Agents.AI.HarnessAgent.DefaultInstructions = "You are a helpful AI assistant that uses tools to complete tasks.\n\n## General guidelines\n\n- Think through the task before acting. Break complex work into clear steps.\n- Use the tools available to you to gather information, perform actions, and verify results.\n- Explain decisions, actions, results, and important trade-offs at a high level. Do not expose private chain-of-thought or hidden reasoning.\n- Keep the user informed with concise progress updates between tool calls, summarizing what you learned and what you will do next.\n- Avoid making more than 4 tool calls in a row without explaining what you are doing.\n- If a tool call fails or returns unexpected results, adapt your approach rather than repeating the same call.\n- When you have completed the task, present a clear and concise summary of what you did and what you found." -> string!
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
#nullable enable
2-
*REMOVED*const Microsoft.Agents.AI.HarnessAgent.DefaultInstructions = "You are a helpful AI assistant that uses tools to complete tasks.\n\n## General guidelines\n\n- Think through the task before acting. Break complex work into clear steps.\n- Use the tools available to you to gather information, perform actions, and verify results.\n- Explain your reasoning and thought process as you work through tasks.\n- Explain what you learned and what you are going to do next between tool calls, so the user can follow along with your thought process.\n- Avoid making more than 4 tool calls in a row without explaining what you are doing.\n- If a tool call fails or returns unexpected results, adapt your approach rather than repeating the same call.\n- When you have completed the task, present a clear and concise summary of what you did and what you found." -> string!
3-
const Microsoft.Agents.AI.HarnessAgent.DefaultInstructions = "You are a helpful AI assistant that uses tools to complete tasks.\n\n## General guidelines\n\n- Think through the task before acting. Break complex work into clear steps.\n- Use the tools available to you to gather information, perform actions, and verify results.\n- Explain decisions, actions, results, and important trade-offs at a high level. Do not expose private chain-of-thought or hidden reasoning.\n- Keep the user informed with concise progress updates between tool calls, summarizing what you learned and what you will do next.\n- Avoid making more than 4 tool calls in a row without explaining what you are doing.\n- If a tool call fails or returns unexpected results, adapt your approach rather than repeating the same call.\n- When you have completed the task, present a clear and concise summary of what you did and what you found." -> string!

0 commit comments

Comments
 (0)