Skip to content

Commit 08abf7b

Browse files
committed
fix: resolve dev CI failures - undefined DSPy types and lock copy in test
1 parent ec5f454 commit 08abf7b

2 files changed

Lines changed: 9 additions & 13 deletions

File tree

engine/prompt/aliases.go

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,19 @@ import "github.com/GrayCodeAI/hawk/engine"
88
type 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.

memory/auto_capture_additional_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)