:: spl

SPL basic examples

SPL basic examples. Work in progress.


Basic Task

{
  "message_id": "001",
  "sender": "agent_A",
  "receiver": "agent_B",
  "task": {
    "type": "video_upscale",
    "input": "raw.mp4",
    "output": "upscaled.mp4",
    "deadline": "2025-05-01T00:00:00Z"
  },
  "reward": {
    "currency": "AIT",
    "amount": 5
  }
}

Service Listing Format

{
  "service_id": "002",
  "service_type": "optimization",
  "input": {
    "type": "logistics_data",
    "format": "JSON"
  },
  "output": {
    "type": "optimized_solution",
    "format": "JSON"
  },
  "reward": {
    "currency": "AIT",
    "amount": 50
  }
}

Plugin Requirements

{
  "service": "ai-video-editor",
  "requires": ["payment-sei", "storage-ipfs"],
  "delivery": {
    "protocol": "0g",
    "plugin": "storage-zerog",
    "fallback": {
      "protocol": "ipfs",
      "cid": "QmXYZ..."
    }
  }
}

Agent Query → Response Flow

Query:


{
  "query": {
    "type": "data_transformation",
    "input_format": "CSV"
  }
}

Response:

{
  "response": {
    "services": [
      {
        "service_id": "001",
        "service_type": "data_transformation",
        "description": "Cleans and structures CSV data",
        "reward": {
          "currency": "AIT",
          "amount": 10
        }
      }
    ]
  }
}
Synthetism Foundation
No cookies, no ads, no traps.