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
|
|
|
|
|
|
|
|
"gitea.maximumdirect.net/eric/promptkit/internal/domain"
|
|
|
|
|
)
|
|
|
|
|
|
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 {
|
|
|
|
|
GetPromptDefinition(ctx context.Context, id string, version string) (*domain.PromptDefinition, error)
|
|
|
|
|
}
|