Remove direct output validation
This commit is contained in:
@@ -6,14 +6,6 @@ import (
|
||||
"go.maximumdirect.net/promptkit/internal/domain"
|
||||
)
|
||||
|
||||
// Validator validates the generated artifact based on the output contract.
|
||||
// Validation checks ctx around Promptkit-controlled work and synchronous
|
||||
// dependency calls. A dependency call already in progress cannot be preempted;
|
||||
// after it returns, cancellation takes precedence over its result.
|
||||
type Validator interface {
|
||||
Validate(ctx context.Context, artifact *domain.Artifact, contract domain.OutputContract) (domain.ValidationResult, error)
|
||||
}
|
||||
|
||||
// PreparedValidation validates artifacts against one frozen output contract.
|
||||
// Its cancellation boundary is synchronous: Validate does not detach schema
|
||||
// execution, and an observed context error prevents publication of a result.
|
||||
|
||||
Reference in New Issue
Block a user