17 lines
449 B
Go
17 lines
449 B
Go
package promptdef
|
|
|
|
import (
|
|
"context"
|
|
"errors"
|
|
|
|
"gitea.maximumdirect.net/eric/promptkit/internal/domain"
|
|
)
|
|
|
|
// ErrPromptDefinitionNotFound identifies an absent captured prompt definition.
|
|
var ErrPromptDefinitionNotFound = errors.New("prompt definition not found")
|
|
|
|
// Repository selects prompt definitions from a captured index.
|
|
type Repository interface {
|
|
GetPromptDefinition(ctx context.Context, id string) (*domain.PromptDefinition, error)
|
|
}
|