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.
Click to show internal directories.
Click to hide internal directories.