跳到正文
Skillpedia
API 与服务器(后端)7.0k · #13632

intelligent-oracle

它能做什么

这项技能让智能体在 GenLayer 上构建是非题预测市场,由 AI 验证者根据公开网络证据进行结算。内容涵盖编写市场设置、通过公共工厂合约部署,以及检查市场状态。

适用场景

  • ✓当你希望创建一个基于公开网络来源结算的是非题预测市场时。
  • ✓当你希望智能体部署市场,而无需打开网页应用的时候。
  • ✓当你需要检查市场是否已经结算或失败的时候。

技能链接

https://github.com/internet-court/internet-court-skill/blob/main/vendored/intelligent-oracle/intelligent-oracle/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/internet-court/internet-court-skill/blob/main/vendored/intelligent-oracle/intelligent-oracle/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我想要一个是非题预测市场,根据某个公开网站的结果进行结算。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会把你的想法转化为两个结果和一条或多条结算规则,然后对照严格的格式检查设置。它通过公共工厂合约部署市场,读取新合约以确认细节一致,并监控其状态,直到结算完成或出现错误。默认使用 GenLayer Studio。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Intelligent Oracle

An Intelligent Oracle is a GenLayer prediction-market contract whose outcome is settled by LLM-driven validators reaching consensus over public web evidence. The user describes a binary market in natural language; you (the agent) draft a valid config, deploy it against a public factory contract, and watch its status until it resolves on-chain. All deployment and reads run against GenLayer Studio (studionet) by default — free, no funded keys required.

Workflow

  1. Design — turn the user's idea into a binary market with two outcomes, one or more resolution rules, and a verified source domain (or a fixed URL).
  2. Validate — confirm the config matches the strict schema below.
  3. Deploy — call create_new_prediction_market on the public factory contract. This is the parent transaction.
  4. Resolve the child address — the factory deploys a fresh oracle contract whose address comes back via a triggered child transaction, not the parent receipt. You must poll for the child tx.
  5. Verify — read get_dict() on the new oracle address immediately. Compare title, potential_outcomes, and earliest_resolution_date against the submitted config; only report success if they match.
  6. Monitor — read get_status() periodically. When status is "Resolved" or "Error", settlement is final.

Network and factory address

Before deploying, fetch the current network pointer from this site:

GET https://intelligentoracle.com/oracle-meta.json

Shape:

{
  "factoryAddress": "0x...",
  "rpcUrl": "https://studio.genlayer.com/api",
  "chain": "studionet",
  "updatedAt": "YYYY-MM-DD"
}

If unreachable, default to rpcUrl: "https://studio.genlayer.com/api" and ask the user to paste their factory address (visible in the explorer at https://intelligentoracle.com/explorer).

The oracle config

Eight fields, strictly validated. The deployment call passes them in this exact order.

field type rule
predictionMarketId string Default "0". Free-form.
title string Non-empty. Concise market title.
description string Non-empty. One-paragraph resolution summary.
potentialOutcomes [string, string] Exactly two, mutually exclusive, unique. Use ["Yes", "No"] whenever the question is binary.
rules string[] One or more non-empty plain-English rules.
dataSourceDomains string[] Either this OR resolutionURLs is populated, never both, never neither. Bare domains only (espn.com, not https://www.espn.com/...).
resolutionURLs string[] Fixed URLs. Use only when the user explicitly provides URLs that don't change.
earliestResolutionDate "YYYY-MM-DD" Strictly after today.

Domains are normalised on-chain: lowercased, http(s):// stripped, leading www. stripped. When the oracle later resolves with an evidence URL, the URL's host must match one of the stored domains.

Behavioral contract when guiding the user

This is the same prompt the hosted assistant runs on. Follow it verbatim — these rules are what make the drafts good.

Absolute rule — text before any draft. Every response MUST contain a short text reply BEFORE you emit, render, or tool-call a config. The user does not see structured payloads; they only see your text. If you produce a config without writing anything first, the user sees a blank screen and assumes nothing happened. Pair every draft with one or two sentences naming what you drafted or changed and inviting the user to edit: "Drafted a Yes/No market on whether ETH closes above $5,000 on Dec 31, 2026 using CoinGecko. Tweak any field."

Required fields you must populate:

  • title — concise market title.
  • description — a clear summary of what will be resolved.
  • potentialOutcomes — exactly two mutually exclusive outcomes. Never produce more than two.
  • rules — one or more natural-language resolution rules.
  • dataSourceDomains or resolutionURLs — exactly one. Use resolutionURLs when the user has fixed URLs; otherwise use allowed source domains.
  • earliestResolutionDate — YYYY-MM-DD, strictly after today.

Behavior:

  • Draft on the first turn whenever a topic is supplied. Use sensible defaults for any missing field rather than asking. The user can edit afterwards.
  • Extract first. Ask only when a required field is genuinely missing AND no reasonable default exists AND the value would change s
常见问题

部署需要花钱吗?

该技能说明,默认网络 GenLayer Studio 可免费使用,无需充值的密钥。

智能体如何确认市场设置正确?

它会读取新合约,并将标题、结果和结算日期与提交的内容进行比对。

市场根据什么结算?

根据公开网络证据结算,AI 验证者会对其进行检查,直到达成共识。

详情

作者的原始描述

Design, deploy, and monitor a GenLayer Intelligent Oracle prediction market from any coding agent. Use when a user wants to create a settled-by-web-evidence prediction market without opening the web UI.

repo: internet-court/internet-court-skill

热度

GitHub 星标
7.0k
排名
#13632
许可证
—
更新时间
2026/10/26

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能