forked from MeetKai/functionary
-
Notifications
You must be signed in to change notification settings - Fork 1
/
test_case_v2.llama3.json
162 lines (161 loc) · 4.71 KB
/
test_case_v2.llama3.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
{
"tools": [
{
"type": "function",
"function": {
"name": "get_car_price",
"description": "Get the price of a particular car model",
"parameters": {
"type": "object",
"properties": {
"car_name": {
"type": "string",
"description": "The name of the car model"
}
},
"required": [
"car_name"
]
}
}
},
{
"type": "function",
"function": {
"name": "get_weather",
"description": "get the weather of a location",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "where to get weather"
}
},
"required": [
"location"
]
}
}
},
{
"type": "code_interpreter"
}
],
"messages": [
{
"role": "user",
"content": "who is the CEO of Meetkai"
},
{
"role": "assistant",
"content": "James Kaplan is the Co-Founder and CEO of MeetKai Inc."
},
{
"role": "user",
"content": "is the car Song more expensive than car Tang?"
},
{
"role": "assistant",
"content": "I will get the price of 2 cars and compare",
"tool_calls": [
{
"function": {
"name": "get_car_price",
"arguments": "{\"car_name\": \"Song\"}"
}
},
{
"function": {
"name": "get_car_price",
"arguments": "{\"car_name\": \"Tang\"}"
}
}
]
},
{
"role": "tool",
"content": "{\"price\": {\"price\": \"$25000\"}}",
"name": "get_car_price"
},
{
"role": "tool",
"content": "{\"price\": {\"price\": \"$20000\"}}",
"name": "get_car_price"
},
{
"role": "assistant",
"content": "No, the car Tang is less expensive than the car Song. The car Song is priced at $25,000, while the car Tang is priced at $20,000."
},
{
"role": "user",
"content": "what's the weather like in Hanoi?"
},
{
"role": "assistant",
"content": null,
"tool_calls": [
{
"function": {
"name": "get_weather",
"arguments": "{\"location\": \"Hanoi\"}"
}
}
]
},
{
"role": "tool",
"content": "{\"result\": {\"temperature\": 10}}",
"name": "get_weather"
},
{
"role": "assistant",
"content": "The temperature in Hanoi is: 10 degree Celcious"
},
{
"role": "user",
"content": "Given the list: 0,1,2,3,4,5 remove the number in the list that is close to 3.6 the most"
},
{
"role": "assistant",
"content": "I will use code interpreter to handle this",
"tool_calls": [
{
"function": {
"name": "python",
"arguments": "l=[0,1,2,3,4,5]\nl.remove(3.6)"
}
}
],
"metadata": {
"masked": true
}
},
{
"role": "tool",
"name": "python",
"content": "ValueError: list.remove(x): x not in list"
},
{
"role": "assistant",
"content": "I will fix the code",
"tool_calls": [
{
"function": {
"name": "python",
"arguments": "l=[0,1,2,3,4,5]\nl.remove(4)\nl"
}
}
]
},
{
"role": "tool",
"name": "python",
"content": "[0,1,2,3,5,]"
},
{
"role": "assistant",
"content": "The final list is: 0,1,2,3,5"
}
]
}