{
"queryResult": {
"text": "what is the weather in Mountain View",
"languageCode": "en",
"responseMessages": [
{
"source": "VIRTUAL_AGENT",
"toolCall": {
"tool": "<tool-resource-name>",
"action": "get-weather-tool",
"inputParameters": {
"location": "Mountain View"
}
}
}
]
}
}
"queryResult": {
"text": "how is the weather in Stockholm?",
"languageCode": "en",
"responseMessages": [
{
"source": "VIRTUAL_AGENT",
"toolCall": {
"tool": "projects/geoconxaiservices/locations/eu/agents/2e495876-b080-4755-9f98-9962ab0cc873/tools/a11594cb-50f5-42cf-9eba-06728ee91e92",
"action": "getWeather",
"inputParameters": {
"location": "Stockholm, Sweden",
"unit": "celsius"
}
}
}
],
"queryResult": {
"text": "how is the weather in Stockholm?",
"languageCode": "en",
"responseMessages": [
{}
],
Also having questions about this, I know since it's preview they probably aren't answering these, but just as they made videos explaining how to use the other types of tools (OpenAPI & Data store) it would be nice to have a video explaining how to use the Function Tools 🙂
Videos I'm talking about:
Yeah I think so too. I guess we'll just have to wait until it's not preview anymore. 😀
It seems like you're encountering a discrepancy in behavior between using Playbook and Dialogflow Messenger with Function Tools in Agent Builder. The behavior you described suggests that while Playbook correctly returns the toolCall in the response, Dialogflow Messenger does not.
This could be due to several reasons:
To troubleshoot this issue:
Can we get some more help here? I am observing the same behaving in which the toolCall is no present in the Java DetectIntentResponse(0.59.0). However I have enabled Conversational Logging and I do see it in the Log Explorer:
...
responseMessages: [
0: {
source: "VIRTUAL_AGENT"
toolCall: {
action: "fx-weather"
inputParameters: {
location: "West Chester, PA, 19425"
unit: "fahrenheit"
}
tool: "projects/slamway/locations/us-east1/agents/a5511e33-6877-41e1-824e-4a209dfa4bb1/tools/85f8a7e8-4a47-4a96-bcab-6ca87ad83b50"
}}]
text: "What is the weather in West Chester PA, 19425?"
}
responseId: "d6e9ca94-007c-4536-be40-60d4870b5bd5"
...
It would be nice to know if this is a setup issue, unsupported feature, or a bug...
It works() with the beta lib: import com.google.cloud.dialogflow.cx.v3beta1.*;
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |