From 75e962f6615bb825bd00e245a51ef1b0e437bbcd Mon Sep 17 00:00:00 2001 From: Sam Levenick Date: Tue, 8 Sep 2026 19:31:06 +0000 Subject: [PATCH] agenticapplications: add methodology_export_options to persona --- .../AnalystAgentPersona.yaml | 27 +++++++++++++++++++ ...persona_methodology_export_options.tf.tmpl | 16 +++++++++++ ..._methodology_export_options_update.tf.tmpl | 16 +++++++++++ 3 files changed, 59 insertions(+) create mode 100644 mmv1/templates/terraform/samples/services/agenticapplications/analyst_agent_persona_methodology_export_options.tf.tmpl create mode 100644 mmv1/templates/terraform/samples/services/agenticapplications/analyst_agent_persona_methodology_export_options_update.tf.tmpl diff --git a/mmv1/products/agenticapplications/AnalystAgentPersona.yaml b/mmv1/products/agenticapplications/AnalystAgentPersona.yaml index 11db6f8a3c6b..399d234cb384 100644 --- a/mmv1/products/agenticapplications/AnalystAgentPersona.yaml +++ b/mmv1/products/agenticapplications/AnalystAgentPersona.yaml @@ -72,6 +72,15 @@ samples: dataset_id: dataset_id table_id: table bucket_name: bucket + - name: analyst_agent_persona_methodology_export_options + primary_resource_id: example + steps: + - name: analyst_agent_persona_methodology_export_options + resource_id_vars: + persona_id: methodology + - name: analyst_agent_persona_methodology_export_options_update + resource_id_vars: + persona_id: methodology parameters: - name: location @@ -338,6 +347,24 @@ properties: PDF DOCX GOOGLE_DOCS + - name: methodologyExportOptions + type: NestedObject + description: Options for methodology export. + properties: + - name: appendMethodology + type: Boolean + description: If true, append the detailed methodology to the final response. + - name: exportFormat + type: String + description: |- + Format for methodology export. + Possible values: + MARKDOWN + HTML + PDF + - name: exportMethodologyArtifact + type: Boolean + description: If true, export the detailed methodology as a separate artifact. - name: slideGenerationOptions type: NestedObject description: Options for slide generation. diff --git a/mmv1/templates/terraform/samples/services/agenticapplications/analyst_agent_persona_methodology_export_options.tf.tmpl b/mmv1/templates/terraform/samples/services/agenticapplications/analyst_agent_persona_methodology_export_options.tf.tmpl new file mode 100644 index 000000000000..1348647051b0 --- /dev/null +++ b/mmv1/templates/terraform/samples/services/agenticapplications/analyst_agent_persona_methodology_export_options.tf.tmpl @@ -0,0 +1,16 @@ +resource "google_agentic_applications_analyst_agent_persona" "{{$.PrimaryResourceId}}" { + location = "us" + analyst_agent_persona_id = "{{index $.ResourceIdVars "persona_id"}}" + display_name = "Test Analyst Persona Methodology Export" + display_description = "Sample analyst agent persona description" + model_description = "Sample model description" + role = "ANALYST_ROLE_GENERIC_FINANCE_ANALYST" + + artifacts_config { + methodology_export_options { + append_methodology = true + export_format = "MARKDOWN" + export_methodology_artifact = true + } + } +} diff --git a/mmv1/templates/terraform/samples/services/agenticapplications/analyst_agent_persona_methodology_export_options_update.tf.tmpl b/mmv1/templates/terraform/samples/services/agenticapplications/analyst_agent_persona_methodology_export_options_update.tf.tmpl new file mode 100644 index 000000000000..afe38b254c66 --- /dev/null +++ b/mmv1/templates/terraform/samples/services/agenticapplications/analyst_agent_persona_methodology_export_options_update.tf.tmpl @@ -0,0 +1,16 @@ +resource "google_agentic_applications_analyst_agent_persona" "{{$.PrimaryResourceId}}" { + location = "us" + analyst_agent_persona_id = "{{index $.ResourceIdVars "persona_id"}}" + display_name = "Test Analyst Persona Methodology Export Updated" + display_description = "Updated analyst agent persona description" + model_description = "Updated model description" + role = "ANALYST_ROLE_GENERIC_FINANCE_ANALYST" + + artifacts_config { + methodology_export_options { + append_methodology = false + export_format = "HTML" + export_methodology_artifact = false + } + } +}