remove code-embedded prompt copies
Browse files- README.md +8 -6
- conversational_tool_use_agent/prompts/agent_parallel_system.txt +0 -12
- conversational_tool_use_agent/prompts/agent_system.txt +0 -12
- conversational_tool_use_domain_generation/prompts/domain_followup.txt +0 -1
- conversational_tool_use_simulation/prompts/agent_conversation_evaluation_system.txt +0 -27
- conversational_tool_use_simulation/prompts/agent_message_evaluation_system.txt +0 -28
- conversational_tool_use_simulation/prompts/complete_conversation.txt +0 -3
- conversational_tool_use_simulation/prompts/environment_conversation.txt +0 -4
- conversational_tool_use_simulation/prompts/environment_conversation_message.txt +0 -3
- conversational_tool_use_simulation/prompts/environment_message_evaluation_system.txt +0 -32
- conversational_tool_use_simulation/prompts/environment_simulator_system.txt +0 -21
- conversational_tool_use_simulation/prompts/environment_user_model_message.txt +0 -2
- conversational_tool_use_simulation/prompts/message_conversation.txt +0 -7
- conversational_tool_use_simulation/prompts/message_system_prefix.txt +0 -14
- conversational_tool_use_simulation/prompts/text_message.txt +0 -4
- conversational_tool_use_simulation/prompts/tool_call_message.txt +0 -5
- conversational_tool_use_simulation/prompts/tool_definition.txt +0 -6
- conversational_tool_use_simulation/prompts/tool_execution_message.txt +0 -4
- conversational_tool_use_simulation/prompts/user_agent_environment_conversation_evaluation_system.txt +0 -42
- conversational_tool_use_simulation/prompts/user_message_evaluation_system.txt +0 -29
- conversational_tool_use_simulation/prompts/user_simulator_system.txt +0 -16
README.md
CHANGED
|
@@ -5,22 +5,24 @@ pretty_name: NeMo Gym Conversational Tool-Use Assets
|
|
| 5 |
|
| 6 |
# NeMo Gym Conversational Tool-Use Assets
|
| 7 |
|
| 8 |
-
This dataset repository stores
|
| 9 |
-
|
|
|
|
| 10 |
|
| 11 |
## Contents
|
| 12 |
|
| 13 |
-
- `conversational_tool_use_domain_generation/prompts`:
|
| 14 |
- `conversational_tool_use_domain_generation/prompt_history`: historical domain-generation prompt revisions.
|
| 15 |
- `conversational_tool_use_policy_tool_generation/prompts`: policy, tool, refinement, and judge prompts.
|
| 16 |
- `conversational_tool_use_policy_tool_generation/golden_policies`: eight policy/tool reference pairs used in prompts.
|
| 17 |
- `conversational_tool_use_policy_tool_generation/prompt_history`: historical policy/tool-generation prompt revisions.
|
| 18 |
- `conversational_tool_use_scenario_generation/prompts`: scenario-generation system and user prompts.
|
| 19 |
-
|
| 20 |
-
|
|
|
|
| 21 |
|
| 22 |
Run the conversational tool-use simulation resource server's preparation command once per checkout to download and
|
| 23 |
-
checksum-validate
|
| 24 |
|
| 25 |
```bash
|
| 26 |
python -m resources_servers.conversational_tool_use_simulation.prepare
|
|
|
|
| 5 |
|
| 6 |
# NeMo Gym Conversational Tool-Use Assets
|
| 7 |
|
| 8 |
+
This dataset repository stores prompts and reference assets that were authored as standalone files for NeMo Gym's
|
| 9 |
+
conversational tool-use generation pipeline. It is an asset bundle for Gym components, not a training or evaluation
|
| 10 |
+
dataset.
|
| 11 |
|
| 12 |
## Contents
|
| 13 |
|
| 14 |
+
- `conversational_tool_use_domain_generation/prompts`: the domain-generation prompt.
|
| 15 |
- `conversational_tool_use_domain_generation/prompt_history`: historical domain-generation prompt revisions.
|
| 16 |
- `conversational_tool_use_policy_tool_generation/prompts`: policy, tool, refinement, and judge prompts.
|
| 17 |
- `conversational_tool_use_policy_tool_generation/golden_policies`: eight policy/tool reference pairs used in prompts.
|
| 18 |
- `conversational_tool_use_policy_tool_generation/prompt_history`: historical policy/tool-generation prompt revisions.
|
| 19 |
- `conversational_tool_use_scenario_generation/prompts`: scenario-generation system and user prompts.
|
| 20 |
+
|
| 21 |
+
The rollout simulation server and policy agent keep their prompt templates in their Python implementations. Those
|
| 22 |
+
templates are not duplicated in this dataset.
|
| 23 |
|
| 24 |
Run the conversational tool-use simulation resource server's preparation command once per checkout to download and
|
| 25 |
+
checksum-validate the file-backed generation assets:
|
| 26 |
|
| 27 |
```bash
|
| 28 |
python -m resources_servers.conversational_tool_use_simulation.prepare
|
conversational_tool_use_agent/prompts/agent_parallel_system.txt
DELETED
|
@@ -1,12 +0,0 @@
|
|
| 1 |
-
You are a customer service agent that helps the user. The policy that determines how you should respond to requests from users is described below between the <policy> and </policy> tags.
|
| 2 |
-
|
| 3 |
-
In each turn you can either:
|
| 4 |
-
- Send a message to the user.
|
| 5 |
-
- Make one or more tool calls.
|
| 6 |
-
You cannot do both at the same time.
|
| 7 |
-
|
| 8 |
-
<policy>
|
| 9 |
-
{domain_policy}
|
| 10 |
-
</policy>
|
| 11 |
-
|
| 12 |
-
Try to be helpful and always follow the policy.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
conversational_tool_use_agent/prompts/agent_system.txt
DELETED
|
@@ -1,12 +0,0 @@
|
|
| 1 |
-
You are a customer service agent that helps the user. The policy that determines how you should respond to requests from users is described below between the <policy> and </policy> tags.
|
| 2 |
-
|
| 3 |
-
In each turn you can either:
|
| 4 |
-
- Send a message to the user.
|
| 5 |
-
- Make a tool call.
|
| 6 |
-
You cannot do both at the same time.
|
| 7 |
-
|
| 8 |
-
<policy>
|
| 9 |
-
{domain_policy}
|
| 10 |
-
</policy>
|
| 11 |
-
|
| 12 |
-
Try to be helpful and always follow the policy.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
conversational_tool_use_domain_generation/prompts/domain_followup.txt
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
Do not repeat these domains. Try looking for other domains or find specific sub-domains.
|
|
|
|
|
|
conversational_tool_use_simulation/prompts/agent_conversation_evaluation_system.txt
DELETED
|
@@ -1,27 +0,0 @@
|
|
| 1 |
-
# Instructions
|
| 2 |
-
- Your task is to evaluate the actions taken by a customer service representative in an interaction between a customer and the representative.
|
| 3 |
-
- The steps in the interaction are shown in order between the <steps> and </steps> tags.
|
| 4 |
-
- Each step in the interaction is either a message from the customer to the representative, a message from the representative to the customer, the execution of a tool, or the result of executing a tool.
|
| 5 |
-
- A message from the customer to the representative or from the representative to the customer is shown between <message> and </message> tags.
|
| 6 |
-
- An execution of a tool can be requested by the representative, and is shown between <execute_tool> and </execute_tool> tags.
|
| 7 |
-
- When the representative requests the execution of a tool, the next step in the interaction should be the result of executing the tool, which is shown between <tool_result> and </tool_result> tags.
|
| 8 |
-
- The way that the representative handles customer requests is described below between the <policy> and </policy> tags.
|
| 9 |
-
- The definitions of the tools that are available to the representative for execution are provided below between the <tools> and </tools> tags, with each tool definition appearing between <tool> and </tool> tags.
|
| 10 |
-
- Whenever the representative takes an action, the representative can either send a message to the customer, or execute a tool.
|
| 11 |
-
- The actions of the representative should be considered a success if they are helpful in addressing the request from the customer.
|
| 12 |
-
- The actions of the representative should be considered a failure if they do not help to handle the customer's request, or are not consistent with the steps in the interaction that precede them or the policy for handling customer requests.
|
| 13 |
-
|
| 14 |
-
<policy>
|
| 15 |
-
{policy}
|
| 16 |
-
</policy>
|
| 17 |
-
|
| 18 |
-
<tools>
|
| 19 |
-
{tool_definitions}
|
| 20 |
-
</tools>
|
| 21 |
-
|
| 22 |
-
- The representative can transfer the customer to another agent. This should be done if the customer's request cannot be handled by the representative according to the policy, but should not be done if the representative can handle the request under the policy.
|
| 23 |
-
- In this interaction, the representative should {transfer_instruction}transfer the customer to another agent.
|
| 24 |
-
- The actions of the representative should be considered a failure if the representative transfers the customer to another agent when they should not transfer the customer, or if the representative does not transfer the customer to another agent when they should transfer the customer.
|
| 25 |
-
|
| 26 |
-
Please output the evaluation of the actions taken by the customer service representative and an explanation for the evaluation using the following JSON schema:
|
| 27 |
-
{evaluation_schema}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
conversational_tool_use_simulation/prompts/agent_message_evaluation_system.txt
DELETED
|
@@ -1,28 +0,0 @@
|
|
| 1 |
-
# Instructions
|
| 2 |
-
- Your task is to evaluate one step in an interaction between a customer and a customer service representative.
|
| 3 |
-
- The previous steps in the interaction are shown in order between the <previous_steps> and </previous_steps> tags.
|
| 4 |
-
- The step that you are to evaluate is the current step, which is shown between the <current_step> and </current_step> tags.
|
| 5 |
-
- Each step in the interaction is either a message from the customer to the representative, a message from the representative to the customer, the execution of a tool, or the result of executing a tool.
|
| 6 |
-
- A message from the customer to the representative or from the representative to the customer is shown between <message> and </message> tags.
|
| 7 |
-
- An execution of a tool can be requested by the representative, and is shown between <execute_tool> and </execute_tool> tags.
|
| 8 |
-
- When the representative requests the execution of a tool, the next step in the interaction should be the result of executing the tool, which is shown between <tool_result> and </tool_result> tags.
|
| 9 |
-
- The way that the representative handles customer requests is described below between the <policy> and </policy> tags.
|
| 10 |
-
|
| 11 |
-
<policy>
|
| 12 |
-
{policy}
|
| 13 |
-
</policy>
|
| 14 |
-
|
| 15 |
-
- The definitions of the tools that are available to the representative for execution are provided below between the <tools> and </tools> tags, with each tool definition appearing between <tool> and </tool> tags.
|
| 16 |
-
|
| 17 |
-
<tools>
|
| 18 |
-
{tool_definitions}
|
| 19 |
-
</tools>
|
| 20 |
-
|
| 21 |
-
- The current step that you are to evaluate is an action by the representative.
|
| 22 |
-
- The representative can either send a message to the customer, or execute a tool.
|
| 23 |
-
- The current step should be considered a success if the action taken by the representative is helpful in addressing the request from the customer.
|
| 24 |
-
- The current step should be considered a failure if the action taken by the representative does not help to handle the customer's request, or is not consistent with the previous steps in the interaction or the policy for handling customer requests.
|
| 25 |
-
- If the current step is the execution of a tool, then the current step should be considered a success if the tool to be executed helps to address the customer's request, the arguments for the tool execution conform to the tool definition, and the arguments are consistent with the previous steps in the conversation. Otherwise, the current step should be considered a failure.
|
| 26 |
-
|
| 27 |
-
Please output the evaluation of the current step and an explanation for the evaluation using the following JSON schema:
|
| 28 |
-
{evaluation_schema}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
conversational_tool_use_simulation/prompts/complete_conversation.txt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
<steps>
|
| 2 |
-
{steps}
|
| 3 |
-
</steps>
|
|
|
|
|
|
|
|
|
|
|
|
conversational_tool_use_simulation/prompts/environment_conversation.txt
DELETED
|
@@ -1,4 +0,0 @@
|
|
| 1 |
-
<conversation>
|
| 2 |
-
{conversation}
|
| 3 |
-
</conversation>
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
conversational_tool_use_simulation/prompts/environment_conversation_message.txt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
<{sender}>
|
| 2 |
-
{message}
|
| 3 |
-
</{sender}>
|
|
|
|
|
|
|
|
|
|
|
|
conversational_tool_use_simulation/prompts/environment_message_evaluation_system.txt
DELETED
|
@@ -1,32 +0,0 @@
|
|
| 1 |
-
# Instructions
|
| 2 |
-
- Your task is to evaluate one step in an interaction between a customer and a customer service representative.
|
| 3 |
-
- The previous steps in the interaction are shown in order between the <previous_steps> and </previous_steps> tags.
|
| 4 |
-
- The step that you are to evaluate is the current step, which is shown between the <current_step> and </current_step> tags.
|
| 5 |
-
- Each step in the interaction is either a message from the customer to the representative, a message from the representative to the customer, the execution of a tool, or the result of executing a tool.
|
| 6 |
-
- A message from the customer to the representative or from the representative to the customer is shown between <message> and </message> tags.
|
| 7 |
-
- An execution of a tool can be requested by the representative, and is shown between <execute_tool> and </execute_tool> tags.
|
| 8 |
-
- When the representative requests the execution of a tool, the next step in the interaction should be the result of executing the tool, which is shown between <tool_result> and </tool_result> tags.
|
| 9 |
-
- The way that the representative handles customer requests is described below between the <policy> and </policy> tags.
|
| 10 |
-
|
| 11 |
-
<policy>
|
| 12 |
-
{policy}
|
| 13 |
-
</policy>
|
| 14 |
-
|
| 15 |
-
- The scenario that describes the customer and the tasks they are trying to complete is shown below between the <scenario> and </scenario> tags.
|
| 16 |
-
- The definitions of the tools that are available for execution are provided below between the <tools> and </tools> tags, with each tool definition appearing between <tool> and </tool> tags.
|
| 17 |
-
|
| 18 |
-
<scenario>
|
| 19 |
-
{customer_scenario}
|
| 20 |
-
</scenario>
|
| 21 |
-
|
| 22 |
-
<tools>
|
| 23 |
-
{tool_definitions}
|
| 24 |
-
</tools>
|
| 25 |
-
|
| 26 |
-
- The current step that you are to evaluate is the result of executing a tool.
|
| 27 |
-
- The previous step in the interaction should specify the tool to be executed and the arguments for execution.
|
| 28 |
-
- The current step should be considered a success if the tool execution result conforms to the definition of the tool being executed, and is consistent with the information about the customer in the scenario and the previous steps in the interaction.
|
| 29 |
-
- The current step should be considered a failure if the tool execution result is not consistent with the definition of the tool being executed, the information about the customer in the scenario, or the previous steps in the interaction.
|
| 30 |
-
|
| 31 |
-
Please output the evaluation of the current step and an explanation for the evaluation using the following JSON schema:
|
| 32 |
-
{evaluation_schema}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
conversational_tool_use_simulation/prompts/environment_simulator_system.txt
DELETED
|
@@ -1,21 +0,0 @@
|
|
| 1 |
-
# Instructions
|
| 2 |
-
- Your task is to generate the result of executing a tool.
|
| 3 |
-
- The tool is executed by a customer service representative in the context of a conversation with a customer to retrieve information or accomplish a task.
|
| 4 |
-
- The conversation between the customer and the representative is shown between <conversation> and </conversation> tags, with each message sent by the customer appearing between <customer> and </customer> tags, and each message sent by the customer service representative appearing between <representative> and </representative> tags.
|
| 5 |
-
- The way that the representative handles customer requests is described below between the <policy> and </policy> tags.
|
| 6 |
-
- The scenario that describes the customer and the tasks that they are trying to complete is shown below between the <scenario> and </scenario> tags.
|
| 7 |
-
- The definitions of the available tools are provided below between the <tools> and </tools> tags, with each tool definition appearing between <tool> and </tool> tags.
|
| 8 |
-
|
| 9 |
-
<policy>
|
| 10 |
-
{domain_policy}
|
| 11 |
-
</policy>
|
| 12 |
-
|
| 13 |
-
<scenario>
|
| 14 |
-
{customer_scenario}
|
| 15 |
-
</scenario>
|
| 16 |
-
|
| 17 |
-
<tools>
|
| 18 |
-
{tool_definitions}
|
| 19 |
-
</tools>
|
| 20 |
-
|
| 21 |
-
Please make sure that the tool execution result that you generate is consistent with the definition of the tool being executed, the information about the customer in the scenario, and the previous conversation between the customer and the representative. Please output only the execution result of the tool that is to be executed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
conversational_tool_use_simulation/prompts/environment_user_model_message.txt
DELETED
|
@@ -1,2 +0,0 @@
|
|
| 1 |
-
{conversation}Tool to execute: {tool_name}
|
| 2 |
-
Arguments for tool execution: {arguments}
|
|
|
|
|
|
|
|
|
conversational_tool_use_simulation/prompts/message_conversation.txt
DELETED
|
@@ -1,7 +0,0 @@
|
|
| 1 |
-
<previous_steps>
|
| 2 |
-
{previous_steps}
|
| 3 |
-
</previous_steps>
|
| 4 |
-
|
| 5 |
-
<current_step>
|
| 6 |
-
{current_step}
|
| 7 |
-
</current_step>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
conversational_tool_use_simulation/prompts/message_system_prefix.txt
DELETED
|
@@ -1,14 +0,0 @@
|
|
| 1 |
-
# Instructions
|
| 2 |
-
- Your task is to evaluate one step in an interaction between a customer and a customer service representative.
|
| 3 |
-
- The previous steps in the interaction are shown in order between the <previous_steps> and </previous_steps> tags.
|
| 4 |
-
- The step that you are to evaluate is the current step, which is shown between the <current_step> and </current_step> tags.
|
| 5 |
-
- Each step in the interaction is either a message from the customer to the representative, a message from the representative to the customer, the execution of a tool, or the result of executing a tool.
|
| 6 |
-
- A message from the customer to the representative or from the representative to the customer is shown between <message> and </message> tags.
|
| 7 |
-
- An execution of a tool can be requested by the representative, and is shown between <execute_tool> and </execute_tool> tags.
|
| 8 |
-
- When the representative requests the execution of a tool, the next step in the interaction should be the result of executing the tool, which is shown between <tool_result> and </tool_result> tags.
|
| 9 |
-
- The way that the representative handles customer requests is described below between the <policy> and </policy> tags.
|
| 10 |
-
|
| 11 |
-
<policy>
|
| 12 |
-
{policy}
|
| 13 |
-
</policy>
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
conversational_tool_use_simulation/prompts/text_message.txt
DELETED
|
@@ -1,4 +0,0 @@
|
|
| 1 |
-
<message>
|
| 2 |
-
Sender: {sender}
|
| 3 |
-
Content: {content}
|
| 4 |
-
</message>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
conversational_tool_use_simulation/prompts/tool_call_message.txt
DELETED
|
@@ -1,5 +0,0 @@
|
|
| 1 |
-
<execute_tool>
|
| 2 |
-
Execution ID: {execution_id}
|
| 3 |
-
Tool name: {tool_name}
|
| 4 |
-
Arguments for execution: {arguments}
|
| 5 |
-
</execute_tool>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
conversational_tool_use_simulation/prompts/tool_definition.txt
DELETED
|
@@ -1,6 +0,0 @@
|
|
| 1 |
-
<tool>
|
| 2 |
-
Name: {name}
|
| 3 |
-
Documentation: {documentation}
|
| 4 |
-
Parameters in JSON Schema format: {parameters}
|
| 5 |
-
Return type in JSON Schema format: {return_type}
|
| 6 |
-
</tool>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
conversational_tool_use_simulation/prompts/tool_execution_message.txt
DELETED
|
@@ -1,4 +0,0 @@
|
|
| 1 |
-
<tool_result>
|
| 2 |
-
Execution ID: {execution_id}
|
| 3 |
-
Execution result: {execution_result}
|
| 4 |
-
</tool_result>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
conversational_tool_use_simulation/prompts/user_agent_environment_conversation_evaluation_system.txt
DELETED
|
@@ -1,42 +0,0 @@
|
|
| 1 |
-
# Instructions
|
| 2 |
-
- Your task is to evaluate an interaction between a customer and a customer service representative.
|
| 3 |
-
- Please evaluate separately the actions of the customer, the actions of the representative, and the tool results in the interaction.
|
| 4 |
-
- The steps in the interaction are shown in order between the <steps> and </steps> tags.
|
| 5 |
-
- Each step in the interaction is either a message from the customer to the representative, a message from the representative to the customer, the execution of a tool, or the result of executing a tool.
|
| 6 |
-
- A message from the customer to the representative or from the representative to the customer is shown between <message> and </message> tags.
|
| 7 |
-
- An execution of a tool can be requested by the representative, and is shown between <execute_tool> and </execute_tool> tags.
|
| 8 |
-
- When the representative requests the execution of a tool, the next step in the interaction should be the result of executing the tool, which is shown between <tool_result> and </tool_result> tags.
|
| 9 |
-
- The way that the representative handles customer requests is described below between the <policy> and </policy> tags.
|
| 10 |
-
- The definitions of the tools that are available to the representative for execution are provided below between the <tools> and </tools> tags, with each tool definition appearing between <tool> and </tool> tags.
|
| 11 |
-
- The scenario that describes the customer and the tasks they are trying to complete is shown below between the <scenario> and </scenario> tags.
|
| 12 |
-
|
| 13 |
-
<policy>
|
| 14 |
-
{policy}
|
| 15 |
-
</policy>
|
| 16 |
-
|
| 17 |
-
<tools>
|
| 18 |
-
{tool_definitions}
|
| 19 |
-
</tools>
|
| 20 |
-
|
| 21 |
-
<scenario>
|
| 22 |
-
{customer_scenario}
|
| 23 |
-
</scenario>
|
| 24 |
-
|
| 25 |
-
- The goal of the customer is to complete the tasks described in the scenario by communicating with the representative, while maintaining consistency with the information about the customer in the scenario.
|
| 26 |
-
- The actions of the customer should be considered a success if they follow naturally from the interaction with the representative and are consistent with the scenario.
|
| 27 |
-
- The actions of the customer should be considered a failure if they do not advance the interaction or are not consistent with the scenario.
|
| 28 |
-
- The customer should send the message '{complete_indicator}' to end the interaction with the representative when their tasks have been completed.
|
| 29 |
-
- The customer should send the message '{transfer_indicator}' when they have been transferred to another agent by the representative.
|
| 30 |
-
- The actions of the customer should be considered a failure if the customer ends the interaction when their tasks have not yet been completed, or sends the message '{transfer_indicator}' when they have not yet been transferred to another agent by the representative.
|
| 31 |
-
- Whenever the representative takes an action, the representative can either send a message to the customer, or execute a tool.
|
| 32 |
-
- The actions of the representative should be considered a success if they are helpful in addressing the request from the customer.
|
| 33 |
-
- The actions of the representative should be considered a failure if they do not help to handle the customer's request, or are not consistent with the steps in the interaction that precede them or the policy for handling customer requests.
|
| 34 |
-
- The representative can transfer the customer to another agent. This should be done if the customer's request cannot be handled by the representative according to the policy, but should not be done if the representative can handle the request under the policy.
|
| 35 |
-
- In this interaction, the representative should {transfer_instruction}transfer the customer to another agent.
|
| 36 |
-
- The actions of the representative should be considered a failure if the representative transfers the customer to another agent when they should not transfer the customer, or if the representative does not transfer the customer to another agent when they should transfer the customer.
|
| 37 |
-
- When the representative executes a tool, the tool execution step should specify the tool to be executed and the arguments for execution, and the next step should be the result of executing the tool.
|
| 38 |
-
- The tool results in the interaction should be considered a success if they conform to the definitions of the tools being executed, and are consistent with the arguments for execution, the information about the customer in the scenario, the interaction between the customer and the representative, and each other.
|
| 39 |
-
- The tool results in the interaction should be considered a failure if they are not consistent with the definitions of the tools being executed, the arguments for execution, the information about the customer in the scenario, the interaction between the customer and the representative, or each other.
|
| 40 |
-
|
| 41 |
-
Please output the evaluation of the actions taken by the customer, the evaluation of the actions taken by the customer service representative, the evaluation of the tool results in the interaction, and explanations for the evaluations using the following JSON schema:
|
| 42 |
-
{evaluation_schema}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
conversational_tool_use_simulation/prompts/user_message_evaluation_system.txt
DELETED
|
@@ -1,29 +0,0 @@
|
|
| 1 |
-
# Instructions
|
| 2 |
-
- Your task is to evaluate one step in an interaction between a customer and a customer service representative.
|
| 3 |
-
- The previous steps in the interaction are shown in order between the <previous_steps> and </previous_steps> tags.
|
| 4 |
-
- The step that you are to evaluate is the current step, which is shown between the <current_step> and </current_step> tags.
|
| 5 |
-
- Each step in the interaction is either a message from the customer to the representative, a message from the representative to the customer, the execution of a tool, or the result of executing a tool.
|
| 6 |
-
- A message from the customer to the representative or from the representative to the customer is shown between <message> and </message> tags.
|
| 7 |
-
- An execution of a tool can be requested by the representative, and is shown between <execute_tool> and </execute_tool> tags.
|
| 8 |
-
- When the representative requests the execution of a tool, the next step in the interaction should be the result of executing the tool, which is shown between <tool_result> and </tool_result> tags.
|
| 9 |
-
- The way that the representative handles customer requests is described below between the <policy> and </policy> tags.
|
| 10 |
-
|
| 11 |
-
<policy>
|
| 12 |
-
{policy}
|
| 13 |
-
</policy>
|
| 14 |
-
|
| 15 |
-
- The scenario that describes the customer and the tasks they are trying to complete is shown below between the <scenario> and </scenario> tags.
|
| 16 |
-
|
| 17 |
-
<scenario>
|
| 18 |
-
{customer_scenario}
|
| 19 |
-
</scenario>
|
| 20 |
-
|
| 21 |
-
- The current step that you are to evaluate is a message from the customer to the representative.
|
| 22 |
-
- The current step should be considered a success if the message from the customer to the representative follows naturally from the previous steps in the interaction and is consistent with the information about the customer in the scenario.
|
| 23 |
-
- If the message from the customer to the representative in the current step does not advance the interaction, is not consistent with the scenario, or is not consistent with the previous steps in the interaction, then the current step should be considered a failure.
|
| 24 |
-
- If the current step is the first step in the interaction, then it should be considered a success if it is consistent with the scenario, and it should be considered a failure if it is not consistent with the scenario. A first step can be successful even if the customer does not include some information that would be needed by the representative, because the representative can request the information from the customer in later steps.
|
| 25 |
-
- The customer will send the message '{complete_indicator}' to indicate that they would like to end the interaction with the representative. If the current step contains this message, then it should be considered a success if the customer's tasks have been completed by the interaction, and it should be considered a failure if the customer's tasks have not yet been completed.
|
| 26 |
-
- The customer will send the message '{transfer_indicator}' to indicate that they have been transferred to another agent by the representative. If the current step contains this message, then it should be considered a success if the representative previously transferred the customer to another agent, and it should be considered a failure if the representative has not yet transferred the customer to another agent.
|
| 27 |
-
|
| 28 |
-
Please output the evaluation of the current step and an explanation for the evaluation using the following JSON schema:
|
| 29 |
-
{evaluation_schema}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
conversational_tool_use_simulation/prompts/user_simulator_system.txt
DELETED
|
@@ -1,16 +0,0 @@
|
|
| 1 |
-
# Instructions
|
| 2 |
-
- You are playing the role of a customer contacting a customer service representative.
|
| 3 |
-
- The scenario that describes the customer that you are acting as and the tasks that are to be completed is included below between the <scenario> and </scenario> tags.
|
| 4 |
-
- Strictly follow the instructions in the scenario description.
|
| 5 |
-
- To start a conversation, please make a request to the customer service representative in order to complete the tasks described in the scenario.
|
| 6 |
-
- Generate one message at a time, maintaining natural conversation flow.
|
| 7 |
-
- Each message should be a message from a customer to the representative.
|
| 8 |
-
- The goal is to continue the conversation until the tasks are complete.
|
| 9 |
-
- If the tasks have been completed during the previous messages in the interaction with the customer service representative, then instead of generating a message, output just '{complete_indicator}' to indicate that the conversation should end.
|
| 10 |
-
- If you are transferred to another agent by the customer service representative in a previous message in the conversation, then instead of generating a message, output just '{transfer_indicator}' to indicate the transfer.
|
| 11 |
-
|
| 12 |
-
<scenario>
|
| 13 |
-
{customer_scenario}
|
| 14 |
-
</scenario>
|
| 15 |
-
|
| 16 |
-
Remember: The goal is to create realistic, natural conversations while strictly adhering to the provided instructions and maintaining character consistency.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|