groundworkers 0.10.0__tar.gz → 0.11.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {groundworkers-0.10.0 → groundworkers-0.11.0}/.github/PULL_REQUEST_TEMPLATE.md +1 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/.gitignore +2 -1
- {groundworkers-0.10.0 → groundworkers-0.11.0}/PKG-INFO +7 -7
- {groundworkers-0.10.0 → groundworkers-0.11.0}/README.md +1 -1
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/development/plugins.md +5 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/services/graph.md +1 -1
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/tools/concept.md +24 -11
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/tools/domain.md +4 -4
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/tools/embedding.md +5 -1
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/tools/knowledge.md +1 -1
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/tools/mapping.md +40 -42
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/tools/overview.md +34 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/tools/resolver.md +1 -1
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/tools/search.md +1 -1
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/tools/source_planning.md +1 -1
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/tools/text.md +6 -4
- {groundworkers-0.10.0 → groundworkers-0.11.0}/pyproject.toml +4 -4
- groundworkers-0.11.0/src/groundworkers/adapters/_omop_graph_ancestry.py +135 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/adapters/omop_emb.py +118 -14
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/adapters/omop_graph.py +58 -6
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/base/server.py +126 -6
- groundworkers-0.11.0/src/groundworkers/knowledge/packs/core/measurement-concept-granularity/guidance.md +64 -0
- groundworkers-0.11.0/src/groundworkers/knowledge/packs/core/measurement-concept-granularity/manifest.yaml +24 -0
- groundworkers-0.11.0/src/groundworkers/knowledge/packs/core/measurement-concept-granularity/rules.yaml +78 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/server.py +22 -8
- groundworkers-0.11.0/src/groundworkers/server_instructions.py +67 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/graph.py +51 -38
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/mapping.py +208 -31
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/vocab.py +6 -6
- groundworkers-0.11.0/src/groundworkers/tools/concept_tools.py +411 -0
- groundworkers-0.11.0/src/groundworkers/tools/domain_tools.py +40 -0
- groundworkers-0.11.0/src/groundworkers/tools/embedding_tools.py +293 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tools/knowledge_tools.py +58 -50
- groundworkers-0.11.0/src/groundworkers/tools/mapping_tools.py +434 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tools/resolver_tools.py +46 -57
- groundworkers-0.11.0/src/groundworkers/tools/search_tools.py +155 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tools/semantic_projection_tools.py +2 -1
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tools/source_planning_tools.py +29 -14
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tools/system_tools.py +24 -28
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tools/text_tools.py +84 -68
- groundworkers-0.11.0/src/groundworkers/toolsets.py +64 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/support/agent_surface.py +142 -48
- groundworkers-0.11.0/tests/support/agent_surface_budget.json +14 -0
- groundworkers-0.10.0/evaluation/surface/reference.json → groundworkers-0.11.0/tests/support/agent_surface_reference.json +708 -206
- groundworkers-0.11.0/tests/support/toolset_profiles.json +71 -0
- groundworkers-0.11.0/tests/support/toolsets.json +144 -0
- groundworkers-0.11.0/tests/test_agent_surface.py +283 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/test_server_registry.py +135 -7
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_concept_tools.py +336 -69
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_embedding_tools.py +181 -8
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_knowledge_catalogue.py +68 -6
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_mapping_service.py +221 -1
- groundworkers-0.11.0/tests/unit/test_mapping_tools.py +332 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_migration_boundaries.py +4 -4
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_omop_domains.py +30 -8
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_omop_emb_adapter.py +140 -1
- groundworkers-0.11.0/tests/unit/test_server_instructions.py +213 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_stored_ancestry.py +157 -0
- groundworkers-0.11.0/tests/unit/test_toolsets.py +267 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_vocab_service.py +36 -9
- {groundworkers-0.10.0 → groundworkers-0.11.0}/uv.lock +60 -60
- groundworkers-0.10.0/docs/development/standard-resolution-packs.md +0 -133
- groundworkers-0.10.0/evaluation/surface/budget.json +0 -10
- groundworkers-0.10.0/src/groundworkers/adapters/_omop_graph_ancestry.py +0 -59
- groundworkers-0.10.0/src/groundworkers/tools/concept_tools.py +0 -346
- groundworkers-0.10.0/src/groundworkers/tools/domain_tools.py +0 -47
- groundworkers-0.10.0/src/groundworkers/tools/embedding_tools.py +0 -144
- groundworkers-0.10.0/src/groundworkers/tools/mapping_tools.py +0 -309
- groundworkers-0.10.0/src/groundworkers/tools/search_tools.py +0 -132
- groundworkers-0.10.0/tests/test_agent_surface.py +0 -65
- groundworkers-0.10.0/tests/unit/test_mapping_tools.py +0 -153
- {groundworkers-0.10.0 → groundworkers-0.11.0}/.githooks/pre-commit +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/.github/CONTRIBUTING.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/.github/ISSUE_TEMPLATE/not_working.yml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/.github/release-drafter.yml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/.github/workflows/ci.yml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/.github/workflows/docs.yml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/.github/workflows/merge.yml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/.github/workflows/publish.yml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/.python-version +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/CHANGELOG.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/Makefile +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/config/docker-compose.yaml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/config/groundworkers.duckdb.example.toml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/config/groundworkers.example.toml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/config/groundworkers_db.env +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/adapters/ancestry.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/adapters/cdm.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/adapters/omop_emb.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/adapters/omop_graph.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/architecture.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/concepts.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/demo.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/development/extending.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/development/integration.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/from-scratch.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/index.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/js/asciinema-init.js +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/js/mermaid-init.js +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/plugins.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/reference/ref_adapters.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/reference/ref_base.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/reference/ref_config.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/reference/ref_services.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/reference/ref_tools.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/services/domain.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/services/grounding.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/services/mapping.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/services/semantic_projection.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/services/source_planning.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/services/text.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/services/vocab.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/static/01_create_config.png +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/static/02_empty_config.png +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/static/03_config_wizard.png +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/static/04_test_cnx.png +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/static/04_warnings.png +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/static/05_graph_setup.png +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/static/06_load_predicates.png +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/static/07_vector_store.png +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/static/08_register_embedding.png +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/static/10_setup_complete.png +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/static/demo.cast +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/static/demo.short.cast +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/tools/semantic_projection.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/tools/system.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/usage/configuration.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/usage/installation.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/usage/integrations.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/usage/prompt-handling.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/usage/setup_journey.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/usage/testing.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/docs/usage/upgrading-from-0.6.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/mkdocs.yaml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/_env.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/adapters/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/adapters/cdm.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/adapters/llm.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/app.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/application/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/application/setup/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/application/setup/configuration.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/application/setup/configuration_provider.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/application/setup/databases.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/application/setup/embedding_artifacts.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/application/setup/embedding_capability.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/application/setup/embedding_coverage.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/application/setup/embedding_population.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/application/setup/embedding_reconciliation.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/application/setup/embedding_registry.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/application/setup/embedding_setup.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/application/setup/graph_maintenance.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/application/setup/integration.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/application/setup/maintenance_runs.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/application/setup/model_inventory.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/application/setup/models.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/application/setup/performance_maintenance.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/application/setup/plugin_configuration.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/application/setup/runtime_setup.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/base/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/base/ancestry.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/base/concept_payload.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/base/database.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/base/domain_names.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/base/errors.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/base/results.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/base/sql.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/bootstrap.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/config.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/knowledge/packs/core/criteria-gate-yesno/guidance.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/knowledge/packs/core/criteria-gate-yesno/manifest.yaml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/knowledge/packs/core/diagnosis-role-modifier/guidance.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/knowledge/packs/core/diagnosis-role-modifier/manifest.yaml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/knowledge/packs/core/domain-routing/guidance.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/knowledge/packs/core/domain-routing/manifest.yaml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/knowledge/packs/core/domain-routing/rules.yaml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/knowledge/packs/core/drug-concept-granularity/guidance.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/knowledge/packs/core/drug-concept-granularity/manifest.yaml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/knowledge/packs/core/drug-concept-granularity/rules.yaml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/knowledge/packs/core/history-of-event/guidance.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/knowledge/packs/core/history-of-event/manifest.yaml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/knowledge/packs/core/standard-concept-preference/guidance.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/knowledge/packs/core/standard-concept-preference/manifest.yaml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/knowledge/packs/core/standard-concept-preference/rules.yaml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/omop_domains.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/plugins.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/prompt_packs/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/prompt_packs/groundcrew-source-column-classification/classification-request.schema.json +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/prompt_packs/groundcrew-source-column-classification/classification-result.schema.json +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/prompt_packs/groundcrew-source-column-classification/examples.yaml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/prompt_packs/groundcrew-source-column-classification/instructions.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/prompt_packs/groundcrew-source-column-classification/manifest.yaml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/prompt_packs/groundcrew-source-column-classification/role-catalogue.yaml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/ancestry.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/domain.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/grounding.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/knowledge/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/knowledge/catalogue.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/knowledge/models.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/relationship_neighborhood.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/semantic_projection/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/semantic_projection/definitions.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/semantic_projection/models.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/semantic_projection/service.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/source_planning/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/source_planning/assisted.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/source_planning/canonical_headers.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/source_planning/classifier.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/source_planning/decomposer.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/source_planning/decomposers/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/source_planning/decomposers/csv_.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/source_planning/decomposers/ddl_.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/source_planning/decomposers/docx_.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/source_planning/decomposers/json_.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/source_planning/decomposers/pdf_.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/source_planning/decomposers/xlsx_.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/source_planning/decomposers/xml_.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/source_planning/detector.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/source_planning/models.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/source_planning/normalisation.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/source_planning/provenance.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/source_planning/router.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/source_planning/serialisation.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/source_planning/service.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/source_planning/source_profiles/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/source_planning/source_profiles/base.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/source_planning/source_profiles/redcap.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/source_planning/source_profiles/registry.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/source_planning/warnings.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/text/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/text/models.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/text/prompts.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/services/text/service.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tools/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/transports/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/transports/rest/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/transports/rest/api.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/transports/rest/models.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tui/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tui/app.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tui/pages/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tui/pages/base.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tui/pages/plugin_config.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tui/pages/plugin_setup.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tui/pages/setup.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tui/presenters/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tui/presenters/base.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tui/presenters/chat.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tui/presenters/configuration.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tui/presenters/database.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tui/presenters/embeddings.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tui/presenters/graph.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tui/presenters/llm_provider.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tui/presenters/overview.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tui/presenters/performance.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tui/presenters/runs.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tui/routes.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tui/state.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tui/wizards/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tui/wizards/config_location.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tui/wizards/embedding_store.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tui/wizards/embeddings.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tui/wizards/graph_maintenance.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tui/wizards/performance_maintenance.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/src/groundworkers/tui/wizards/plugin_setup.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/conftest.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/integration/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/integration/test_omop_duckdb_runtime.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/integration/test_omop_emb_adapter.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/integration/test_omop_emb_contract.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/integration/test_omop_graph_adapter.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/integration/test_omop_postgres_runtime.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/support/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/support/embedding_contract_fixture.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/support/omop.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/support/postgres_ci_config.toml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/support/seed_postgres_fixture.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/support/stack_config.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/support/wheel_smoke.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/test_bootstrap_config.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/test_rest_api.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_ancestry_mcp_contract.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_concept_payload.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_config_location_wizard.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_configuration_provider.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_domain_names.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_domain_tools.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_embedding_population_scope.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_embedding_reconciliation.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_embedding_registry_step.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_env_bootstrap.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_error_boundary.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_graph_maintenance.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_graph_maintenance_wizard.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_graph_service.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_graph_status.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_grounding_constraints.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_grounding_service.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_llm_adapter.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_maintenance_runs_phase2.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_mapping_context.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_normalized_index.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_omop_emb_setup_config.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_omop_graph_adapter.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_performance.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_performance_maintenance_wizard.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_phase3_overview.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_plugin_configuration.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_plugin_lint_cli.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_plugins.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_predicate_mapping_classification.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_prompt_packs.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_provider_fields.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_relationship_edges.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_required_integration_preflight.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_required_test_gate.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_schema_resolution.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_semantic_projection_service.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_semantic_projection_tools.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_setup_artifacts_and_coverage.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_setup_configuration.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_setup_configuration_section.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_setup_databases.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_setup_embeddings.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_setup_provider_conformance.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_setup_runtime.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_setup_truth.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_setup_write_flows.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_source_planning_assisted_classifier.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_source_planning_classifier.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_source_planning_decomposer.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_source_planning_detector.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_source_planning_document_formats.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_source_planning_models.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_source_planning_normalisation.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_source_planning_router.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_source_planning_service.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_source_planning_tools.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_split_classified_edges.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_stack_config_fixtures.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_system_tools.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_text_service.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_text_tools.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_tui_app.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_tui_state.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.11.0}/tests/unit/test_vector_store_setup.py +0 -0
|
@@ -7,3 +7,4 @@
|
|
|
7
7
|
- [ ] Applied exactly one label (`breaking`, `feature`, `fix`, `dependencies`, or `chore`)
|
|
8
8
|
- [ ] Tests pass locally (`uv run pytest -q`)
|
|
9
9
|
- [ ] Lint passes (`uv run ruff check .`)
|
|
10
|
+
- [ ] If tests/support/agent_surface_reference.json changed, I read its diff: every change to what agents see is intended
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: groundworkers
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.11.0
|
|
4
4
|
Summary: Groundworkers MCP server — read-only agentive access to OMOP vocabularies, concept graphs, and embeddings.
|
|
5
5
|
Requires-Python: >=3.12
|
|
6
6
|
Requires-Dist: fastapi<1.0,>=0.110
|
|
@@ -8,7 +8,7 @@ Requires-Dist: mcp[cli]<2,>=1
|
|
|
8
8
|
Requires-Dist: numpy<3,>=1.26
|
|
9
9
|
Requires-Dist: oa-configurator<3,>=2.1.0
|
|
10
10
|
Requires-Dist: omop-alchemy<4,>=3.0.0
|
|
11
|
-
Requires-Dist: omop-emb<4,>=3.
|
|
11
|
+
Requires-Dist: omop-emb<4,>=3.2.0
|
|
12
12
|
Requires-Dist: omop-graph<5,>=4.0.0
|
|
13
13
|
Requires-Dist: omop-llm<2,>=1.0.2
|
|
14
14
|
Requires-Dist: omop-semantics<1,>=0.6
|
|
@@ -31,7 +31,7 @@ Requires-Dist: mkdocs-mermaid2-plugin; extra == 'dev'
|
|
|
31
31
|
Requires-Dist: mkdocs>=1.6.1; extra == 'dev'
|
|
32
32
|
Requires-Dist: mkdocstrings-python>=2.0.1; extra == 'dev'
|
|
33
33
|
Requires-Dist: mypy>=1.8; extra == 'dev'
|
|
34
|
-
Requires-Dist: omop-emb[duckdbvss]<4,>=3.
|
|
34
|
+
Requires-Dist: omop-emb[duckdbvss]<4,>=3.2.0; extra == 'dev'
|
|
35
35
|
Requires-Dist: omop-graph[duckdb]<5,>=4.0.0; extra == 'dev'
|
|
36
36
|
Requires-Dist: pytest-cov>=4.0; extra == 'dev'
|
|
37
37
|
Requires-Dist: pytest>=9.0.3; extra == 'dev'
|
|
@@ -43,14 +43,14 @@ Requires-Dist: ty>=0.0.59; extra == 'dev'
|
|
|
43
43
|
Provides-Extra: docx
|
|
44
44
|
Requires-Dist: python-docx>=1.0; extra == 'docx'
|
|
45
45
|
Provides-Extra: duckdb
|
|
46
|
-
Requires-Dist: omop-emb[duckdbvss]<4,>=3.
|
|
46
|
+
Requires-Dist: omop-emb[duckdbvss]<4,>=3.2.0; extra == 'duckdb'
|
|
47
47
|
Requires-Dist: omop-graph[duckdb]<5,>=4.0.0; extra == 'duckdb'
|
|
48
48
|
Provides-Extra: embedding-artifacts
|
|
49
49
|
Requires-Dist: h5py<4,>=3.10; extra == 'embedding-artifacts'
|
|
50
50
|
Provides-Extra: embedding-faiss
|
|
51
|
-
Requires-Dist: omop-emb[faiss-cpu]<4,>=3.
|
|
51
|
+
Requires-Dist: omop-emb[faiss-cpu]<4,>=3.2.0; extra == 'embedding-faiss'
|
|
52
52
|
Provides-Extra: embedding-pgvector
|
|
53
|
-
Requires-Dist: omop-emb[pgvector]<4,>=3.
|
|
53
|
+
Requires-Dist: omop-emb[pgvector]<4,>=3.2.0; extra == 'embedding-pgvector'
|
|
54
54
|
Provides-Extra: pdf
|
|
55
55
|
Requires-Dist: pdfplumber>=0.10; extra == 'pdf'
|
|
56
56
|
Provides-Extra: tui
|
|
@@ -148,7 +148,7 @@ Owned here
|
|
|
148
148
|
|---|---|---|
|
|
149
149
|
| Source-planning roles and column review pack | [Models](src/groundworkers/services/source_planning/models.py); [pack manifest](src/groundworkers/prompt_packs/groundcrew-source-column-classification/manifest.yaml) | Groundcrew and source-planning clients |
|
|
150
150
|
| Domain routing and classifier outputs | [omop_domains.py](src/groundworkers/omop_domains.py) | Groundcrew's domain review pack and the domain-routing knowledge pack |
|
|
151
|
-
| Mapping conventions | [Standard-concept guidance](src/groundworkers/knowledge/packs/core/standard-concept-preference/guidance.md), [drug guidance](src/groundworkers/knowledge/packs/core/drug-concept-granularity/guidance.md), [history-of guidance](src/groundworkers/knowledge/packs/core/history-of-event/guidance.md) | Agents reading knowledge packs; guidance is advisory |
|
|
151
|
+
| Mapping conventions | [Standard-concept guidance](src/groundworkers/knowledge/packs/core/standard-concept-preference/guidance.md), [drug guidance](src/groundworkers/knowledge/packs/core/drug-concept-granularity/guidance.md), [history-of guidance](src/groundworkers/knowledge/packs/core/history-of-event/guidance.md), [measurement guidance](src/groundworkers/knowledge/packs/core/measurement-concept-granularity/guidance.md) | Agents reading knowledge packs; guidance is advisory |
|
|
152
152
|
| Plugin interfaces | [plugins.py](src/groundworkers/plugins.py) | Registry and other Groundworkers plugins |
|
|
153
153
|
|
|
154
154
|
Consumed from elsewhere
|
|
@@ -85,7 +85,7 @@ Owned here
|
|
|
85
85
|
|---|---|---|
|
|
86
86
|
| Source-planning roles and column review pack | [Models](src/groundworkers/services/source_planning/models.py); [pack manifest](src/groundworkers/prompt_packs/groundcrew-source-column-classification/manifest.yaml) | Groundcrew and source-planning clients |
|
|
87
87
|
| Domain routing and classifier outputs | [omop_domains.py](src/groundworkers/omop_domains.py) | Groundcrew's domain review pack and the domain-routing knowledge pack |
|
|
88
|
-
| Mapping conventions | [Standard-concept guidance](src/groundworkers/knowledge/packs/core/standard-concept-preference/guidance.md), [drug guidance](src/groundworkers/knowledge/packs/core/drug-concept-granularity/guidance.md), [history-of guidance](src/groundworkers/knowledge/packs/core/history-of-event/guidance.md) | Agents reading knowledge packs; guidance is advisory |
|
|
88
|
+
| Mapping conventions | [Standard-concept guidance](src/groundworkers/knowledge/packs/core/standard-concept-preference/guidance.md), [drug guidance](src/groundworkers/knowledge/packs/core/drug-concept-granularity/guidance.md), [history-of guidance](src/groundworkers/knowledge/packs/core/history-of-event/guidance.md), [measurement guidance](src/groundworkers/knowledge/packs/core/measurement-concept-granularity/guidance.md) | Agents reading knowledge packs; guidance is advisory |
|
|
89
89
|
| Plugin interfaces | [plugins.py](src/groundworkers/plugins.py) | Registry and other Groundworkers plugins |
|
|
90
90
|
|
|
91
91
|
Consumed from elsewhere
|
|
@@ -88,6 +88,11 @@ The concept-embedding row and the free-text-embedding row look similar but are n
|
|
|
88
88
|
|
|
89
89
|
Use `context.cdm_session_factory` for role-tagged OMOP queries. `context.cdm_engine` remains available for primary-role access. On split-vocabulary stacks, plugins must use the routed factory; an Engine-based OmopGraphAdapter or DomainNameResolver cannot route vocabulary queries and will fail with upgrade guidance.
|
|
90
90
|
|
|
91
|
+
Plugins may pass `toolsets=("my_toolset",)` to `server.tool()` to declare their
|
|
92
|
+
own toolsets. When omitted or empty during plugin registration, the server uses
|
|
93
|
+
`plugin:<name>`, where `<name>` is the plugin's registered name. Toolsets appear in
|
|
94
|
+
`--describe` and stay outside MCP tool definitions.
|
|
95
|
+
|
|
91
96
|
`register()` adds MCP tools, prompts, or resources against the state returned by `build()`. The shared MCP registration wrapper supplies the same safe error translation used by core tools. Code-defined prompts can continue to derive their arguments from the callable signature. A plugin publishing data-defined prompts can pass explicit string metadata with `PromptArgument`; this keeps dynamic pack fields out of Python closure signatures:
|
|
92
97
|
|
|
93
98
|
```python
|
|
@@ -38,7 +38,7 @@ Return a serialized OMOP concept from a known identifier.
|
|
|
38
38
|
|
|
39
39
|
### `get_ancestors(...)` and `get_descendants(...)`
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
Read the stored `concept_ancestor` table with bounded minimum separation and serialized results. `get_descendants(...)` can also filter exact concept class IDs before paging; unpaged and paged results use the same stored rows.
|
|
42
42
|
|
|
43
43
|
### `get_edges(...)` and `get_neighbors(...)`
|
|
44
44
|
|
|
@@ -69,22 +69,35 @@ Returns stored non-self ancestors up to minimum separation `max_depth` (default
|
|
|
69
69
|
|
|
70
70
|
---
|
|
71
71
|
|
|
72
|
-
Ancestry is read directly from the stored OMOP closure, with non-self
|
|
73
|
-
zero-separation ancestors retained. `max_depth` accepts 0..20 and measures stored
|
|
74
|
-
minimum separation; invalid values are rejected. The response preserves
|
|
75
|
-
`ancestors` and reports `ancestry_source`, `distance_metric`, effective `max_depth`
|
|
76
|
-
and `include_self=false`. A zero-distance link does not imply interchangeability.
|
|
77
|
-
Parent/child primitives and descendant traversal keep their existing semantics.
|
|
72
|
+
Ancestry is read directly from the stored OMOP closure, with non-self zero-separation ancestors retained. `max_depth` accepts 0..20 and measures stored minimum separation; invalid values are rejected. The response preserves `ancestors` and reports `ancestry_source`, `distance_metric`, effective `max_depth` and `include_self=false`. A zero-distance link does not imply interchangeability. Parent/child primitives expose direct graph relationships. Descendant results use the stored `concept_ancestor` table.
|
|
78
73
|
|
|
79
74
|
## `concept_descendants`
|
|
80
75
|
|
|
81
|
-
Returns descendants
|
|
76
|
+
Returns descendants from the stored `concept_ancestor` table (default depth 3, range 1..10). `depth` is the stored minimum separation, not a count of graph relationship hops. Results are ordered by depth and then concept ID. Use `limit` (default 50, range 1..500) and `offset` (default 0, minimum 0) to page through the stored ancestry. `concept_class_ids` optionally filters by exact `concept_class_id` before paging; `total` counts only matching descendants. For drug concepts, filter by classes such as `["Clinical Drug"]` because greater depth does not mean greater drug specificity. Unknown class IDs are rejected.
|
|
82
77
|
|
|
83
78
|
```json
|
|
84
|
-
{"concept_id":
|
|
79
|
+
{"concept_id": 1503297, "max_depth": 3, "limit": 50, "offset": 0, "concept_class_ids": ["Clinical Drug"]}
|
|
85
80
|
```
|
|
86
81
|
|
|
87
|
-
**Response**:
|
|
82
|
+
**Response**:
|
|
83
|
+
|
|
84
|
+
```json
|
|
85
|
+
{
|
|
86
|
+
"concept_id": 441484,
|
|
87
|
+
"descendants": [
|
|
88
|
+
{"concept_id": 441485, "depth": 1},
|
|
89
|
+
{"concept_id": 441486, "depth": 1}
|
|
90
|
+
],
|
|
91
|
+
"total": 12,
|
|
92
|
+
"returned": 2,
|
|
93
|
+
"truncated": true,
|
|
94
|
+
"limit": 50,
|
|
95
|
+
"offset": 0,
|
|
96
|
+
"max_depth": 2
|
|
97
|
+
}
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
`total` counts all descendants within `max_depth`; `truncated` is true when more rows remain after the returned page. Results are ordered by minimum depth, then `concept_id`.
|
|
88
101
|
|
|
89
102
|
---
|
|
90
103
|
|
|
@@ -140,7 +153,7 @@ Returns the shortest path between two concepts traversing only identity (and opt
|
|
|
140
153
|
|
|
141
154
|
All parameters except `source_id` and `target_id` are optional.
|
|
142
155
|
|
|
143
|
-
`allow_hierarchical_traversal=false` (default): only IDENTITY predicates
|
|
156
|
+
`allow_hierarchical_traversal=false` (default): only IDENTITY predicates, including `Maps to`, `Concept same_as`, cross-vocabulary equivalence and replacement links. `Concept poss_eq` is an ASSOCIATION predicate and is excluded.
|
|
144
157
|
|
|
145
158
|
`allow_hierarchical_traversal=true`: also allows HIERARCHY predicates (`Is a` / `Subsumes`). A path may then step up or down the ancestry chain; the connection may be at a broader level of abstraction.
|
|
146
159
|
|
|
@@ -307,7 +320,7 @@ Use the ancestor/descendant tools for the usual “what is this a kind of?” qu
|
|
|
307
320
|
|
|
308
321
|
## `concept_map_to_standard`
|
|
309
322
|
|
|
310
|
-
|
|
323
|
+
Resolves a vocabulary/code pair through all IDENTITY-type relationship edges. These include `Maps to value` and `Maps to unit`, so standard value or unit targets can appear alongside the `Maps to` target. For `Maps to` targets alone, use `concept_navigate_to_standard` with the source concept ID.
|
|
311
324
|
|
|
312
325
|
```json
|
|
313
326
|
{"vocabulary_id": "ICD10CM", "concept_code": "C34.1"}
|
|
@@ -10,7 +10,7 @@ It is a thin wrapper over `DomainService`.
|
|
|
10
10
|
|
|
11
11
|
## `domain_classify`
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Uses a language model to guess the domain of each field from its label and at most the first 10 example values.
|
|
14
14
|
|
|
15
15
|
```json
|
|
16
16
|
{
|
|
@@ -25,7 +25,7 @@ Classifies field labels into OMOP domains using the label text and any example r
|
|
|
25
25
|
|
|
26
26
|
`label_values` is required. It maps each field label to a list of example response-value strings. Use an empty list when no values are known.
|
|
27
27
|
|
|
28
|
-
`model_name` is optional and
|
|
28
|
+
`model_name` is optional and accepts only the configured chat model or null.
|
|
29
29
|
|
|
30
30
|
**Response:**
|
|
31
31
|
|
|
@@ -39,7 +39,7 @@ Classifies field labels into OMOP domains using the label text and any example r
|
|
|
39
39
|
}
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
Assignments with null or invalid domain values are omitted. There is no confidence score or confidence threshold, and model-returned label keys are not checked against the input labels.
|
|
43
43
|
|
|
44
44
|
Valid returned domains are:
|
|
45
45
|
|
|
@@ -66,7 +66,7 @@ Prefer text tools when you need to normalize or decompose clinical phrases. Pref
|
|
|
66
66
|
|
|
67
67
|
| Error code | Condition |
|
|
68
68
|
|---|---|
|
|
69
|
-
| `BACKEND_UNAVAIL` | LLM API unreachable
|
|
69
|
+
| `BACKEND_UNAVAIL` | Configured LLM API unreachable or authentication failure |
|
|
70
70
|
| `QUERY_ERROR` | Model API error or response could not be parsed |
|
|
71
71
|
|
|
72
72
|
## Typical downstream use
|
|
@@ -70,6 +70,8 @@ Encodes a text query on the fly and returns the nearest concepts by vector simil
|
|
|
70
70
|
|
|
71
71
|
All parameters except `query` are optional.
|
|
72
72
|
|
|
73
|
+
With `standard_only=true`, search can retrieve non-standard concepts and then replace them with standard OMOP `Maps to` targets in the requested domain. Mapped candidates identify their source and embedding similarity in `reached_via`. A warning names up to three targets outside the requested domain. A standard-only lookup adds candidates if the wider search found fewer distinct in-domain standard hits than the requested `limit`.
|
|
74
|
+
|
|
73
75
|
!!! warning "Requires a configured embedding model"
|
|
74
76
|
`embedding_search` must encode the query string using a live embedding model.
|
|
75
77
|
Configure `embedding_model_name` in `[tools.groundworkers]` and give its
|
|
@@ -94,6 +96,8 @@ Encodes and searches multiple query strings in one provider/index operation. The
|
|
|
94
96
|
|
|
95
97
|
All queries in a call share the same domain, vocabulary, model, and concept filters. Partition queries before calling when those constraints differ. The MCP wrapper accepts at most 256 queries; `batch_size` is the provider batch size and is bounded to 1–128.
|
|
96
98
|
|
|
99
|
+
With `standard_only=true`, each query uses the same post-filter as `embedding_search`. The batch returns a flat `warnings` list, even when empty. Each warning begins with the query's one-based position and text.
|
|
100
|
+
|
|
97
101
|
## `embedding_encode`
|
|
98
102
|
|
|
99
103
|
Encodes a text string into one query embedding vector.
|
|
@@ -115,4 +119,4 @@ Encodes a text string into one query embedding vector.
|
|
|
115
119
|
}
|
|
116
120
|
```
|
|
117
121
|
|
|
118
|
-
Like `embedding_search`, this requires a configured `embedding_model_name` and a live provider client.
|
|
122
|
+
Like `embedding_search`, this requires a configured `embedding_model_name` and a live provider client. Encoding accepts only that configured live model, even when other models are registered for stored-vector operations.
|
|
@@ -6,7 +6,7 @@ The knowledge tools are registered when at least one packs root is available. `k
|
|
|
6
6
|
|
|
7
7
|
## `knowledge_catalogue`
|
|
8
8
|
|
|
9
|
-
Find packs whose applicability matches the supplied context. Omit filters to list all discovered packs.
|
|
9
|
+
Find packs whose applicability matches the supplied context. Begin mapping and review jobs by discovering applicable packs with the involved domains, then load them before choosing candidates. Omit filters to list all discovered packs.
|
|
10
10
|
|
|
11
11
|
```json
|
|
12
12
|
{
|
|
@@ -31,13 +31,13 @@ flowchart TD
|
|
|
31
31
|
|
|
32
32
|
## `concept_ground` vs mapping tools
|
|
33
33
|
|
|
34
|
-
`concept_ground`
|
|
34
|
+
Start source-term searches with `concept_candidate_bundle`. Use `concept_ground` for a fast lead from the first matching resolver tier.
|
|
35
35
|
|
|
36
36
|
The mapping tools are better when you want to inspect evidence and make an explicit selection.
|
|
37
37
|
|
|
38
38
|
| If you want... | Prefer... |
|
|
39
39
|
|---|---|
|
|
40
|
-
|
|
|
40
|
+
| A fast lead from the first matching tier | `concept_ground` |
|
|
41
41
|
| Multiple retrieval channels in one packet | `concept_candidate_bundle` |
|
|
42
42
|
| Deterministic normalized matching before ranked retrieval | `concept_search_normalized` |
|
|
43
43
|
| Rich context for a selected concept | `concept_mapping_context` |
|
|
@@ -66,7 +66,7 @@ Useful response fields:
|
|
|
66
66
|
|
|
67
67
|
## `concept_candidate_bundle`
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
The default source-term search builds one evidence packet by combining:
|
|
70
70
|
|
|
71
71
|
- exact search
|
|
72
72
|
- normalized search
|
|
@@ -90,11 +90,20 @@ Builds one evidence packet by combining:
|
|
|
90
90
|
|
|
91
91
|
Representative response sections:
|
|
92
92
|
|
|
93
|
-
- `channels`
|
|
93
|
+
- `channels`: each MCP channel contains only `available` and `count`
|
|
94
94
|
- `standardized_candidates`
|
|
95
95
|
- `candidate_union`
|
|
96
96
|
- `warnings`
|
|
97
97
|
|
|
98
|
+
In MCP, `channels` has the shape `{"exact": {"available": true, "count": 2}}`. Each count describes the returned rows for that channel before the merged-list limit. With `standard_only=true`, the count reflects post-filtering, deduplication within the channel, and its `per_channel_limit`. The direct Python service and REST endpoint return the channel result lists.
|
|
99
|
+
|
|
100
|
+
With `standard_only=true`, retrieval can find non-standard sources. Groundworkers replaces those hits with their standard OMOP `Maps to` targets in the requested domain and deduplicates the results. For each mapped candidate, `retrieved_by` includes the source retrieval channels and `maps_to`. Each `reached_via` entry identifies the source concept, its vocabulary and the channel that found it. Embedding entries also include similarity when available. When a mapping leads outside the requested domain, `warnings` names up to three such targets with their source names.
|
|
101
|
+
|
|
102
|
+
When `include_standard_mappings=true`, `standardized_candidates` describes the standard mappings of non-standard sources from the candidate union before post-filtering.
|
|
103
|
+
|
|
104
|
+
Hierarchy previews and relationship summaries enrich only the first five
|
|
105
|
+
merged candidates.
|
|
106
|
+
|
|
98
107
|
## `concept_nearest_standard_ancestor`
|
|
99
108
|
|
|
100
109
|
Finds the nearest active standard ancestor using stored OMOP separation, abstaining on equal-distance ties. Accepts either a free-text query or an explicit `concept_id`. Useful when a source concept is too specific or non-standard and you need a broader standard parent.
|
|
@@ -107,6 +116,8 @@ Finds the nearest active standard ancestor using stored OMOP separation, abstain
|
|
|
107
116
|
}
|
|
108
117
|
```
|
|
109
118
|
|
|
119
|
+
In query mode, `vocabulary_id` and `parent_ids` constrain grounded seeds; they do not filter ancestor targets. `candidate_limit` bounds the retrieved seed list, and only its first candidate is used for ancestor selection.
|
|
120
|
+
|
|
110
121
|
Useful response fields:
|
|
111
122
|
|
|
112
123
|
- `seed_candidates`
|
|
@@ -141,6 +152,20 @@ Possible sections include:
|
|
|
141
152
|
- `embedding_neighbors`
|
|
142
153
|
- `warnings`
|
|
143
154
|
|
|
155
|
+
Set `include_descendants=true` to include up to `descendant_limit` rows (default 10, range 1..10) from three stored hierarchy levels. `descendant_scope` reports `max_depth`, `limit`, the full `total`, and whether more rows remain in `truncated`. The row limit does not change which descendants qualify.
|
|
156
|
+
|
|
157
|
+
```json
|
|
158
|
+
{
|
|
159
|
+
"descendants": [{"concept_id": 441484, "depth": 1}],
|
|
160
|
+
"descendant_scope": {
|
|
161
|
+
"max_depth": 3,
|
|
162
|
+
"limit": 1,
|
|
163
|
+
"total": 12,
|
|
164
|
+
"truncated": true
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
```
|
|
168
|
+
|
|
144
169
|
## `concept_map_to_value`
|
|
145
170
|
|
|
146
171
|
Finds `Maps to value` relationships for a source vocabulary ID and concept code.
|
|
@@ -175,7 +200,9 @@ Expands a simple list of concept items with support for:
|
|
|
175
200
|
|
|
176
201
|
## `mapping_evaluate_candidates`
|
|
177
202
|
|
|
178
|
-
Compares predicted mappings with a reference mapping set using `
|
|
203
|
+
Compares predicted mappings with a reference mapping set using hit-at-k agreement: the reference ID must occur within the first `top_k` predicted IDs. Omitting `top_k` uses all predictions. IDs are compared in memory without checking the vocabulary.
|
|
204
|
+
|
|
205
|
+
Rows are paired by `source_key`, `source_id` or `source_term`, in that order. Reference rows require `reference_standard_concept_id`; prediction rows use a ranked `predicted_standard_concept_ids` list (or `predicted_concept_ids`).
|
|
179
206
|
|
|
180
207
|
```json
|
|
181
208
|
{
|
|
@@ -221,51 +248,22 @@ context = mapping.concept_mapping_context(201826)
|
|
|
221
248
|
|
|
222
249
|
## `concept_shared_standard_ancestor`
|
|
223
250
|
|
|
224
|
-
Read-only, deterministic common-ancestor selection for alternative concept IDs
|
|
225
|
-
representing one source record. It needs a configured vocabulary/graph, not an
|
|
226
|
-
embedding or LLM backend. Do not use separate combination ingredients as if they
|
|
227
|
-
were alternative product candidates.
|
|
251
|
+
Read-only, deterministic common-ancestor selection for alternative concept IDs representing one source record. It needs a configured vocabulary/graph, not an embedding or LLM backend. Do not use separate combination ingredients as if they were alternative product candidates.
|
|
228
252
|
|
|
229
|
-
Supply `concept_ids` (2..200 positive strict integers, at least two distinct),
|
|
230
|
-
`max_depth` (0..20, default 5), optional `concept_class_ids` / `vocabulary_ids`,
|
|
231
|
-
and display `limit` (1..50, default 10) / `offset` (default 0). Filters must use
|
|
232
|
-
exact installed catalogue IDs; null is unrestricted, empty/blank/unknown filters
|
|
233
|
-
are invalid. RxNorm alone does not include RxNorm Extension.
|
|
253
|
+
Supply `concept_ids` (2..200 positive strict integers, at least two distinct), `max_depth` (0..20, default 5), optional `concept_class_ids` / `vocabulary_ids`, and display `limit` (1..50, default 10) / `offset` (default 0). Filters must use exact installed catalogue IDs; null is unrestricted, empty/blank/unknown filters are invalid. RxNorm alone does not include RxNorm Extension.
|
|
234
254
|
|
|
235
255
|
```json
|
|
236
256
|
{"concept_ids": [40166038, 41038881], "concept_class_ids": ["Clinical Drug"], "vocabulary_ids": ["RxNorm", "RxNorm Extension"], "max_depth": 5}
|
|
237
257
|
```
|
|
238
258
|
|
|
239
|
-
The response is `{error, code, message, data}`. On success `data.status` is
|
|
240
|
-
`selected`, `ambiguous`, `no_match`, or `incompatible_inputs`. `found` indicates a
|
|
241
|
-
unique selection, so it is false for an ancestry tie. Eligible targets must be
|
|
242
|
-
active standard concepts in the same domain as every input. The response echoes
|
|
243
|
-
constraints, complete-set counts and per-input distances for any selected target.
|
|
259
|
+
The response is `{error, code, message, data}`. On success `data.status` is `selected`, `ambiguous`, `no_match`, or `incompatible_inputs`. `found` indicates a unique selection, so it is false for an ancestry tie. Eligible targets must be active standard concepts in the same domain as every input. The response echoes constraints, complete-set counts and per-input distances for any selected target.
|
|
244
260
|
|
|
245
|
-
Distances are stored minimum separation from `CONCEPT_ANCESTOR`. Include each
|
|
246
|
-
seed itself at zero; retain distinct zero-separation ancestors. Such a connection
|
|
247
|
-
does not prove clinical interchangeability. Nearest means the lowest maximum
|
|
248
|
-
distance across all inputs. Equal nearest distances abstain. Display pagination
|
|
249
|
-
never changes that computation; `limit=1` cannot force a selection. A selected
|
|
250
|
-
concept is returned independently of the candidate display page.
|
|
261
|
+
Distances are stored minimum separation from `CONCEPT_ANCESTOR`. Include each seed itself at zero; retain distinct zero-separation ancestors. Such a connection does not prove clinical interchangeability. Nearest means the lowest maximum distance across all inputs. Equal nearest distances abstain. Display pagination never changes that computation; `limit=1` cannot force a selection. A selected concept is returned independently of the candidate display page.
|
|
251
262
|
|
|
252
|
-
Native MCP argument/schema errors set `isError=true`. Errors from the service
|
|
253
|
-
use the typed envelope with `error=true` and `data=null`. Backend failure is never
|
|
254
|
-
a no-match. Text and structured payloads are normalized to the same envelope.
|
|
263
|
+
Native MCP argument/schema errors set `isError=true`. Errors from the service use the typed envelope with `error=true` and `data=null`. Backend failure is never a no-match. Text and structured payloads are normalized to the same envelope.
|
|
255
264
|
|
|
256
265
|
### Ancestry consistency changes
|
|
257
266
|
|
|
258
|
-
`concept_nearest_standard_ancestor` and hierarchy previews now use the same stored
|
|
259
|
-
|
|
260
|
-
the
|
|
261
|
-
is disclosed as `seed_selection_policy`; source-concept ambiguity remains the
|
|
262
|
-
agent's responsibility. Maps-to fallback is labelled `evidence_route=maps_to`,
|
|
263
|
-
with multiple targets left ambiguous. Missing relationship paths do not invalidate
|
|
264
|
-
stored ancestor evidence and are reported separately.
|
|
265
|
-
|
|
266
|
-
`concept_mapping_context` uses `ancestor_limit` only as a display count (1..50).
|
|
267
|
-
`ancestor_max_depth` independently sets stored separation (0..20, default 5).
|
|
268
|
-
`ancestor_scope` reports the full count and whether the display was truncated.
|
|
269
|
-
Ancestor bounds now reject invalid values rather than silently clamping them.
|
|
270
|
-
For the runtime contract and bounded relationship-neighborhood behavior see
|
|
271
|
-
[stored ancestry and shared targets](../adapters/ancestry.md).
|
|
267
|
+
`concept_nearest_standard_ancestor` and hierarchy previews now use the same stored ancestry as `concept_ancestors`. Nearest-standard ties abstain instead of selecting the first row. Query mode still starts from the first grounded candidate, which is disclosed as `seed_selection_policy`; source-concept ambiguity remains the agent's responsibility. Maps-to fallback is labelled `evidence_route=maps_to`, with multiple targets left ambiguous. Missing relationship paths do not invalidate stored ancestor evidence and are reported separately.
|
|
268
|
+
|
|
269
|
+
`concept_mapping_context` uses `ancestor_limit` only as a display count (1..50). `ancestor_max_depth` independently sets stored separation (0..20, default 5). `ancestor_scope` reports the full count and whether the display was truncated. Ancestor bounds reject invalid values. Descendants use a fixed stored-ancestry depth of 3; `descendant_limit` defaults to 10 (1..10), and `descendant_scope` reports the full count and truncation. `neighbor_limit` defaults to 15 (1..100), and `embedding_neighbor_limit` defaults to 10 (1..20). The MCP schema rejects values outside these ranges; direct in-process calls retain the runtime clamps. For the runtime contract and bounded relationship-neighborhood behavior see [stored ancestry and shared targets](../adapters/ancestry.md).
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Tools overview
|
|
2
2
|
|
|
3
|
+
Text tools document model-requested limits and model-reported fields; mapping tools clarify identity traversal and evaluation inputs.
|
|
4
|
+
|
|
5
|
+
MCP mapping tools provide parameter guidance, concise candidate-channel counts and a recovery hint for missing vocabulary codes.
|
|
6
|
+
|
|
3
7
|
The MCP surface is organized by the job a caller is trying to do. Tool registration follows the active runtime: core vocabulary and graph tools require the CDM runtime, while embedding, chat, knowledge-pack, and semantic-projection tools appear only when their prerequisites are available.
|
|
4
8
|
|
|
5
9
|
## Choose a workflow
|
|
@@ -35,6 +39,28 @@ The MCP surface is organized by the job a caller is trying to do. Tool registrat
|
|
|
35
39
|
|
|
36
40
|
The source-planning resources `source-planning://canonical-headers`, `source-planning://column-roles`, and `source-planning://ingestion-strategies` are also registered independently of the tool table. Text preprocessing prompts are available through MCP prompt discovery when the server starts.
|
|
37
41
|
|
|
42
|
+
## Toolsets
|
|
43
|
+
|
|
44
|
+
Tools can belong to several toolsets. `groundworkers --describe` lists each tool's memberships.
|
|
45
|
+
|
|
46
|
+
| Name | Purpose |
|
|
47
|
+
|---|---|
|
|
48
|
+
| `system` | Deployment status and vocabulary catalogue; always registered. |
|
|
49
|
+
| `lookup` | Fetch a concept by id or by vocabulary code. |
|
|
50
|
+
| `search` | Find candidate concepts for text. |
|
|
51
|
+
| `mapping` | Source-to-standard mapping workflow: candidates, mapping context, hierarchy checks, standard targets. |
|
|
52
|
+
| `mapping_advanced` | Less common mapping utilities: mapping by vocabulary code, value mapping, mapping expressions, shared standard ancestors. |
|
|
53
|
+
| `graph` | Concept hierarchy, relationships and paths. |
|
|
54
|
+
| `embedding` | Embedding index search and neighbours. |
|
|
55
|
+
| `llm` | Language-model text helpers. |
|
|
56
|
+
| `source` | Source-file planning. |
|
|
57
|
+
| `knowledge` | Convention packs. |
|
|
58
|
+
| `semantic` | Semantic projection (optional). |
|
|
59
|
+
| `offline` | Evaluation and diagnostics, not intended for agents. |
|
|
60
|
+
|
|
61
|
+
Usage instructions follow the available tools.
|
|
62
|
+
Selection can exclude toolsets; exclusion wins when a tool also belongs to an included toolset.
|
|
63
|
+
|
|
38
64
|
## MCP, REST, and Python
|
|
39
65
|
|
|
40
66
|
MCP is the broad, discovery-oriented surface. REST intentionally exposes only curated workflow operations: candidate bundles and assisted source planning, plus `/healthz`. Direct Python callers should use `app.services.*` for domain workflows and should not import MCP tool modules to avoid a transport-shaped API.
|
|
@@ -43,6 +69,14 @@ The one service that is not attached to `app.services` is `SemanticProjectionSer
|
|
|
43
69
|
|
|
44
70
|
## Availability and errors
|
|
45
71
|
|
|
72
|
+
The MCP initialize response includes usage instructions assembled from the final
|
|
73
|
+
registered tool names, including plugin registrations. Each section is sent only
|
|
74
|
+
when every Groundworkers tool it names is available; partial deployments can omit
|
|
75
|
+
the mapping section. Stdio, SSE and streamable HTTP use the same selection.
|
|
76
|
+
`groundworkers --describe` reports their presence, character count and included
|
|
77
|
+
sections. The section text and declared tool dependencies live in
|
|
78
|
+
`src/groundworkers/server_instructions.py`.
|
|
79
|
+
|
|
46
80
|
`system_status` and `system_vocabulary_catalogue` are always registered so a client can inspect the deployment before assuming optional capabilities exist. Other tool groups are omitted when their backing runtime is not configured. Use `groundworkers --describe` to inspect the exact active surface.
|
|
47
81
|
|
|
48
82
|
MCP tools return a JSON-safe error object rather than raising across the transport boundary:
|
|
@@ -6,7 +6,7 @@ If you already have a known identifier, use [Concept Tools](concept.md) instead.
|
|
|
6
6
|
|
|
7
7
|
## `concept_ground`
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Use this tiered resolver for a fast candidate lead. For the default search across retrieval channels, use `concept_candidate_bundle`.
|
|
10
10
|
|
|
11
11
|
```json
|
|
12
12
|
{
|
|
@@ -68,7 +68,7 @@ PostgreSQL full-text search against the `concept_name_tsvector` GIN-indexed side
|
|
|
68
68
|
}
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
-
All parameters except `query` are optional. `min_rank` must be in `[0.0, 1.0]` and is applied server-side before returning results (useful to avoid very large result sets); set to `0.0` to disable.
|
|
71
|
+
All parameters except `query` are optional. `limit` defaults to 20 (1..30). `min_rank` must be in `[0.0, 1.0]` and is applied server-side before returning results (useful to avoid very large result sets); set to `0.0` to disable.
|
|
72
72
|
|
|
73
73
|
`tsvector_available` in the response indicates whether the sidecar column was detected. When `false`, `results` is always `[]` and the caller should fall through to `embedding_search` or `concept_search_exact`.
|
|
74
74
|
|
|
@@ -31,7 +31,7 @@ Runs the same pipeline with an explicit LLM-assisted classification step. Use it
|
|
|
31
31
|
}
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
For extracted tables, this path returns `BACKEND_UNAVAIL` when no chat model is configured or `source_planning_llm_assisted_enabled` is false. A source with no extracted tables returns its plan without requiring model assistance. The deterministic `source_plan` path does not require an LLM.
|
|
35
35
|
|
|
36
36
|
## Supporting MCP resources
|
|
37
37
|
|
|
@@ -13,7 +13,9 @@ Use them only when the source text needs model-assisted interpretation. Exact, n
|
|
|
13
13
|
| A phrase containing several separate concepts | `text_decompose` | Multiple normalized terms with domain hints |
|
|
14
14
|
| An abbreviation with several plausible meanings | `text_disambiguate` | Ranked interpretations and context clues |
|
|
15
15
|
|
|
16
|
-
All four tools accept `text`. `domain_hint`
|
|
16
|
+
All four tools accept `text`. `domain_hint` provides model context rather than an OMOP filter. `model_name` accepts only the configured chat model or null; it does not select another model or change downstream retrieval.
|
|
17
|
+
|
|
18
|
+
The `original` fields are echoed by the model. Cleanup's `changed` flag is also model-reported: the service does not populate those fields by copying the input or comparing strings. Normalization and cleanup return categorical confidence (`high`, `medium`, or `low`) and optional notes about ambiguity.
|
|
17
19
|
|
|
18
20
|
## `text_normalize`
|
|
19
21
|
|
|
@@ -73,7 +75,7 @@ Typical response:
|
|
|
73
75
|
}
|
|
74
76
|
```
|
|
75
77
|
|
|
76
|
-
Pass each returned term and its domain hint to a search, candidate-bundle, or grounding call. `max_terms` defaults to 10
|
|
78
|
+
Pass each returned term and its domain hint to a search, candidate-bundle, or grounding call. `max_terms` defaults to 10; the requested count is clamped to 1–20 in the prompt, and the returned list is not truncated by code.
|
|
77
79
|
|
|
78
80
|
## `text_disambiguate`
|
|
79
81
|
|
|
@@ -81,14 +83,14 @@ Pass each returned term and its domain hint to a search, candidate-bundle, or gr
|
|
|
81
83
|
{"text": "MS"}
|
|
82
84
|
```
|
|
83
85
|
|
|
84
|
-
The response contains ranked `interpretations`, each with an optional `domain_hint` and `context_clues`, plus `is_ambiguous`. Present these alternatives to a caller or reviewer when context is insufficient to choose one interpretation safely. `max_interpretations` defaults to 5
|
|
86
|
+
The response contains ranked `interpretations`, each with an optional `domain_hint` and `context_clues`, plus `is_ambiguous`. Present these alternatives to a caller or reviewer when context is insufficient to choose one interpretation safely. `max_interpretations` defaults to 5; the requested count is clamped to 1–10 in the prompt, and the returned list is not truncated by code. Ranking is requested from likely use in context, or common clinical use when context is absent; no frequency data or numerical rank score is used.
|
|
85
87
|
|
|
86
88
|
## Errors
|
|
87
89
|
|
|
88
90
|
| Code | Meaning |
|
|
89
91
|
|---|---|
|
|
90
92
|
| `INVALID_INPUT` | Empty or whitespace-only text, returned before the model is called |
|
|
91
|
-
| `BACKEND_UNAVAIL` | The LLM endpoint is unavailable
|
|
93
|
+
| `BACKEND_UNAVAIL` | The configured LLM endpoint is unavailable or unauthenticated |
|
|
92
94
|
| `QUERY_ERROR` | The model request failed or its structured response could not be parsed |
|
|
93
95
|
|
|
94
96
|
## Typical flow
|
|
@@ -17,7 +17,7 @@ dependencies = [
|
|
|
17
17
|
"oa-configurator>=2.1.0,<3",
|
|
18
18
|
"omop-alchemy>=3.0.0,<4",
|
|
19
19
|
"omop-graph>=4.0.0,<5",
|
|
20
|
-
"omop-emb>=3.
|
|
20
|
+
"omop-emb>=3.2.0,<4",
|
|
21
21
|
"omop-llm>=1.0.2,<2",
|
|
22
22
|
"omop-semantics>=0.6,<1",
|
|
23
23
|
"uvicorn[standard]>=0.29,<1.0",
|
|
@@ -48,14 +48,14 @@ all_source = [
|
|
|
48
48
|
"python-docx>=1.0",
|
|
49
49
|
]
|
|
50
50
|
embedding-pgvector = [
|
|
51
|
-
"omop-emb[pgvector]>=3.
|
|
51
|
+
"omop-emb[pgvector]>=3.2.0,<4",
|
|
52
52
|
]
|
|
53
53
|
embedding-faiss = [
|
|
54
|
-
"omop-emb[faiss-cpu]>=3.
|
|
54
|
+
"omop-emb[faiss-cpu]>=3.2.0,<4",
|
|
55
55
|
]
|
|
56
56
|
duckdb = [
|
|
57
57
|
"omop-graph[duckdb]>=4.0.0,<5",
|
|
58
|
-
"omop-emb[duckdbvss]>=3.
|
|
58
|
+
"omop-emb[duckdbvss]>=3.2.0,<4",
|
|
59
59
|
]
|
|
60
60
|
dev = [
|
|
61
61
|
"groundworkers[duckdb]",
|