PromptDSL Specification
┌─────────────────────────────────────────────────────────────────────────────┐
│ │
│ 【TRADITIONAL PROMPT】 │
│ Analyze the following text and extract key people, places, and events │
│ in JSON format │
│ │
│ │ │
│ │ STANDARDIZATION │
│ ▼ │
│ │
│ 【PROMPTDSL STRUCTURED MODULE】 │
│ ┌─────────────────────────────────────────────────────────────┐ │
│ │ { │ │
│ │ "id": "entity_extractor_v1.2", │ │
│ │ "name": "Entity Extractor", │ │
│ │ "description": "Extracts entities from text", │ │
│ │ "author": "0x7F9a...3B2e", │ │
│ │ "version": "1.2.0", │ │
│ │ "inputs": { │ │
│ │ "text": { "type": "string", "required": true }, │ │
│ │ "entity_types": { │ │
│ │ "type": "array", │ │
│ │ "default": ["person", "location", "event"] │ │
│ │ } │ │
│ │ }, │ │
│ │ "template": "Analyze the following text and extract │ │
│ │ {{entity_types}} entities. Return in JSON: │ │
│ │ {{text}}", │ │
│ │ "output_schema": { │ │
│ │ "entities": { │ │
│ │ "type": "object", │ │
│ │ "properties": { ... } │ │
│ │ } │ │
│ │ }, │ │
│ │ "dependencies": ["text_cleaner_v1"] │ │
│ │ } │ │
│ └─────────────────────────────────────────────────────────────┘ │
│ │
│ │
│ │ │
│ │ ON-CHAIN REGISTRATION │
│ ▼ │
│ │
│ 【ON-CHAIN ASSET】 │
│ ┌─────────────────────────────────────────────────────────────┐ │
│ │ PromptVault │ │
│ │ • Module ID: entity_extractor_v1.2 │ │
│ │ • IPFS Link: ipfs://Qm... │ │
│ │ • Creator: 0x7F9a...3B2e │ │
│ │ • License: CC-BY-SA │ │
│ │ • Usage Fee: 0.01 $PHUB/call │ │
│ │ • Dependency Tree: [text_cleaner_v1] │ │
│ │ • Version History: v1.0 -> v1.1 -> v1.2 │ │
│ └─────────────────────────────────────────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────────────────┘Field
Type
Required
Description
Last updated