ai

package
v1.0.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateCredentials

func ValidateCredentials(ctx context.Context, cfg config.AIConfig) error

ValidateCredentials checks that the configured provider accepts the current credentials (one lightweight HTTP call per backend).

Types

type Summarizer

type Summarizer interface {
	Summarize(ctx context.Context, title, content string) (string, error)
	ProviderName() string
}

Summarizer generates a short summary of an article.

func New

func New(cfg config.AIConfig) (Summarizer, error)

New returns the configured Summarizer, or an error if none is configured.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL