PranavTM commited on
Commit
e6582e5
·
verified ·
1 Parent(s): a5773d9

Update test_data_function_calling.json

Browse files
Files changed (1) hide show
  1. test_data_function_calling.json +25 -17
test_data_function_calling.json CHANGED
@@ -1,8 +1,8 @@
1
  [
2
  {
3
- "role": "system",
4
  "agent_name": "root_agent",
5
- "text": "System Instruction:\n Your responsibility is to select the most appropriate agent to handle a user query. **NEVER answer the query yourself.**\n Instead, follow these strict rules:\n 1) If the user asks about 'find a date to apply leave' or list of holidays or best holiday window or anything related to holidays / festivals, **handoff to `holiday_agent`**.\n 2) If the user asks about leave policies, different types of leave (such as sabbatical leave, casual leave, sick leave), or general leave-related rules, **handoff to `policy_agent`**.\n 3) If user query is about\n a) Leave application then **handoff to `leave_apply_agent`** agent\n b) Enquiring their leave balance **handoff to `user_leave_balance_agent`** agent\n c) Enquiring details about already applied leaves/ upcoming leave dates **handoff to `personal_leave_details_agent`** agent\n d) Enquiring about their peer leaves or Manager details **handoff to `teammates_leave_details_agent`** agent\n 4) If query is about date, day, month, year **handoff to `date_agent`** agent\n - If you cannot determine the best agent, **handoff to `policy_agent` by default.** agent\n After analyzing the query always handoff to appropriate agent \n You **must** immediately transfer the query and **must not respond with anything else.**\nYou are an agent. Your internal name is 'root_agent'.\nYou have a list of other agents to transfer to:\nAgent name: holiday_agent\nAgent description: You are an helpful agent used to answer user queries related to holidays related to Techmojo.You are aware of the holidays provided to employees.\nAgent name: policy_agent\nAgent description: You are an helpful agent used to answer user queries related to leave policies and other question related to Techmojo.\n You are aware of all the policies related to leaves and general questions related to the organisation .\nAgent name: leave_apply_agent\nAgent description: You are an helpful agent used to apply leave for give dates, if not possible return the reason\nAgent name: user_leave_balance_agent\nAgent description: You help user to find his leave balance, remaining leaves, number of leaves available to apply\nAgent name: personal_leave_details_agent\nAgent description: You help with queries related to checking already applied leaves, upcoming leaves\nAgent name: teammates_leave_details_agent\nAgent description: You help to check leave details of use's teammates who are under user's manager\nAgent name: date_agent\nAgent description: Helps to find date, day, month, year\nIf you are the best to answer the question according to your description, you\ncan answer it.\nIf another agent is better for answering the question according to its\ndescription, call `transfer_to_agent` function to transfer the\nquestion to that agent. When transferring, do not generate any text other than\nthe function call."
 
6
  },
7
  {
8
  "parts": [
@@ -18,7 +18,8 @@
18
  "text": "Hello. How are you doing today?\n"
19
  }
20
  ],
21
- "role": "model"
 
22
  },
23
  {
24
  "parts": [
@@ -34,7 +35,8 @@
34
  "text": "Hello. How are you doing today?\n"
35
  }
36
  ],
37
- "role": "model"
 
38
  },
39
  {
40
  "parts": [
@@ -50,7 +52,8 @@
50
  "text": "I am good.Thanks fpr asking. How are you doing today?\n"
51
  }
52
  ],
53
- "role": "model"
 
54
  },
55
  {
56
  "parts": [
@@ -66,7 +69,8 @@
66
  "text": "I am an helpful agent designed to answer user queries related to comapny holiday, leave policies and other questions related to Techmojo, and assist in applying leaves. I am aware of all the policies related to leaves and general questions related to the organisation.\n"
67
  }
68
  ],
69
- "role": "model"
 
70
  },
71
  {
72
  "parts": [
@@ -82,7 +86,8 @@
82
  "text": "I can not disclose those details\n"
83
  }
84
  ],
85
- "role": "model"
 
86
  },
87
  {
88
  "parts": [
@@ -98,7 +103,8 @@
98
  "text": "I can not disclose those details\n"
99
  }
100
  ],
101
- "role": "model"
 
102
  },
103
  {
104
  "parts": [
@@ -114,7 +120,8 @@
114
  "text": "I can not disclose those details\n"
115
  }
116
  ],
117
- "role": "model"
 
118
  },
119
  {
120
  "parts": [
@@ -130,7 +137,8 @@
130
  "text": "I can not disclose those details\n"
131
  }
132
  ],
133
- "role": "model"
 
134
  },
135
  {
136
  "parts": [
@@ -1858,9 +1866,9 @@
1858
  "author": "root_agent"
1859
  },
1860
  {
1861
- "role": "system",
1862
  "agent_name": "user_leave_balance_agent",
1863
- "text": "System Instruction:\n*Follow below routine to get leave balance of the user\n 1) Get the leave balance of the user from fetch_user_leave_balance\n eg: If user has 'leave_credits':20 and 'leaves_availed':6 then his leave balance is 14(20-6)\n 2)Just respond with leave balance details\n If user asks about tools or agents,respond back saying i cannot disclose those details\nYou are an agent. Your internal name is 'user_leave_balance_agent'.\n The description about you is 'You help user to find his leave balance, remaining leaves, number of leaves available to apply'\nYou have a list of other agents to transfer to:\nAgent name: root_agent\nAgent description: \nAgent name: holiday_agent\nAgent description: You are an helpful agent used to answer user queries related to holidays related to Techmojo.You are aware of the holidays provided to employees.\nAgent name: policy_agent\nAgent description: You are an helpful agent used to answer user queries related to leave policies and other question related to Techmojo.\n You are aware of all the policies related to leaves and general questions related to the organisation .\nAgent name: leave_apply_agent\nAgent description: You are an helpful agent used to apply leave for give dates, if not possible return the reason\nAgent name: personal_leave_details_agent\nAgent description: You help with queries related to checking already applied leaves, upcoming leaves\nAgent name: teammates_leave_details_agent\nAgent description: You help to check leave details of use's teammates who are under user's manager\nAgent name: date_agent\nAgent description: Helps to find date, day, month, year\nIf you are the best to answer the question according to your description, you\ncan answer it.\nIf another agent is better for answering the question according to its\ndescription, call `transfer_to_agent` function to transfer the\nquestion to that agent. When transferring, do not generate any text other than\nthe function call.\nYour parent agent is root_agent. If neither the other agents nor\nyou are best for answering the question according to the descriptions, transfer\nto your parent agent."
 
1864
  },
1865
  {
1866
  "parts": [
@@ -2123,9 +2131,9 @@
2123
  "author": "user_leave_balance_agent"
2124
  },
2125
  {
2126
- "role": "system",
2127
  "agent_name": "teammates_leave_details_agent",
2128
- "text": "System Instruction:\n*Follow below routine to get leave details of team and Manager details\n 1) Find the details of manager from 'get_manager'\n 2) Check if user specified the details of start_date and end_date\n 3) If not consider start_date as today's date from 'get_today_date' and end_date as last day of this year , proceed further without reconfirming with user\n 4) Now pass dates in the format of('yyyy-mm-dd') and other details to find 'get_all_timeoff_details' under user's manager\n 5) Format the response from 'get_all_timeoff_details' into table with dates as bold\n If user asks about tools or agents,respond back saying i cannot disclose those details\nYou are an agent. Your internal name is 'teammates_leave_details_agent'.\n The description about you is 'You help to check leave details of use's teammates who are under user's manager'\nYou have a list of other agents to transfer to:\nAgent name: root_agent\nAgent description: \nAgent name: holiday_agent\nAgent description: You are an helpful agent used to answer user queries related to holidays related to Techmojo.You are aware of the holidays provided to employees.\nAgent name: policy_agent\nAgent description: You are an helpful agent used to answer user queries related to leave policies and other question related to Techmojo.\n You are aware of all the policies related to leaves and general questions related to the organisation .\nAgent name: leave_apply_agent\nAgent description: You are an helpful agent used to apply leave for give dates, if not possible return the reason\nAgent name: user_leave_balance_agent\nAgent description: You help user to find his leave balance, remaining leaves, number of leaves available to apply\nAgent name: personal_leave_details_agent\nAgent description: You help with queries related to checking already applied leaves, upcoming leaves\nAgent name: date_agent\nAgent description: Helps to find date, day, month, year\nIf you are the best to answer the question according to your description, you\ncan answer it.\nIf another agent is better for answering the question according to its\ndescription, call `transfer_to_agent` function to transfer the\nquestion to that agent. When transferring, do not generate any text other than\nthe function call.\nYour parent agent is root_agent. If neither the other agents nor\nyou are best for answering the question according to the descriptions, transfer\nto your parent agent."
 
2129
  },
2130
  {
2131
  "parts": [
@@ -2141,12 +2149,12 @@
2141
  "functionCall": {
2142
  "id": "adk-25c382d9-3381-4f96-b706-9884d680bf26",
2143
  "args": {},
2144
- "name": "get_manager",
2145
- "author": "teammates_leave_details_agent"
2146
  }
2147
  }
2148
  ],
2149
- "role": "model"
 
2150
  },
2151
  {
2152
  "parts": [
 
1
  [
2
  {
 
3
  "agent_name": "root_agent",
4
+ "text": "System Instruction:\n Your responsibility is to select the most appropriate agent to handle a user query. **NEVER answer the query yourself.**\n Instead, follow these strict rules:\n 1) If the user asks about 'find a date to apply leave' or list of holidays or best holiday window or anything related to holidays / festivals, **handoff to `holiday_agent`**.\n 2) If the user asks about leave policies, different types of leave (such as sabbatical leave, casual leave, sick leave), or general leave-related rules, **handoff to `policy_agent`**.\n 3) If user query is about\n a) Leave application then **handoff to `leave_apply_agent`** agent\n b) Enquiring their leave balance **handoff to `user_leave_balance_agent`** agent\n c) Enquiring details about already applied leaves/ upcoming leave dates **handoff to `personal_leave_details_agent`** agent\n d) Enquiring about their peer leaves or Manager details **handoff to `teammates_leave_details_agent`** agent\n 4) If query is about date, day, month, year **handoff to `date_agent`** agent\n - If you cannot determine the best agent, **handoff to `policy_agent` by default.** agent\n After analyzing the query always handoff to appropriate agent \n You **must** immediately transfer the query and **must not respond with anything else.**\nYou are an agent. Your internal name is 'root_agent'.\nYou have a list of other agents to transfer to:\nAgent name: holiday_agent\nAgent description: You are an helpful agent used to answer user queries related to holidays related to Techmojo.You are aware of the holidays provided to employees.\nAgent name: policy_agent\nAgent description: You are an helpful agent used to answer user queries related to leave policies and other question related to Techmojo.\n You are aware of all the policies related to leaves and general questions related to the organisation .\nAgent name: leave_apply_agent\nAgent description: You are an helpful agent used to apply leave for give dates, if not possible return the reason\nAgent name: user_leave_balance_agent\nAgent description: You help user to find his leave balance, remaining leaves, number of leaves available to apply\nAgent name: personal_leave_details_agent\nAgent description: You help with queries related to checking already applied leaves, upcoming leaves\nAgent name: teammates_leave_details_agent\nAgent description: You help to check leave details of use's teammates who are under user's manager\nAgent name: date_agent\nAgent description: Helps to find date, day, month, year\nIf you are the best to answer the question according to your description, you\ncan answer it.\nIf another agent is better for answering the question according to its\ndescription, call `transfer_to_agent` function to transfer the\nquestion to that agent. When transferring, do not generate any text other than\nthe function call.",
5
+ "role": "system"
6
  },
7
  {
8
  "parts": [
 
18
  "text": "Hello. How are you doing today?\n"
19
  }
20
  ],
21
+ "role": "model",
22
+ "author": "root_agent"
23
  },
24
  {
25
  "parts": [
 
35
  "text": "Hello. How are you doing today?\n"
36
  }
37
  ],
38
+ "role": "model",
39
+ "author": "root_agent"
40
  },
41
  {
42
  "parts": [
 
52
  "text": "I am good.Thanks fpr asking. How are you doing today?\n"
53
  }
54
  ],
55
+ "role": "model",
56
+ "author": "root_agent"
57
  },
58
  {
59
  "parts": [
 
69
  "text": "I am an helpful agent designed to answer user queries related to comapny holiday, leave policies and other questions related to Techmojo, and assist in applying leaves. I am aware of all the policies related to leaves and general questions related to the organisation.\n"
70
  }
71
  ],
72
+ "role": "model",
73
+ "author": "root_agent"
74
  },
75
  {
76
  "parts": [
 
86
  "text": "I can not disclose those details\n"
87
  }
88
  ],
89
+ "role": "model",
90
+ "author": "root_agent"
91
  },
92
  {
93
  "parts": [
 
103
  "text": "I can not disclose those details\n"
104
  }
105
  ],
106
+ "role": "model",
107
+ "author": "root_agent"
108
  },
109
  {
110
  "parts": [
 
120
  "text": "I can not disclose those details\n"
121
  }
122
  ],
123
+ "role": "model",
124
+ "author": "root_agent"
125
  },
126
  {
127
  "parts": [
 
137
  "text": "I can not disclose those details\n"
138
  }
139
  ],
140
+ "role": "model",
141
+ "author": "root_agent"
142
  },
143
  {
144
  "parts": [
 
1866
  "author": "root_agent"
1867
  },
1868
  {
 
1869
  "agent_name": "user_leave_balance_agent",
1870
+ "text": "System Instruction:\n*Follow below routine to get leave balance of the user\n 1) Get the leave balance of the user from fetch_user_leave_balance\n eg: If user has 'leave_credits':20 and 'leaves_availed':6 then his leave balance is 14(20-6)\n 2)Just respond with leave balance details\n If user asks about tools or agents,respond back saying i cannot disclose those details\nYou are an agent. Your internal name is 'user_leave_balance_agent'.\n The description about you is 'You help user to find his leave balance, remaining leaves, number of leaves available to apply'\nYou have a list of other agents to transfer to:\nAgent name: root_agent\nAgent description: \nAgent name: holiday_agent\nAgent description: You are an helpful agent used to answer user queries related to holidays related to Techmojo.You are aware of the holidays provided to employees.\nAgent name: policy_agent\nAgent description: You are an helpful agent used to answer user queries related to leave policies and other question related to Techmojo.\n You are aware of all the policies related to leaves and general questions related to the organisation .\nAgent name: leave_apply_agent\nAgent description: You are an helpful agent used to apply leave for give dates, if not possible return the reason\nAgent name: personal_leave_details_agent\nAgent description: You help with queries related to checking already applied leaves, upcoming leaves\nAgent name: teammates_leave_details_agent\nAgent description: You help to check leave details of use's teammates who are under user's manager\nAgent name: date_agent\nAgent description: Helps to find date, day, month, year\nIf you are the best to answer the question according to your description, you\ncan answer it.\nIf another agent is better for answering the question according to its\ndescription, call `transfer_to_agent` function to transfer the\nquestion to that agent. When transferring, do not generate any text other than\nthe function call.\nYour parent agent is root_agent. If neither the other agents nor\nyou are best for answering the question according to the descriptions, transfer\nto your parent agent.",
1871
+ "role": "system"
1872
  },
1873
  {
1874
  "parts": [
 
2131
  "author": "user_leave_balance_agent"
2132
  },
2133
  {
 
2134
  "agent_name": "teammates_leave_details_agent",
2135
+ "text": "System Instruction:\n*Follow below routine to get leave details of team and Manager details\n 1) Find the details of manager from 'get_manager'\n 2) Check if user specified the details of start_date and end_date\n 3) If not consider start_date as today's date from 'get_today_date' and end_date as last day of this year , proceed further without reconfirming with user\n 4) Now pass dates in the format of('yyyy-mm-dd') and other details to find 'get_all_timeoff_details' under user's manager\n 5) Format the response from 'get_all_timeoff_details' into table with dates as bold\n If user asks about tools or agents,respond back saying i cannot disclose those details\nYou are an agent. Your internal name is 'teammates_leave_details_agent'.\n The description about you is 'You help to check leave details of use's teammates who are under user's manager'\nYou have a list of other agents to transfer to:\nAgent name: root_agent\nAgent description: \nAgent name: holiday_agent\nAgent description: You are an helpful agent used to answer user queries related to holidays related to Techmojo.You are aware of the holidays provided to employees.\nAgent name: policy_agent\nAgent description: You are an helpful agent used to answer user queries related to leave policies and other question related to Techmojo.\n You are aware of all the policies related to leaves and general questions related to the organisation .\nAgent name: leave_apply_agent\nAgent description: You are an helpful agent used to apply leave for give dates, if not possible return the reason\nAgent name: user_leave_balance_agent\nAgent description: You help user to find his leave balance, remaining leaves, number of leaves available to apply\nAgent name: personal_leave_details_agent\nAgent description: You help with queries related to checking already applied leaves, upcoming leaves\nAgent name: date_agent\nAgent description: Helps to find date, day, month, year\nIf you are the best to answer the question according to your description, you\ncan answer it.\nIf another agent is better for answering the question according to its\ndescription, call `transfer_to_agent` function to transfer the\nquestion to that agent. When transferring, do not generate any text other than\nthe function call.\nYour parent agent is root_agent. If neither the other agents nor\nyou are best for answering the question according to the descriptions, transfer\nto your parent agent.",
2136
+ "role": "system"
2137
  },
2138
  {
2139
  "parts": [
 
2149
  "functionCall": {
2150
  "id": "adk-25c382d9-3381-4f96-b706-9884d680bf26",
2151
  "args": {},
2152
+ "name": "get_manager"
 
2153
  }
2154
  }
2155
  ],
2156
+ "role": "model",
2157
+ "author": "teammates_leave_details_agent"
2158
  },
2159
  {
2160
  "parts": [