Validate internal decisions and reconcile exact model references
This commit is contained in:
@@ -30,7 +30,7 @@ type fakeValidator struct{}
|
||||
|
||||
func (f *fakeValidator) Name() string { return "fake-validator" }
|
||||
|
||||
func (f *fakeValidator) Validate(ctx context.Context, req ValidationRequest) (validators.Result, error) {
|
||||
func (f *fakeValidator) Validate(ctx context.Context, req validators.Request) (validators.Result, error) {
|
||||
_ = ctx
|
||||
decisions := make([]validators.Decision, len(req.CandidateProposal))
|
||||
for i, proposal := range req.CandidateProposal {
|
||||
@@ -47,8 +47,8 @@ func (f *fakeModule) ReplacementPolicy() proposals.ReplacementPolicy {
|
||||
return proposals.ReplacementPolicyRequireUnique
|
||||
}
|
||||
|
||||
func (f *fakeModule) Validators() []Validator {
|
||||
return []Validator{&fakeValidator{}}
|
||||
func (f *fakeModule) Validators() []validators.Validator {
|
||||
return []validators.Validator{&fakeValidator{}}
|
||||
}
|
||||
|
||||
func (f *fakeModule) Propose(ctx context.Context, req ProposalRequest) (ProposalResult, error) {
|
||||
@@ -63,7 +63,7 @@ func (f *fakeModule) Propose(ctx context.Context, req ProposalRequest) (Proposal
|
||||
|
||||
func TestInterfaceContractsCompileWithFakes(t *testing.T) {
|
||||
var _ StructuredLLMClient = (*fakeLLMClient)(nil)
|
||||
var _ Validator = (*fakeValidator)(nil)
|
||||
var _ validators.Validator = (*fakeValidator)(nil)
|
||||
var _ TranscriptModule = (*fakeModule)(nil)
|
||||
|
||||
module := &fakeModule{}
|
||||
|
||||
Reference in New Issue
Block a user