Documentation
¶
Overview ¶
Package mongo provides a MongoDB-backed implementation of the runtime prompt store. Build the low-level client via features/prompt/mongo/clients/mongo and pass it to NewStore to persist and resolve scoped prompt overrides.
Package mongo wires the prompt.Store interface to the MongoDB prompt client.
Index ¶
- type Store
- func (s *Store) History(ctx context.Context, promptID prompt.Ident) ([]*prompt.Override, error)
- func (s *Store) List(ctx context.Context) ([]*prompt.Override, error)
- func (s *Store) Resolve(ctx context.Context, promptID prompt.Ident, scope prompt.Scope) (*prompt.Override, error)
- func (s *Store) Set(ctx context.Context, promptID prompt.Ident, scope prompt.Scope, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements prompt.Store by delegating to the Mongo client.
func NewStore ¶
func NewStore(client clientsmongo.Client) (*Store, error)
NewStore builds a Mongo-backed prompt store using the provided client.
Click to show internal directories.
Click to hide internal directories.