diagnosis

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package diagnosis provides AI-powered failure analysis for PM tasks. When a task fails, it calls the provider to analyze what went wrong and suggest a concrete fix strategy for the next attempt.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnalyzeFailure

func AnalyzeFailure(ctx context.Context, p provider.Provider, model string, timeout time.Duration, task *pm.Task, failureOutput string) (string, error)

AnalyzeFailure asks the provider to diagnose why a task failed and suggest what should be tried differently on the next attempt. The failureOutput is the full AI response that contained TASK_FAILED. Returns a concise diagnosis string suitable for injecting into retry prompts.

Types

This section is empty.

Jump to

Keyboard shortcuts

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