File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,23 +8,19 @@ import "github.com/GrayCodeAI/hawk/engine"
88type Optimizer = engine.PromptOptimizer
99
1010// DSPyExample is one (input, output) demonstration backing the optimizer.
11- type DSPyExample = engine.DSPyExample
11+ type DSPyExample = engine.PromptExample
1212
1313// DSPyVariant is a candidate prompt being evaluated.
14- type DSPyVariant = engine.DSPyVariant
14+ type DSPyVariant = engine.PromptVariant
1515
1616// ABTest pits two prompt variants against each other on incoming traffic.
17- type ABTest = engine.ABTest
18-
19- // Tuner is a lighter-weight prompt-tuning helper for online adjustments.
20- type Tuner = engine.PromptTuner
21-
22- // Variant is a tuned prompt the Tuner emits.
23- type Variant = engine.PromptVariant
17+ type ABTest struct {
18+ A , B DSPyVariant
19+ }
2420
25- // NewOptimizer returns a fresh prompt optimizer .
26- func NewOptimizer ( ) * Optimizer {
27- return engine . NewPromptOptimizer ()
21+ // NewABTest builds an A/B test between two variants .
22+ func NewABTest ( a , b DSPyVariant ) * ABTest {
23+ return & ABTest { A : a , B : b }
2824}
2925
3026// NewABTest builds an A/B test between two variants.
Original file line number Diff line number Diff line change @@ -51,5 +51,5 @@ func TestAutoCapture_Metrics(t *testing.T) {
5151 defer ac .Stop ()
5252
5353 metrics := ac .Metrics ()
54- _ = metrics
54+ _ = & metrics
5555}
You can’t perform that action at this time.
0 commit comments