From 3a7630bbeef2002776cb3810d733a3dc79c0041a Mon Sep 17 00:00:00 2001 From: Sam Levenick Date: Fri, 11 Sep 2026 22:39:10 +0000 Subject: [PATCH 1/2] dialogflow: add tool_call_info to google_dialogflow_generator --- mmv1/products/dialogflow/Generator.yaml | 43 +++++++++++++++++++ .../resource_dialogflow_generator_test.go | 26 +++++++++++ 2 files changed, 69 insertions(+) diff --git a/mmv1/products/dialogflow/Generator.yaml b/mmv1/products/dialogflow/Generator.yaml index 58fa343b9a9c..2e58348c1c22 100644 --- a/mmv1/products/dialogflow/Generator.yaml +++ b/mmv1/products/dialogflow/Generator.yaml @@ -167,6 +167,49 @@ properties: required: true description: | Required. Summary text for the section. + - name: toolCallInfo + type: Array + description: | + Optional. List of request and response for tool calls executed. + item_type: + type: NestedObject + properties: + - name: toolCall + type: NestedObject + description: | + Optional. Request for a tool call. + properties: + - name: tool + type: String + description: | + Optional. The tool associated with this call. + - name: action + type: String + description: | + Optional. The name of the tool's action associated with this call. + - name: toolCallResult + type: NestedObject + description: | + Optional. Response for a tool call. + properties: + - name: action + type: String + description: | + Optional. The name of the tool's action associated with this call. + - name: error + type: NestedObject + description: | + Optional. An error produced by the tool call. + properties: + - name: message + type: String + description: | + Optional. The error message of the function. + - name: retryable + type: Boolean + send_empty_value: true + description: | + Optional. Specifies whether the tool call is retryable. - name: summarizationSectionList type: NestedObject description: | diff --git a/mmv1/third_party/terraform/services/dialogflow/resource_dialogflow_generator_test.go b/mmv1/third_party/terraform/services/dialogflow/resource_dialogflow_generator_test.go index b98315771f51..130f04d554fb 100644 --- a/mmv1/third_party/terraform/services/dialogflow/resource_dialogflow_generator_test.go +++ b/mmv1/third_party/terraform/services/dialogflow/resource_dialogflow_generator_test.go @@ -112,6 +112,19 @@ resource "google_dialogflow_generator" "summarization_generator" { summary = "John" } } + tool_call_info { + tool_call { + tool = "projects/example-project/locations/global/tools/initial-tool" + action = "initialAction" + } + tool_call_result { + action = "initialAction" + error { + message = "test error" + retryable = true + } + } + } } summarization_section_list { summarization_sections { @@ -172,6 +185,19 @@ resource "google_dialogflow_generator" "summarization_generator" { summary = "Jeff" } } + tool_call_info { + tool_call { + tool = "projects/example-project/locations/global/tools/updated-tool" + action = "updatedAction" + } + tool_call_result { + action = "updatedAction" + error { + message = "updated error" + retryable = false + } + } + } } summarization_section_list { summarization_sections { From 2bda2d308c28eb9ec49f834a7e2657743bd2e4fa Mon Sep 17 00:00:00 2001 From: Sam Levenick Date: Mon, 14 Sep 2026 15:51:10 +0000 Subject: [PATCH 2/2] dialogflow: mark toolCall and toolCallResult as required and clean up descriptions --- mmv1/products/dialogflow/Generator.yaml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/mmv1/products/dialogflow/Generator.yaml b/mmv1/products/dialogflow/Generator.yaml index 2e58348c1c22..e117a139d16a 100644 --- a/mmv1/products/dialogflow/Generator.yaml +++ b/mmv1/products/dialogflow/Generator.yaml @@ -170,46 +170,48 @@ properties: - name: toolCallInfo type: Array description: | - Optional. List of request and response for tool calls executed. + List of request and response for tool calls executed. item_type: type: NestedObject properties: - name: toolCall type: NestedObject + required: true description: | - Optional. Request for a tool call. + Request for a tool call. properties: - name: tool type: String description: | - Optional. The tool associated with this call. + The tool associated with this call. - name: action type: String description: | - Optional. The name of the tool's action associated with this call. + The name of the tool's action associated with this call. - name: toolCallResult type: NestedObject + required: true description: | - Optional. Response for a tool call. + Response for a tool call. properties: - name: action type: String description: | - Optional. The name of the tool's action associated with this call. + The name of the tool's action associated with this call. - name: error type: NestedObject description: | - Optional. An error produced by the tool call. + An error produced by the tool call. properties: - name: message type: String description: | - Optional. The error message of the function. + The error message of the function. - name: retryable type: Boolean send_empty_value: true description: | - Optional. Specifies whether the tool call is retryable. + Specifies whether the tool call is retryable. - name: summarizationSectionList type: NestedObject description: |