This application is a simple proof of concept demonstrating an agent capable of taking a prompt and generating a patch implementing code satisfying the prompt along with an accompanying unit test.
15 lines
498 B
Cheetah
15 lines
498 B
Cheetah
given the following code block in markdown that performs the following task:
|
|
{{ .Prompt }}
|
|
|
|
{{- if .TestFileExists -}}
|
|
create a unit test for the following code as a code block formatted in markdown, only include the unit test itself do
|
|
not include any imports
|
|
!IMPORTANT do not add any explanation
|
|
{{- else -}}
|
|
create a unit test for the following code as a code block formatted in markdown, include any required imports
|
|
!IMPORTANT do not add any explanation
|
|
{{- end -}}
|
|
|
|
```go
|
|
{{ .Context }}
|
|
```" |