Skip to content

API Reference parrot.integrations.knowledge_upload.targets.bookstore

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

parrot.integrations.knowledge_upload.targets.bookstore

View source

Bookstore ingest target (/ingest_book).

Class BookstoreTarget

Ingest uploads with Bookstore.add_book (same as bookstore add).

Parameter Type Default Description
config BookstoreTargetConfig

Attributes:

Attribute Type Description
lock_key Path Return the resolved library directory used for target locking.
staging_dir Path Return the stable private directory used to stage uploads.

Method BookstoreTarget.available

Initialize the Bookstore if a configured LLM adapter is available.

available() -> tuple[bool, str]

Returns: tuple[bool, str]

Method BookstoreTarget.ingest

Ingest a staged document and return its user-facing Bookstore outcome.

ingest(staged_path: Path, request: UploadRequest, job_id: str) -> UploadOutcome

Parameter Type Default Description
staged_path Path
request UploadRequest
job_id str

Returns: UploadOutcome

Alias BookstoreTargetConfig

Re-exported from parrot.integrations.knowledge_upload.models.BookstoreTargetConfig.

Alias IngestTarget

Re-exported from parrot.integrations.knowledge_upload.targets.base.IngestTarget.

Alias UploadOutcome

Re-exported from parrot.integrations.knowledge_upload.models.UploadOutcome.

Alias UploadRequest

Re-exported from parrot.integrations.knowledge_upload.models.UploadRequest.

Alias UploadStatus

Re-exported from parrot.integrations.knowledge_upload.models.UploadStatus.

Alias UploadTargetKind

Re-exported from parrot.integrations.knowledge_upload.models.UploadTargetKind.

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