Documentation
¶
Overview ¶
Package reading is the agent reading books a passage a sitting over many days, and Wikipedia articles at once. Texts are kept in the store, so a book is downloaded once.
Index ¶
Constants ¶
View Source
const ( BookName = "read_book" ArticleName = "read_article" NotesKind = "reading_notes" PassageSize = 12000 // bytes of a book read in one sitting, about 3,000 tokens ArticleSize = 20000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Book ¶
type Store ¶
type Store interface {
// SaveSource stores a source and returns its ID: the existing one if its URL was fetched before.
SaveSource(ctx context.Context, src memory.Source) (ulid.ULID, error)
SourceText(ctx context.Context, id ulid.ULID) (string, error)
ReadingProject(ctx context.Context, source ulid.ULID) (memory.Project, bool, error)
}
Click to show internal directories.
Click to hide internal directories.