Documentation
¶
Overview ¶
Package web is the agent searching and reading the open web, within a daily cap. A page can only be read if it came from one of its own searches, so a link on a page can never send it somewhere; everything it reads is fenced as untrusted material, never instructions.
Index ¶
Constants ¶
const ( SearchName = "web_search" PageName = "read_page" NotesKind = "reading_notes" )
Variables ¶
var ErrOverCap = errors.New("over today's limit")
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface {
// SaveFound remembers pages a search found, so it may read them later.
SaveFound(ctx context.Context, query string, rs []search.Result, at time.Time) error
Found(ctx context.Context, url string) (search.Result, bool, error)
LogWeb(ctx context.Context, kind, what string, costUSD float64, at time.Time) error
WebSince(ctx context.Context, kind string, since time.Time) (int, error)
}