Skip to content

API Reference parrot.bots.prompts.domain_layers

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

parrot.bots.prompts.domain_layers

View source

Domain-specific prompt layers.

Reusable layers for specialized bot types (PandasAgent, SQL agents, company bots, crew orchestration). These extend the built-in layers without modifying them.

See spec: sdd/specs/composable-prompt-layer.spec.md (Section 3.5)

Attribute AGENT_BEHAVIOR_LAYER

Attribute CAPABILITIES_LAYER

Attribute COMPANY_CONTEXT_LAYER

Attribute CREW_CONTEXT_LAYER

Attribute DATAFRAME_CONTEXT_LAYER

Attribute DATA_INSTRUCTIONS_LAYER

Attribute GROUNDING_SENTINELS

Localized FEAT-138 sentinel prefixes, keyed by ISO 639-1 code.

Injected into the prompt as $sentinel_not_found / $sentinel_error by AbstractBot._configure_prompt_builder(); consumed by JIRA_GROUNDING_LAYER. The en row must stay byte-identical to the original FEAT-138 phrases.

Type: Final[Dict[str, Dict[str, str]]]

Attribute JIRA_GROUNDING_LAYER

Attribute JIRA_WORKFLOW_LAYER

Attribute KNOWLEDGE_SCOPE_LAYER

Alias LayerPriority

Re-exported from parrot.bots.prompts.layers.LayerPriority.

Attribute OUTPUT_LANGUAGE_LAYER

Attribute PANDAS_INSTRUCTIONS_LAYER

Alias PromptLayer

Re-exported from parrot.bots.prompts.layers.PromptLayer.

Attribute RAG_GROUNDING_LAYER

Alias RenderPhase

Re-exported from parrot.bots.prompts.layers.RenderPhase.

Attribute SQL_DIALECT_LAYER

Attribute STRICT_GROUNDING_LAYER

Attribute TOOLLESS_DATA_GROUNDING_LAYER

Function get_domain_layer

Look up a registered domain layer by name.

get_domain_layer(name: str) -> PromptLayer

Parameter Type Default Description
name str The domain layer name.

Returns: PromptLayer — The registered PromptLayer.

Raises:

  • KeyError — If the name is not registered.

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