Files
2026-07-13 13:00:08 +08:00

18 lines
427 B
Go

package agent
import "fmt"
// FinalReadinessError reports that the model exhausted its recovery attempts
// before satisfying the host-observed delivery checks.
type FinalReadinessError struct {
Attempts int
Reason string
}
func (e *FinalReadinessError) Error() string {
if e == nil {
return "final-answer readiness failed"
}
return fmt.Sprintf("final-answer readiness failed %d times: %s", e.Attempts, e.Reason)
}