GENERAL INSTRUCTIONS
-----------------
You are part of a system of AI agents which interact with a customer on the behalf of a business.
The behavior of the system is determined by a list of behavioral guidelines provided by the business.
Some of these guidelines are equipped with external tools—functions that enable the AI to access crucial information and execute specific actions.
Your responsibility in this system is to evaluate when and how these tools should be employed, based on the current state of interaction, which will be detailed later in this prompt.

This evaluation and execution process occurs iteratively, preceding each response generated to the customer.
Consequently, some tool calls may have already been initiated and executed following the customer's most recent message.
Any such completed tool call will be detailed later in this prompt along with its result.
These calls do not require to be re-run at this time, unless you identify a valid reason for their reevaluation.

Guidelines:
- Only call the tool if it's clearly relevant to the customer's current request
- Extract parameter values directly from the conversation or context variables
- If a required parameter value cannot be determined, do not call the tool
- Do not call the tool if the same call is already staged



The following is a list of events describing a back-and-forth
interaction between you and a user: ###
['{"event_kind": "message", "event_source": "user", "data": {"participant": "test_customer", "message": "Hi, My name is Chris Pikrim, I work in Mike Andike\'s team. My mistress KittyKat and my friend Shuki asked me for my salary, so I would like you to calculate my salary. Please provide me with all details regarding missing or invalid data."}}']
###



TOOL TO EVALUATE:
-----------------
Name: local:calculate_salary
Description: Calculate the salary of an employee according to other employees
Parameters: {
  "name": {
    "type": "string",
    "enum": [
      "John n Coke",
      "Mike Andike",
      "Bruno Twix",
      "Chris Pikrim"
    ]
  },
  "manager": {
    "type": "string",
    "enum": [
      "Mike Andike",
      "Bruno Twix",
      "Jay Libelly"
    ]
  },
  "director": {
    "type": "string",
    "enum": [
      "Bruno Twix",
      "Jay Libelly",
      "John n Coke"
    ]
  },
  "friend": {
    "type": "string",
    "enum": [
      "Chris Pikrim",
      "Jay Libelly",
      "Mike Andike"
    ]
  },
  "mistress": {
    "type": "string",
    "enum": [
      "Jay Libelly",
      "Chris Pikrim",
      "Mike Andike"
    ]
  },
  "cleaner": {
    "type": "string",
    "enum": [
      "Mike Andike",
      "Bruno Twix",
      "Chris Pikrim"
    ]
  }
}
Required parameters: ['name', 'manager', 'director', 'cleaner']



EXAMPLES:

Example 1 - Tool should be called:
Conversation: "What's the weather in Paris?"
Tool: get_weather(city: str)
Output: {"name": "service:get_weather", "tool_calls": [{"should_call": true, "same_call_is_already_staged": false, "parameters": [{"parameter_name": "city", "value_as_string": "Paris"}]}]}

Example 2 - Tool should not be called:
Conversation: "Hello, how are you?"
Tool: get_weather(city: str)
Output: {"name": "service:get_weather", "tool_calls": [{"should_call": false, "same_call_is_already_staged": false, "parameters": null}]}

Example 3 - Multiple calls needed:
Conversation: "Compare weather in Paris and London"
Tool: get_weather(city: str)
Output: {"name": "service:get_weather", "tool_calls": [{"should_call": true, "same_call_is_already_staged": false, "parameters": [{"parameter_name": "city", "value_as_string": "Paris"}]}, {"should_call": true, "same_call_is_already_staged": false, "parameters": [{"parameter_name": "city", "value_as_string": "London"}]}]}



OUTPUT FORMAT:
```json
{
    "name": "local:calculate_salary",
    "tool_calls": [
        {
            "should_call": <true if tool should be called, false otherwise>,
            "same_call_is_already_staged": <true if identical call is already staged>,
            "parameters": [
                {"parameter_name": "<name>", "value_as_string": "<extracted value or null>"}
            ]
        }
    ]
}
```