Assigned
Status Update
Comments
va...@google.com <va...@google.com>
je...@google.com <je...@google.com> #2
je...@google.com <je...@google.com> #3
I also have the same problem:
Project id: restaurant-phone-reservat-b9tt
Location: us-east1
Please have a look, this is a blocker for us.
Thank you!
Project id: restaurant-phone-reservat-b9tt
Location: us-east1
Please have a look, this is a blocker for us.
Thank you!
Description
Issue description (short summary)
With a Generative Agent and set up to use a Function Tool Playbook when the prompt matches the description for this Function Tool. When I send a prompt that matched the Function Tool via the REST API, I receive a response that contains an empty object instead of the expected response message within the "responseMessages" array.
Steps to reproduce the issue (detailed description)
Create a new Agent
Create a Function Tool using the weather example from the documentation
Add the Tool within the instructions of the Agent which tells it to use this Function Tool when there is a question about the weather.
Send a POST to "https://REGION_ID-dialogflow.googleapis.com/v3/projects/PROJECT_ID/locations/LOCATION_ID/agents/AGENT_ID/sessions/SESSION_ID:detectIntent " with a payload that contains a queryInput with a text of "Hello!"
The Agent will respond with a properly formatted object within the "responseMessages" array greeting the user as a response
Send a POST to "https://REGION_ID-dialogflow.googleapis.com/v3/projects/PROJECT_ID/locations/LOCATION_ID/agents/AGENT_ID/sessions/SESSION_ID:detectIntent " with a payload that contains a queryInput with a text of "What is the weather in Miami today?"
The Agent will respond with an empty object within the "responseMessages" array instead of giving information about the Function Tool and the output params it is expecting to receive as a response.
If I try to send a new prompt message, the API will return an error because it is waiting to receive the output param for the Function Tool which I cannot do because it did not send me the information about the tool it used and the data it needs.
Expected behavior
According to the documentation, the response should look like this:
Actual behavior
But what I actually get is:
I also get the following error if I send another prompt without sending the tool's output params it needs:
This makes sense, but I cannot send the data it is waiting for without telling the client what it needs.
Workarounds (if any)
None.
Documentation consulted
Other information