en un clic
gen-semantic-model
// Generate MetricFlow semantic models from database tables with validation and Knowledge Base publishing
// Generate MetricFlow semantic models from database tables with validation and Knowledge Base publishing
Create database tables from SQL (CTAS) or natural language descriptions
Generate MetricFlow metrics from natural language business descriptions
Activate when the gen_job agent detects that the source and target databases differ. Covers cross-database transfer lifecycle - type mapping via adapter Mixin hints, DDL generation, data transfer via transfer_query_result, and lightweight reconciliation.
Execution guide for Airflow scheduled jobs — troubleshooting, updating, conn_id conventions, and cron references
Scheduler validator driven by ValidationHook — read-only static verification of scheduled jobs (schedule correctness, configuration, runtime context already collected by deterministic hook). Does not trigger test runs.
Create, view, and manage Grafana dashboards with panels and datasources
| name | gen-semantic-model |
| description | Generate MetricFlow semantic models from database tables with validation and Knowledge Base publishing |
| tags | ["semantic-model","metricflow"] |
| version | 1.0.0 |
| user_invocable | false |
| disable_model_invocation | false |
| allowed_agents | ["gen_semantic_model","gen_metrics"] |
Create production-ready MetricFlow semantic model YAML for one or more database tables, validate it, and publish it to the Knowledge Base.
Understand target tables
describe_table, get_table_ddl, and relationship tools as needed.ask_user only when a critical modeling choice cannot be inferred.Model columns
identifiers and dimensions. Use identifiers for
primary/join keys and dimensions for grouping/filtering fields.expr: "1" for row-count measures with agg: COUNT.agg for the aggregation type; do not add a type field to measure entries.Write YAML
subject/semantic_models/<current_datasource>/{table_name}.yml.data_source: documents; do not put a top-level metrics: list beside data_source: in the same document.metric: documents.Validate and fix
validate_semantic(scope="semantic_model").edit_file to fix the YAML and call validate_semantic again.validate_semantic succeeds.Publish
end_semantic_model_generation with all generated semantic model file paths.semantic_model_files to validate and publish before reporting success.validate_semantic succeeds.end_semantic_model_generation; final JSON semantic_model_files is the host fallback.