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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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
- 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).
- Validate — confirm the config matches the strict schema below.
- Deploy — call
create_new_prediction_marketon the public factory contract. This is the parent transaction. - 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.
- Verify — read
get_dict()on the new oracle address immediately. Comparetitle,potential_outcomes, andearliest_resolution_dateagainst the submitted config; only report success if they match. - 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.dataSourceDomainsorresolutionURLs— exactly one. UseresolutionURLswhen 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.
热度
- GitHub 星标
- 7.0k
- 排名
- #13632
- 许可证
- —
- 更新时间
- 2026/10/26
评论
- …
同一仓库的更多技能
internet-court
7.0k帮你的智能体安全地向其他 AI 智能体或付费服务付款、雇用或进行交易,并指引它找到合适的专业指南。
genlayer-erc7710-connector
7.0k帮你的智能体把 AI 审核结果与权限系统连接起来,使不合格的审核可以限制或取消智能体的权限。
genlayer-intelligent-contracts
7.0k帮你的智能体定义 AI 裁判的规则、证据和输出,用于检查另一个智能体是否遵循了其授权范围。
x402-erc7710
7.0k帮你的智能体按次为网络服务付款,并设置在权限预算范围内的持续支出。