Skip to content

API Reference parrot.knowledge.bookstore

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.knowledge.bookstore

View source

Bookstore — a personal indexed library of books over PageIndex.

Books (PDF / EPUB / Markdown / plain text) are indexed as PageIndex hierarchical trees (chapters / sections / page ranges) and catalogued with a per-book "ficha" (:class:BookCard) stored in a SQLite + FTS5 catalog, so an agent can first ask which book covers topic X cheaply and only then drill into the right book's tree.

Data lives per scope under <scope>/.parrot/library/:

  • library.db — the catalog (books table + books_fts).
  • trees/ — the :class:~parrot.knowledge.pageindex.toolkit.PageIndexToolkit storage dir (<slug>.json lean trees + <slug>/*.md sidecars).

Agent surface: :class:BookstoreToolkit (read-only, ten bookstore_* tools — FEAT-533 adds related_books/communities/ get_community). Management surface: the bookstore CLI (add / add-folder / list / show / search / toc / related / relate / communities / export-wiki / remove / mcp).

Imports here are deliberately light — no parrot.mcp / navconfig chains at module import time (stdout purity for the MCP server).

Alias BookCard

Re-exported from parrot.knowledge.bookstore.models.BookCard.

Alias BookCommunity

Re-exported from parrot.knowledge.bookstore.models.BookCommunity.

Alias BookRelation

Re-exported from parrot.knowledge.bookstore.models.BookRelation.

Alias CardDraft

Re-exported from parrot.knowledge.bookstore.models.CardDraft.

Alias CommunityLabelDraft

Re-exported from parrot.knowledge.bookstore.models.CommunityLabelDraft.

Alias Genre

Re-exported from parrot.knowledge.bookstore.models.Genre.

Alias LibraryLocation

Re-exported from parrot.knowledge.bookstore.config.LibraryLocation.

Alias REL_WEIGHTS

Re-exported from parrot.knowledge.bookstore.models.REL_WEIGHTS.

Alias RelateSummary

Re-exported from parrot.knowledge.bookstore.models.RelateSummary.

Alias RelationDraft

Re-exported from parrot.knowledge.bookstore.models.RelationDraft.

Alias RelationJudgement

Re-exported from parrot.knowledge.bookstore.models.RelationJudgement.

Alias RelationKind

Re-exported from parrot.knowledge.bookstore.models.RelationKind.

Alias SYMMETRIC_RELS

Re-exported from parrot.knowledge.bookstore.models.SYMMETRIC_RELS.

Alias TocEntry

Re-exported from parrot.knowledge.bookstore.models.TocEntry.

Alias resolve_locations

Re-exported from parrot.knowledge.bookstore.config.resolve_locations.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally