360 Secure SkillHub
360 安全技能中心

Oasyce

这是对接Oasyce去中心化AI数据市场的交互工具,可通过`oas`CLI或Python SDK操作。核心功能包括:数据资产的注册、查询、基于邦德曲线的份额买卖;AI能力的注册、发现、调用;还有自动托管结算、争议处理、声誉查询等。适合数据提供者变现资产、开发者调用AI能力、用户交易数据份额等场景,所有操作支持JSON结构化输出。

shangri-la-0428
shangri-la-0428
热度 58.26
最近更新 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).