Versions in this module Expand all Collapse all v1 v1.1.6 Dec 23, 2025 Changes in this version + type ChainProvider struct + func Chain(providers ...Provider) *ChainProvider + func (c *ChainProvider) Add(p Provider) *ChainProvider + func (c *ChainProvider) Name() string + func (c *ChainProvider) Provide(ctx context.Context) (map[string]string, error) + func (c *ChainProvider) Providers() []Provider + type Provider interface + Name func() string + Provide func(ctx context.Context) (map[string]string, error) + type StateProvider struct + KeyPrefix string + StripPrefix bool + func NewStatePrefixProvider(store statestore.Store, conversationID, prefix string, stripPrefix bool) *StateProvider + func NewStateProvider(store statestore.Store, conversationID string) *StateProvider + func (p *StateProvider) Name() string + func (p *StateProvider) Provide(ctx context.Context) (map[string]string, error) + type TimeProvider struct + Format string + Location *time.Location + func NewTimeProvider() *TimeProvider + func NewTimeProviderWithFormat(format string) *TimeProvider + func NewTimeProviderWithLocation(loc *time.Location) *TimeProvider + func (p *TimeProvider) Name() string + func (p *TimeProvider) Provide(ctx context.Context) (map[string]string, error) + func (p *TimeProvider) WithNowFunc(fn func() time.Time) *TimeProvider