generous-apricot•4d ago
Handoff tool not working (Urgent)
We are trying to build a dynamic agent that will first determine the language a user can speak, then it will route to another transient assistant that will change the settings based on the inputs from the handoff tool . The issue is that the handoff tool is called, but then the first agent just sits there and nothing happens. We have treid doing a dynamic destination or just a static assistantId and it is the same.
{
type: "handoff",
destinations: [
{
type: "dynamic",
server: {
url: "<server_url>",
},
},
],
function: {
name: "handoff",
description:
"Transfer call to the appropriate agent that can speak a different language. Once you determine the language the user wishes to speak, transfer the call",
parameters: {
type: "object",
properties: {
language: {
type: "string",
description: "The language the customer speaks",
enum: ["en", "pt"],
},
},
},
},
},
2 Replies
Hey Noah, since you are using the handoff tool for transferring to an assistant we would like to ask for a call id where the handoff tool failed. We will review the logs and see what solutions are available
generous-apricotOP•19h ago
I think we did resolve this just barely. It looks like the parameters needs to include a "destination" also