2026-07-28 04:18:09 +00:00
|
|
|
package promptdef
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
2026-09-30 04:18:27 +00:00
|
|
|
"errors"
|
2026-07-28 04:18:09 +00:00
|
|
|
|
2026-11-02 14:38:00 +00:00
|
|
|
"go.maximumdirect.net/promptkit/internal/domain"
|
2026-07-28 04:18:09 +00:00
|
|
|
)
|
|
|
|
|
|
2026-09-30 04:18:27 +00:00
|
|
|
// ErrPromptDefinitionNotFound identifies an absent captured prompt definition.
|
|
|
|
|
var ErrPromptDefinitionNotFound = errors.New("prompt definition not found")
|
|
|
|
|
|
|
|
|
|
// Repository selects prompt definitions from a captured index.
|
2026-07-28 04:18:09 +00:00
|
|
|
type Repository interface {
|
2026-10-17 05:47:14 +00:00
|
|
|
GetPromptDefinition(ctx context.Context, id string) (*domain.PromptDefinition, error)
|
2026-07-28 04:18:09 +00:00
|
|
|
}
|