Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Hex Semantic Model

No security coverage Under active development

This module generates a Hex.tech semantic model from your Drupal site's entity and field definitions. This allows Hex AI agents to query your Drupal database by understanding its structure, including revisions, translations, and field relationships. The generated model is automatically updated and synchronized with your site's configuration.

Generates a Hex.tech semantic-model YAML from a Drupal site's entity and field definitions, so Hex's AI agents can query the Drupal database through a semantic layer that already understands Drupal's storage.

Drupal stores each field in its own table, keeps revisions and translations alongside live data, and encodes meaning in configuration rather than in the schema. This module reads that configuration and writes one Hex model per entity type and per bundle, with the field joins, bundle filters, deleted-row and translation handling, timestamp conversions and reference relations already expressed. Field labels, descriptions and allowed values become the dimension names and descriptions the agent reads. The output is committed to your repository and published to Hex with Hex Context Sync, so the semantic layer stays in step with the site's configuration.

Features

  • Uses Hex's native semantic modelling specification.
  • One model per entity type and per bundle, with child models for multi-value fields and relations for entity references.
  • Configurable entity type selection, field exclusions with conservative defaults for credentials, and internal visibility for models that should exist for joins but not for browsing.
  • An alter hook for site-specific naming or additions, and an optional submodule that names Group relationship types readably.
  • A Drush command for generation, suited to running in CI.

Ask your assistant about Hex Semantic Model

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Sep 2026
Latest release
1 month ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core PHP Release date
1.0.x-dev Dev 10–11 Sep 13, 2026