Document smoke-test diagnostics
This commit is contained in:
@@ -12,8 +12,8 @@ import (
|
||||
"gitea.maximumdirect.net/eric/promptkit/internal/observation"
|
||||
)
|
||||
|
||||
// SmokeTester coordinates internal HTTP smoke-test operations over captured
|
||||
// selection collaborators. Inference operations are added separately.
|
||||
// SmokeTester coordinates internal diagnostic operations over captured
|
||||
// selection collaborators, shared generation, and optional built-in HTTP.
|
||||
type SmokeTester struct {
|
||||
runner *Runner
|
||||
httpClient smokeHTTPGetter
|
||||
@@ -38,7 +38,7 @@ func newSmokeTesterWithClock(runner *Runner, httpClient *llm.OpenAICompatibleCli
|
||||
return &SmokeTester{runner: runner, httpClient: getter, now: now}
|
||||
}
|
||||
|
||||
// Run selects and executes one HTTP diagnostic, retaining only factual results.
|
||||
// Run selects and executes one diagnostic, retaining only factual results.
|
||||
func (t *SmokeTester) Run(ctx context.Context, request domain.SmokeTestRequest) (*domain.SmokeTestReport, error) {
|
||||
if t == nil || t.runner == nil {
|
||||
return nil, fmt.Errorf("%w: smoke tester is not configured", ErrInvalidRequest)
|
||||
|
||||
Reference in New Issue
Block a user