Document PromptKit catalogs and smoke testing
This commit is contained in:
@@ -10,8 +10,9 @@ import (
|
||||
promptkit "gitea.maximumdirect.net/eric/promptkit"
|
||||
)
|
||||
|
||||
// SmokeRequest carries the configuration selection and seed request for one
|
||||
// concrete PromptKit smoke-test operation.
|
||||
// SmokeRequest pairs the configuration selection with the seed request for one
|
||||
// concrete PromptKit smoke-test operation. It is passed to the optional
|
||||
// builder and the Suite.SmokeTest callback.
|
||||
type SmokeRequest struct {
|
||||
// Selection identifies the configuration sources used to load the engine.
|
||||
Selection ckconfig.Selection
|
||||
@@ -25,7 +26,8 @@ type SmokeRequest struct {
|
||||
// invocation context. Its complete returned request is passed to PromptKit;
|
||||
// without a builder, the seed is forwarded unchanged. Reports and errors from
|
||||
// PromptKit are both retained. A nil loader is kept as a suite wiring issue and
|
||||
// does not install a smoke-test callback.
|
||||
// does not install a smoke-test callback. The callback also retains engine
|
||||
// loading diagnostics with the report and error.
|
||||
func WithSmokeTesting[I, S any](
|
||||
suite Suite[I, S],
|
||||
load func(context.Context, ckconfig.Selection, I, S) (*promptkit.Engine, error),
|
||||
|
||||
Reference in New Issue
Block a user