Documentation
¶
Index ¶
- Variables
- func CommandAnalysisPrompt(session *models.DebugSessionLog, includeAllBatchAnalysis bool, ...) string
- func DebugWorkflow(issueDescription string, conf *models.DebugSessionConfig, interactive bool, ...) *models.DebugSessionLog
- func FinalAnalysis(sessionLog *models.DebugSessionLog, llmProvider llm.Provider)
- func FinalAnalysisPromptWithSessionLog(sessionLog *models.DebugSessionLog) string
- func Init(issueDescription string, conf *models.DebugSessionConfig) *models.DebugSessionLog
- func IsCommandAllowed(command string, config *models.DebugSessionConfig) bool
- func PrepareNextBatch(sessionLog *models.DebugSessionLog, nextCmds []string)
- func RunCommands(actions []*models.Action)
- func RunLastBatch(session *models.DebugSessionLog, llmProvider llm.Provider)
- func RunRemoteCommand(user string, host string, port string, auth []ssh.AuthMethod, cmd string, ...)
- type CommandAnalysisInput
- type CommandAnalysisResponse
- type RemoteResult
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 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)
Click to show internal directories.
Click to hide internal directories.