Versions in this module Expand all Collapse all v0 v0.2.1 Oct 27, 2026 v0.2.0 Oct 20, 2026 Changes in this version + type Config struct + CitationsPrompt *string + ContextFormatter func([]Result) (string, error) + ContextPrompt *string + FunctionToolDescription *string + FunctionToolName *string + LogSensitiveData bool + Logger *slog.Logger + RecentMessageMemoryLimit int + RecentMessageRolesIncluded []message.Role + Redactor func(string) string + SearchInputMessageFilter messagefilter.Filter + SearchTime SearchBehavior + StateKey *string + StorageInputRequestMessageFilter messagefilter.Filter + StorageInputResponseMessageFilter messagefilter.Filter + type Provider struct + func NewContextProvider(search func(context.Context, string) ([]Result, error), config Config) *Provider + func (p *Provider) Invoked(ctx context.Context, invoked agent.InvokedContext) error + func (p *Provider) Invoking(ctx context.Context, invoking agent.InvokingContext) ([]*message.Message, []agent.Option, error) + func (p *Provider) StateKeys() []string + type Result struct + RawRepresentation any + SourceLink string + SourceName string + Text string + type SearchBehavior int + const BeforeInvoke + const OnDemandFunctionCalling + type State struct + RecentMessagesText []string