AI Worker worker.md

dat

Asking yours data in a natural language way through pre-modeling (data models and semantic models).

Tool registry 245 stars Java Apache-2.0 Worker-compatible

Source#

  • Repository: hexinfo/dat
  • Last source update: 2026-03-28
  • Last verified: 2026-04-05

Tags#

agent-frameworkagentschatbichatdatacontext-engineeringdata-analysis

Integration notes#

Repository is focused on tool/server interoperability; wrap in bounded worker contracts for production use.

worker.md example#

Starter worker.md contract mapped from this registry entry. Copy this file and adapt schemas, constraints, and statuses for your task.

---
id: dat-repo-derived-worker
name: dat Repo-Derived Worker
version: 1.0.0
source_registry_url: https://worker.md/registry/dat/
source_repository: https://github.com/hexinfo/dat
repository_default_branch: main
repository_language: Java
repository_license: Apache-2.0
repository_updated_at: 2026-03-28
worker_mode: agent-orchestration-worker
derivation_method: github_repository_metadata_plus_raw_readme
derivation_confidence: 0.9
derived_on: 2026-04-05
tags:
  - agent-framework
  - agents
  - chatbi
  - chatdata
  - context-engineering
  - data-analysis
---

# dat Repo-Derived Worker

## Repo-derived summary
- Registry summary: Asking yours data in a natural language way through pre-modeling (data models and semantic models).
- Repository description: Asking yours data in a natural language way through pre-modeling (data models and semantic models).
- Stars (snapshot): 245
- Primary language: Java
- Worker mode classification: agent-orchestration-worker

## Extracted from
- https://github.com/hexinfo/dat
- https://github.com/hexinfo/dat/blob/main/README.md
- https://img.shields.io/github/v/release/hexinfo/dat
- https://img.shields.io/github/stars/hexinfo/dat?color=%231890FF&style=flat-square
- https://img.shields.io/github/downloads/hexinfo/dat/total

## Evidence notes (from repository text)
- README summary paragraph: DAT 致力于解决企业数据查询的最后一公里问题——让业务人员能够用自然语言直接与数据库对话,无需编写复杂的 SQL 查询。通过预建模的语义层,DAT 确保 AI 不仅能自信地表达,更能正确地表达。
- DAT 的核心驱动力,并非完全源于大语言模型自身的又一次智力爆炸,而是源于我们为它设计的 Askdata Agent 工作流程。
- - 2、DAT 它不是一个 platform ,而是一个 `framework`;二次开发者可以基于 `dat-sdk` 开发自己的Web UI,可以是web ide、拖拉拽的workflow、列表等交互方式;或将其对外提供 `OpenAPI` 或 `MCP` 的服务。
- 如果您使用的是支持 **MCP (Model Context Protocol)** 的 Agent(如 Claude Desktop、Cline 等),可以 [启动DAT的MCP服务](#-mcp-服务) 将智能问数能力集成到这些 Agent 中。
- ![DAT CLI SERVER MCP HELP](./images/dat_cli_server_mcp_help.png)
- ![DAT CLI SERVER MCP DEMO](./images/dat_cli_server_mcp_demo.png)

## Installation hints found in README
- No explicit package installation command detected in README text.

## worker.md contract (derived starter)
Purpose: Execute one orchestrated agent task as a bounded worker step.

### Input schema
```json
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "run_id",
    "task",
    "context"
  ],
  "properties": {
    "run_id": {
      "type": "string"
    },
    "task": {
      "type": "string"
    },
    "context": {
      "type": "object"
    }
  }
}
```

### Output schema
```json
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "run_id",
    "status",
    "result"
  ],
  "properties": {
    "run_id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "ok",
        "retryable_error",
        "invalid_request",
        "invalid_output"
      ]
    },
    "result": {
      "type": "object"
    }
  }
}
```

### Constraints
- timeout_seconds: 30
- max_attempts: 2
- idempotency_key: run_id
- status_enum: [ok, retryable_error, invalid_request, invalid_output]
- notes: adapt to concrete APIs/classes documented in this repository before production use

## How this should be used
1. Treat this file as a repo-derived starter profile, not a claim of an official repository API contract.
2. Replace schemas with exact interfaces from code/docs you adopt.
3. Keep execution bounded and auditable using worker protocol constraints.

How to use#

  • Save this as a worker spec file (for example: dat-my-task.worker.md).
  • Replace the input/output schemas and purpose with your real bounded task.
  • Enforce schema validation + timeout + retry policy in your runtime before production use.

Citation#

Reference URL: https://worker.md/registry/dat/

Source URL: https://github.com/hexinfo/dat