360 Secure SkillHub
360 安全技能中心

Oasyce

提供 oas 命令行工具与 oasyce-sdk Python 客户端,用于在 Oasyce 去中心化 AI 数据市场注册和检索数据资产、按联合曲线买卖份额、注册与调用 AI 能力、查询收益与声誉,并处理争议与结算;命令支持 --json 结构化输出,结算由链上托管自动完成。

shangri-la-0428
shangri-la-0428
热度 58.27
最近更新 2026-05-11 17:31:30
分类:营销依赖:代码执行 / 第三方 API / 读写文件应用场景:财务 / 市场分析 / API 集成 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add oasyce
Metadata
name
oasyce
description
Interact with the Oasyce decentralized AI data marketplace. Register data assets, trade via bonding curves, invoke AI capabilities, and settle payments between agents.

Oasyce Skill

Use the oas CLI to interact with the Oasyce decentralized AI data marketplace — where agents pay agents. All commands support --json for structured output.

Install

pip install oasyce
oas doctor --json    # verify installation

Data Assets

Register a data asset:

oas register data.csv --owner alice --tags research,nlp --json

Search and query:

oas search "nlp training" --json
oas asset-info ASSET_ID --json
oas quote ASSET_ID --json

Buy shares (Bancor bonding curve):

oas buy ASSET_ID --buyer bob --amount 10.0 --json

Sell shares back:

oas sell ASSET_ID --tokens 5 --seller bob --json

Check holdings:

oas shares bob --json

AI Capability Marketplace

Register a capability:

oas capability register --name "Translation API" \
  --endpoint https://api.example.com/translate \
  --price 0.5 --tags nlp,translation --json

List and invoke:

oas capability list --tag nlp --json
oas capability invoke CAP_ID --input '{"text":"hello"}' --json
oas capability earnings --provider addr --json

Discover capabilities by intent:

oas discover --intents "translate" --tags nlp --json

Settlement & Escrow

The chain handles escrow automatically. Fee split on release: 93% creator, 3% validator, 2% burn, 2% treasury.

Disputes

oas dispute ASSET_ID --reason "data quality issue" --json
oas resolve ASSET_ID --remedy delist --json

Reputation

oas reputation check ADDRESS --json

Node & Network

oas node info --json          # Ed25519 identity
oas node peers --json         # connected peers
oas testnet onboard --json    # PoW self-registration

Diagnostics

oas doctor --json    # health check (all subsystems)
oas info --json      # project info

Python SDK

For programmatic access, use pip install oasyce-sdk:

from oasyce_sdk import OasyceClient

client = OasyceClient("http://localhost:1317")
caps = client.list_capabilities(tag="llm")
asset = client.get_asset("asset-001")
bc = client.get_bonding_curve("asset-001")
print(f"Spot price: {bc.spot_price_uoas} uoas")

Key Concepts

  • OAS: Protocol token. 1 OAS = 1,000,000 uoas.
  • Bonding Curve: tokens = supply * ((1 + payment/reserve)^0.5 - 1). More buyers = higher price.
  • Access Levels: Hold equity to unlock: >=0.1% L0, >=1% L1, >=5% L2, >=10% L3.
  • Escrow: Funds locked before execution, released after verification.
  • Round-trip cost: ~12% (buy + sell fees combined).