Skip to content

API Reference parrot_tools.legal.boe.models

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

parrot_tools.legal.boe.models

View source

Pydantic models for BOE consolidated-legislation records.

Defines the ArticleVersion shape (spec §2 Data Models, sdd/specs/legal-norms-graph-boe.spec.md) and the ParsedNorm container returned by parse_consolidated.

Class ArticleHit

One BM25 lexical-candidate hit from the search_articles pattern.

Fields:

Field Type Default Description
articulo_key str
norma_ref str
numero str
version ArticleVersion
score float

Class ArticleVersion

One dated wording of a single BOE article.

Fields:

Field Type Default Description
n int
text str | None
valid_from date
valid_to date | None
modified_by str | None
kind Literal['redaccion', 'adicion', 'supresion']
source Literal['boe_consolidada']
derived bool
content_hash str | None None
hash_norm_version int | None None

Class ParsedNorm

Result of parsing one BOE consolidated-legislation XML document.

Fields:

Field Type Default Description
norma dict[str, Any]
articulos list[dict[str, Any]]
relations list[dict[str, Any]]
errors list[str]

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