Skip to content

API Reference parrot.knowledge.wiki.glossary.locations

github-actions[bot] edited this page Dec 2, 2026 · 1 revision

parrot.knowledge.wiki.glossary.locations

View source

Where glossary planes live (FEAT-917).

Attribute AGENT_DIRNAME

Alias BANK_NAME

Re-exported from parrot.knowledge.wiki.glossary.bank.BANK_NAME.

Attribute DB_NAME

Attribute DeploymentLayer

Attribute SHARED_DIRNAME

Attribute TENANTS_DIRNAME

Function layer_dirs

Return plane directories in precedence order, highest first.

agent_id is trusted configuration and may contain spaces, but it must still be a single, non-empty path component. tenant is request input and is validated as an untrusted path segment. Directories are returned whether or not they exist.

layer_dirs(agents_dir: Path, agent_id: str, tenant: str | None) -> list[tuple[DeploymentLayer, Path]]

Parameter Type Default Description
agents_dir Path Root directory holding agent and shared glossary planes.
agent_id str Configured bot or agent name.
tenant str | None Optional request tenant identifier.

Returns: list[tuple[DeploymentLayer, Path]] — Deployment layers and their canonical directories in precedence order.

Raises:

  • ValueError — If agent_id or tenant is unsafe.

Alias secure_path

Re-exported from parrot.utils.paths.secure_path.

Alias validate_path_segment

Re-exported from parrot.utils.paths.validate_path_segment.

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