-
Notifications
You must be signed in to change notification settings - Fork 162
Description
It seems there is a problem when transfer to the same agent which is now using.
[
{
"messages": [
{
"role": "user",
"content": "i'd like to speak to Bob"
},
{
"role": "assistant",
"content": "",
"name": "Alice",
"tool_calls": [
{
"name": "transfer_to_bob",
"args": {},
"id": "call_c3a25d1eb
"type": "tool_call"
}
]
},
{
"role": "tool",
"content": "Successfully transferred to Bob",
"name": "transfer_to_bob",
"tool_call_id": "call_c3a2
},
{
"role": "assistant",
"content": "Ahoy there! I be Bob, yer pirate matey! How can I help ye today? 🏴☠️⚓",
"name": "Bob",
"tool_calls": null
},
{
"role": "user",
"content": "Can you teach me how to add 5 and 7?"
},
{
"role": "assistant",
"content": "",
"name": "Bob",
"tool_calls": [
{
"name": "transfer_to_alice",
"args": {},
"id": "call_3f333
"type": "tool_call"
}
]
},
{
"role": "tool",
"content": "Successfully transferred to Alice",
"name": "transfer_to_alice",
"tool_call_id": "call_3f33
},
{
"role": "assistant",
"content": "Sure! To add 5 and 7, you can use the addition function. Let me demonstrate how it works. \n\nHere's the calculation:\n\n",
"name": "Alice",
"tool_calls": [
{
"name": "add",
"args": {
"a": 5,
"b": 7
},
"id": "call_515a
"type": "tool_call"
}
]
},
{
"role": "tool",
"content": "12",
"name": "add",
"tool_call_id": "call_515a8
},
{
"role": "assistant",
"content": "The sum of 5 and 7 is 12! Let me know if you'd like to practice more additions. 😊",
"name": "Alice",
"tool_calls": null
},
{
"role": "user",
"content": "i'd like to speak to Alice?"
},
{
"role": "assistant",
"content": "",
"name": "Alice",
"tool_calls": [
{
"name": "transfer_to_alice",
"args": {},
"id": "call_
"type": "tool_call"
}
]
},
{
"role": "tool",
"content": "Error: transfer_to_alice is not a valid tool, try one of [add, transfer_to_bob].",
"name": "transfer_to_alice",
"tool_call_id": "call_8=5a"
},
{
"role": "assistant",
"content": "It seems there was a mistake in the tools available. I can help you add numbers or transfer you back to Bob if you'd like. Let me know how I can assist! 😊",
"name": "Alice",
"tool_calls": null
},
{
"role": "user",
"content": "i want to speak to a pirate"
},
{
"role": "assistant",
"content": "",
"name": "Alice",
"tool_calls": [
{
"name": "transfer_to_bob",
"args": {},
"id": "call_8ede8
"type": "tool_call"
}
]
},
{
"role": "tool",
"content": "Successfully transferred to Bob",
"name": "transfer_to_bob",
"tool_call_id": "call_8ede
},
{
"role": "assistant",
"content": "Yarrr! Welcome back to me, Bob the pirate! What be on yer mind, matey? 😄🏴☠️",
"name": "Bob",
"tool_calls": null
},
{
"role": "user",
"content": "i want to speak to a pirate"
},
{
"role": "assistant",
"content": "",
"name": "Bob",
"tool_calls": [
{
"name": "transfer_to_bob",
"args": {},
"id": "call_1c7,
"type": "tool_call"
}
]
},
{
"role": "tool",
"content": "Error: transfer_to_bob is not a valid tool, try one of [transfer_to_alice].",
"name": "transfer_to_bob",
"tool_call_id": "call_1c7b72bd"
},
{
"role": "assistant",
"content": "Ah, shiver me timbers! It seems I’ve been marooned and can’t transfer ye to a pirate right now. But fear not! I can still talk like a pirate or help with math. How can I assist ye, matey? 🏴☠️⚓",
"name": "Bob",
"tool_calls": null
},
{
"role": "user",
"content": "i want to speak to bob"
},
{
"role": "assistant",
"content": "",
"name": "Bob",
"tool_calls": [
{
"name": "transfer_to_alice",
"args": {},
"id": "call_2f9e927",
"type": "tool_call"
}
]
},
{
"role": "tool",
"content": "Successfully transferred to Alice",
"name": "transfer_to_alice",
"tool_call_id": "call_2f9ed"
},
{
"role": "assistant",
"content": "Hello! I'm Alice, your math teacher. While I can't transfer you to Bob right now, I'd be happy to help you with math or answer any questions you have. What would you like to learn or discuss? 😊",
"name": "Alice",
"tool_calls": null
}
],
"active_agent": "Alice"
}
]