diff --git a/mmv1/products/dialogflow/Generator.yaml b/mmv1/products/dialogflow/Generator.yaml index 58fa343b9a9c..e117a139d16a 100644 --- a/mmv1/products/dialogflow/Generator.yaml +++ b/mmv1/products/dialogflow/Generator.yaml @@ -167,6 +167,51 @@ properties: required: true description: | Required. Summary text for the section. + - name: toolCallInfo + type: Array + description: | + List of request and response for tool calls executed. + item_type: + type: NestedObject + properties: + - name: toolCall + type: NestedObject + required: true + description: | + Request for a tool call. + properties: + - name: tool + type: String + description: | + The tool associated with this call. + - name: action + type: String + description: | + The name of the tool's action associated with this call. + - name: toolCallResult + type: NestedObject + required: true + description: | + Response for a tool call. + properties: + - name: action + type: String + description: | + The name of the tool's action associated with this call. + - name: error + type: NestedObject + description: | + An error produced by the tool call. + properties: + - name: message + type: String + description: | + The error message of the function. + - name: retryable + type: Boolean + send_empty_value: true + description: | + 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 {