aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/aflow/ai/ai.go
blob: 5af71a3f5c96190167a20aa79c3ca6bb9331d2cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2026 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.

// ai package contains common definitions that are used across pkg/aflow/... and dashboard/{app,dashapi}.
package ai

type WorkflowType string

// Note: don't change string values of these types w/o a good reason.
// They are stored in the dashboard database as strings.
const (
	WorkflowPatching        = WorkflowType("patching")
	WorkflowModeration      = WorkflowType("moderation")
	WorkflowAssessmentKCSAN = WorkflowType("assessment-kcsan")
)

// Outputs of various workflow types.
// Should be changed carefully since old outputs are stored in the dashboard database.

type AssessmentKCSANOutputs struct {
	Confident   bool
	Benign      bool
	Explanation string
}