Skip to content

API Reference parrot.integrations.knowledge_upload.targets.base

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

parrot.integrations.knowledge_upload.targets.base

View source

Ingest target contract for knowledge uploads.

Class IngestTarget

A knowledge plane an uploaded document can be ingested into.

Attributes:

Attribute Type Description
kind UploadTargetKind
lock_key Path Resolved root used for the process-wide lock.
staging_dir Path Directory where the upload is staged for the duration of one ingest.

Method IngestTarget.available

Return whether the target is usable and, if not, why.

available() -> tuple[bool, str]

Returns: tuple[bool, str]

Method IngestTarget.ingest

Ingest the staged file and return the user-facing 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 UploadOutcome

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

Alias UploadRequest

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

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