autonews

package module
v0.0.0-...-6f43a82 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 9 Imported by: 0

README

AutoNews

AI-based automatic newsletter generation

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSummaryNotProvided = errors.New("summary not provided")
View Source
var ErrTitleFailed = errors.New("title failed")
View Source
var ErrTranslationFailed = errors.New("translation failed")

Functions

This section is empty.

Types

type AutoNews

type AutoNews struct {
	// contains filtered or unexported fields
}

func NewAutoNews

func NewAutoNews(model llm.LLM) *AutoNews

func (*AutoNews) Crawl

func (g *AutoNews) Crawl(ctx context.Context, url string) (html string, err error)

func (*AutoNews) GeneratePost

func (g *AutoNews) GeneratePost(ctx context.Context, url string) (title string, summary string, err error)

func (*AutoNews) NewsTitle

func (g *AutoNews) NewsTitle(ctx context.Context, text string) (title string, err error)

func (*AutoNews) Title

func (g *AutoNews) Title(ctx context.Context, text string) (title string, err error)

func (*AutoNews) Translate

func (g *AutoNews) Translate(ctx context.Context, text string) (translated string, err error)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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