workflow

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FinalAnalysisPrompt = `` /* 534-byte string literal not displayed */

Functions

func CommandAnalysisPrompt

func CommandAnalysisPrompt(session *models.DebugSessionLog, includeAllBatchAnalysis bool, includeAllCommandOutputs bool) string

func DebugWorkflow

func DebugWorkflow(issueDescription string, conf *models.DebugSessionConfig, interactive bool, llmProvider llm.Provider) *models.DebugSessionLog

func FinalAnalysis

func FinalAnalysis(sessionLog *models.DebugSessionLog, llmProvider llm.Provider)

func FinalAnalysisPromptWithSessionLog

func FinalAnalysisPromptWithSessionLog(sessionLog *models.DebugSessionLog) string

func Init

func Init(issueDescription string, conf *models.DebugSessionConfig) *models.DebugSessionLog

func IsCommandAllowed

func IsCommandAllowed(command string, config *models.DebugSessionConfig) bool

func PrepareNextBatch

func PrepareNextBatch(sessionLog *models.DebugSessionLog, nextCmds []string)

func RunCommands

func RunCommands(actions []*models.Action)

func RunLastBatch

func RunLastBatch(session *models.DebugSessionLog, llmProvider llm.Provider)

func RunRemoteCommand

func RunRemoteCommand(user string, host string, port string, auth []ssh.AuthMethod, cmd string, wg *sync.WaitGroup, results chan<- RemoteResult)

Types

type CommandAnalysisInput

type CommandAnalysisInput struct {
	Session                  *models.DebugSessionLog
	IncludeAllBatchAnalysis  bool
	IncludeAllCommandOutputs bool
}

type CommandAnalysisResponse

type CommandAnalysisResponse struct {
	Analysis        string   `` /* 134-byte string literal not displayed */
	Recommendations []string `` /* 162-byte string literal not displayed */
	Final           bool     `` /* 206-byte string literal not displayed */
}

func AnalyzeCommands

func AnalyzeCommands(prompt string, provider llm.Provider) (CommandAnalysisResponse, error)

type RemoteResult

type RemoteResult struct {
	Command string
	Output  string
	Error   error
	Host    string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL