Documentation ¶
Index ¶
Constants ¶
View Source
const ( CACHE_SIZE = 200 * 1024 * 1024 // 200MB CACHE_EXPIRE_SEC = 3600 CACHE_KEY_FORMAT = "OpenAICache/%d/%s" LANG_JP = "ja" PROMPT_SYSTEM_MSG_EN = "You are a helpful security advisor. Please explain this in a way that a non-security expert can understand." PROMPT_SYSTEM_MSG_JP = "" /* 174-byte string literal not displayed */ PROMPT_SUMMARY_EN = `` /* 278-byte string literal not displayed */ PROMPT_SUMMARY_JP = `` /* 406-byte string literal not displayed */ FINDING_FORMAT_FOR_AI = `The RISKEN tool detected the following issue related to cloud security. Type: %s Description: %s ScanResult(json): %s ` RECOMMEND_FORMAT_FOR_AI = `Detail: %s Recommendation: %s ` )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AIClient ¶
type AIClient struct {
// contains filtered or unexported fields
}
func (*AIClient) AskAISummaryFromFinding ¶
type AIService ¶
type AIService interface { AskAISummaryFromFinding(ctx context.Context, f *model.Finding, r *model.Recommend, lang string) (string, error) AskAISummaryStreamFromFinding( ctx context.Context, f *model.Finding, r *model.Recommend, lang string, stream finding.FindingService_GetAISummaryStreamServer, ) error }
Click to show internal directories.
Click to hide internal directories.