Versions in this module Expand all Collapse all v0 v0.22.1 Nov 22, 2026 v0.22.0 Nov 21, 2026 v0.21.0 Nov 21, 2026 Changes in this version + const CheckTimeout + const DocumentsPurpose + const IndexName + const MCPConnectTimeout + const MCPPath + const MaxDocumentsBody + const PlatformModule + const StoreName + var DefaultExcludedSegments = []string + func CloseTools(tools []ai.Tool) + func ExcludePathSegments(segments ...string) func(path string) bool + func PathHasPrefix(path, prefix string) bool + func PathMatches(path, template string) bool + func PlatformVersion() string + func Redact(msg, secret string) string + func RouteTools(o RouteToolsOptions) (spec []byte, include func(method, path string) bool, err error) + type CheckInput struct + Kind string + Name string + type CheckResult struct + Dimensions int + ErrorKind string + Kind string + LatencyMS int64 + Message string + Name string + OK bool + Tools int + type Document struct + Content string + ID string + Metadata map[string]string + type Instance struct + func New(o Options) (*Instance, error) + func (i *Instance) APITools() []ai.Tool + func (i *Instance) AddDocuments(w http.ResponseWriter, r *http.Request) + func (i *Instance) Close() error + func (i *Instance) Index() *rag.Index + func (i *Instance) ListModels(w http.ResponseWriter, r *http.Request) + func (i *Instance) Mount(r *mux.Router, prefix string, ...) + func (i *Instance) Options() Options + func (i *Instance) RequestTool() ai.Tool + func (i *Instance) SearchDocuments(w http.ResponseWriter, r *http.Request) + func (i *Instance) ServeMCP(w http.ResponseWriter, r *http.Request) + func (i *Instance) Service() *ai.Service + func (i *Instance) Store() *store.Store + func (i *Instance) TestCredential(w http.ResponseWriter, r *http.Request) + func (i *Instance) Tools(ctx context.Context, c ai.Caller) ([]ai.Tool, error) + func (i *Instance) Usage() *usage.Recorder + type ModelsInput struct + Endpoint string + Name string + Provider string + Token string + type ModelsResult struct + ErrorKind string + Message string + Models []ai.ModelInfo + OK bool + Provider string + type Options struct + AllowWrites bool + Charts bool + Credentials ai.CredentialResolver + Dir string + Docs []*docsearch.Corpus + Effort string + Handler http.Handler + HeartbeatInterval time.Duration + Instructions []string + Local usage.Local + Logger *logger.Logger + MaxToolResponseBytes int + MaxTurns int + Name string + OpenAPI []byte + Providers map[string]ai.ProviderFactory + Publisher usage.Publisher + Service string + SetupTimeout time.Duration + System string + ToolFilter func(method, path string) bool + ToolGuidance func(path string) string + ToolPrefix string + Tools func(ctx context.Context, c ai.Caller) ([]ai.Tool, error) + UsageRetention time.Duration + Version string + type RouteOperation struct + Methods []string + Path string + type RouteToolsOptions struct + Admit []RouteOperation + Contracts [][]byte + Exclude func(path string) bool + Queries func(path string) []string + Root string + Router *mux.Router + SideEffectGET func(path string) bool + Title string + type SearchResult struct + Content string + ID string + Metadata map[string]string + Similarity float32