Skip to content

Commit 93e910b

Browse files
Support variable descriptions in the AI prompt template (#1205)
1 parent fb02c9a commit 93e910b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cel/templates/authoring.tmpl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
{{define "variable"}}{{.Name}} is a {{.Type}}
1+
{{define "variable"}}{{.Name}} is a {{.Type}}{{if .Description}}
2+
3+
{{range split .Description}} {{.}}
4+
{{end}}
5+
{{- end -}}
26
{{- end -}}
37

48
{{define "macro" -}}

0 commit comments

Comments
 (0)