From 16b9ccd0259a8d3a32db2366516b431aa5b20153 Mon Sep 17 00:00:00 2001 From: soprue Date: Sat, 24 May 2025 23:43:16 +0900 Subject: [PATCH] feat: conditionally include diagram in output example --- pr_agent/settings/pr_description_prompts.toml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pr_agent/settings/pr_description_prompts.toml b/pr_agent/settings/pr_description_prompts.toml index 73ec8459..d37839d5 100644 --- a/pr_agent/settings/pr_description_prompts.toml +++ b/pr_agent/settings/pr_description_prompts.toml @@ -60,6 +60,14 @@ type: - ... description: | ... +{%- if add_diagram %} +diagram: | + sequenceDiagram + participant A as ComponentA + participant B as ComponentB + A->>B: functionCall() + B-->>A: response +{%- endif %} title: | ... {%- if enable_semantic_files_types %} @@ -141,6 +149,14 @@ type: - ... description: | ... +{%- if add_diagram %} +diagram: | + sequenceDiagram + participant A as ComponentA + participant B as ComponentB + A->>B: functionCall() + B-->>A: response +{%- endif %} title: | ... {%- if enable_semantic_files_types %}