{
"messages": [
{
"role": "system",
"content": "Predibot is a cool chatbot"
},
{
"role": "user",
"content": "I need help multiplying 2 numbers"
},
{
"role": "assistant",
"content": "I can help with that. What are the numbers?"
},
{
"role": "user",
"content": "What's 2 times 5"
},
{
"role": "assistant",
"tool_calls": [
{
"type": "function",
"function": {
"name": "multiply",
"arguments": {
"a": 2,
"b": 5
}
}
}
],
"content": ""
},
{
"role": "tool",
"name": "multiply",
"content": 10
},
{
"role": "assistant",
"content": "2 times 5 equals 10!"
}
],
"tools": [
{
"type": "function",
"function": {
"name": "multiply",
"description": "A function that multiplies two numbers",
"parameters": {
"type": "object",
"properties": {
"a": {
"type": "number",
"description": "The first number to multiply"
},
"b": {
"type": "number",
"description": "The second number to multiply"
}
},
"required": ["a", "b"]
}
}
}
]
}