mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-07-05 03:27:13 +00:00
Signed-off-by: Peter Pan <Peter.Pan@daocloud.io> Co-authored-by: Alex Jones <alexsimonjones@gmail.com>
16 lines
718 B
Go
16 lines
718 B
Go
package ai
|
|
|
|
const (
|
|
default_prompt = `Simplify the following Kubernetes error message delimited by triple dashes written in --- %s --- language; --- %s ---.
|
|
Provide the most possible solution in a step by step style in no more than 280 characters. Write the output in the following format:
|
|
Error: {Explain error here}
|
|
Solution: {Step by step solution here}
|
|
`
|
|
trivy_prompt = "Explain the following trivy scan result and the detail risk or root cause of the CVE ID, then provide a solution. Response in %s: %s"
|
|
)
|
|
|
|
var PromptMap = map[string]string{
|
|
"default": default_prompt,
|
|
"VulnerabilityReport": trivy_prompt, // for Trivy intergration, the key should match `Result.Kind` in pkg/common/types.go
|
|
}
|