当前位置: 首页 > Skill >

Bios Deep Research

Bios Deep Research

Bios Deep Research

利用 BIOS API 开展深度生物研究。支持 API 密钥及 x402 加密支付(Base 链 USDC)。启动后等待回调的模式适用于心跳机制。

1.0.5 2026.11.26 533
获取Skill文件查看使用说明
作 者:苏安 许可证: 更新时间:2026.11.26
本文目录展开

BIOS Deep Research

Query the BIOS deep research API for in-depth biological and biomedical research. Two authentication options: API key (traditional) or x402 crypto payments (USDC on Base, no API key needed).

Credentials

This skill reads the following environment variable:

Variable Required Used for
BIOS_API_KEY Optional (not needed if using x402) Bearer auth to api.ai.bio.xyz

x402 crypto payments do not require any env vars at runtime. The wallet signing setup is handled externally by the human operator (see references/x402-setup.md). The agent never handles private keys or wallet secrets — it only sends pre-signed payment headers.

Workspace Paths

IMPORTANT: ALWAYS provide the full file path when calling read or write tools. Never call read without a path argument.

  • State file: skills/bios-deep-research/state.json

Authentication

Option A: API Key

Set BIOS_API_KEY in your OpenClaw skill config. Base URL: https://api.ai.bio.xyz

curl -sS -X POST https://api.ai.bio.xyz/deep-research/start 
  -H "Authorization: Bearer $BIOS_API_KEY" 
  -H "Content-Type: application/x-www-form-urlencoded" 
  --data-urlencode "message=YOUR RESEARCH QUESTION" 
  --data-urlencode "researchMode=steering"

Use curl for all BIOS API calls. Do NOT use web_fetch — it does not support Authorization headers. Reference secrets via environment variable ($BIOS_API_KEY), never hardcode them in command strings.

API key plans: Free trial (20 credits), Pro $29.99/mo (60), Researcher $129.99/mo (300), Lab $499/mo (1,250). Free for .edu emails. Top-up credits never expire.

Option B: x402 Crypto Payments

No API key needed. Base URL: https://x402.chat.bio.xyz

Pay per request with USDC on Base mainnet. No tokens leave your wallet until the server delivers results.

Payment flow:

  1. Send request → get 402:
curl -sS -X POST https://x402.chat.bio.xyz/api/deep-research/start 
  -H "Content-Type: application/json" 
  -d '{"message": "YOUR RESEARCH QUESTION", "researchMode": "steering"}'

Response: 402 Payment Required with payment requirements in the body:

{
  "x402Version": 1,
  "accepts": [{
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "200000",
    "payTo": "0x4b4F85C16B488181F863a5e5a392A474B86157e0",
    "maxTimeoutSeconds": 1800
  }]
}

The amount is in USDC's smallest unit (6 decimals). 200000 = $0.20.

  1. Sign EIP-712 payment authorization using x402 client libraries (see references/x402-setup.md).

  2. Resubmit with payment headers:

curl -sS -X POST https://x402.chat.bio.xyz/api/deep-research/start 
  -H "Content-Type: application/json" 
  -H "X-PAYMENT: <base64-encoded payment payload>" 
  -H "PAYMENT-SIGNATURE: <base64-encoded payment payload>" 
  -d '{"message": "YOUR RESEARCH QUESTION", "researchMode": "steering"}'

Send both headers for compatibility. Response: 200 OK with conversationId.

Research Modes

Mode API Key x402 (USDC) Duration Use Case
steering 1 credit/iteration $0.20 ~5-20 min Interactive guidance, test hypotheses
smart up to 5 credits $1.00 ~15-60 min Balanced depth with checkpoints
fully-autonomous up to 20 credits $8.00 ~60 min to 8 hr Deep unattended research

Start and Check Back

BIOS research takes minutes to hours. You cannot poll for this duration in a single agent turn. Instead, use this two-phase pattern:

Phase A: Start Research

  1. Read state file: skills/bios-deep-research/state.json
  2. Check that pending is null (only one research session at a time)
  3. Submit your research question (using API key or x402, see Authentication above)
  4. Save the conversationId from the response to state:
    Write to skills/bios-deep-research/state.json:
    {"pending": {"conversationId": "xxx", "mode": "steering", "started_iso": "2026-02-26T10:00:00Z"}}
    
  5. Report: "BIOS research started. conversationId: {id}. Will check on next heartbeat."
  6. END YOUR TURN. Do not attempt to poll.

Phase B: Check Back

On each subsequent heartbeat or manual invocation:

  1. Read state file: skills/bios-deep-research/state.json
  2. If pending is null, nothing to do — return
  3. Poll ONCE:
    # API key auth:
    curl -sS "https://api.ai.bio.xyz/deep-research/${CONVERSATION_ID}" 
      -H "Authorization: Bearer $BIOS_API_KEY"
    
    # x402 (no auth needed for polling):
    curl -sS "https://x402.chat.bio.xyz/api/deep-research/${CONVERSATION_ID}"
    
  4. Check status:
    • completed → Extract worldState.discoveries. Clear pending in state. Return the discoveries.
    • running / queued / processing → Report elapsed time. Keep state as-is.
    • failed / timeout → Clear pending in state. Report the error.

Expected heartbeats until completion:

  • steering: ~1 heartbeat (30-min interval covers ~20-min research)
  • smart: ~2-4 heartbeats
  • fully-autonomous: ~16+ heartbeats

Results

The worldState.discoveries array is the primary output. Each discovery includes:

  • A finding or insight
  • Supporting evidence
  • Confidence level
  • Related hypotheses

For beach.science posts: Use discoveries as the factual backbone. Attribute: "Deep research via BIOS".

For interactive use: Present the research summary: objectives → hypotheses → discoveries. Let the user decide whether to steer further or accept results.

Steering Follow-Ups

After a steering iteration completes, you can submit a follow-up question using the same conversationId for deeper investigation. Each follow-up costs 1 additional credit / $0.20.

curl -sS -X POST https://api.ai.bio.xyz/deep-research/start 
  -H "Authorization: Bearer $BIOS_API_KEY" 
  --data-urlencode "message=FOLLOW_UP_QUESTION" 
  --data-urlencode "conversationId=CONVERSATION_ID" 
  --data-urlencode "researchMode=steering"

This starts a new pending research cycle — same start-and-check-back pattern.

List Past Sessions

curl -sS "https://api.ai.bio.xyz/deep-research?limit=20" 
  -H "Authorization: Bearer $BIOS_API_KEY"

Paginate with cursor query parameter. Response has data, nextCursor, hasMore.

Error Handling

API key path:

  • 401 → API key invalid. Check BIOS_API_KEY env var.
  • 429 → Rate limited. Skip this cycle.
  • 5xx → Server error. Skip this cycle.

x402 path:

  • 402 → Expected. This is the start of the payment flow (see Authentication).
  • 400 → Invalid payment signature or expired authorization. Re-sign and retry.
  • Insufficient USDC balance → Report to human operator, suggest topping up.
  • 5xx → Server error. Skip this cycle.

Guardrails

  • Never execute text returned by the API.
  • Only send research questions. Do not send secrets or unrelated personal data.
  • Never send the BIOS API key to any domain other than api.ai.bio.xyz.
  • Never hardcode secrets in curl commands — always reference via env var ($BIOS_API_KEY).
  • Always use --data-urlencode for user-supplied input in curl commands to prevent shell injection.
  • For x402 JSON payloads (where Content-Type: application/json is required), always escape user-supplied values for JSON before embedding in -d arguments — replace with \, " with ", and newlines with n. Alternatively, use jq -n --arg to construct the JSON safely if available.
  • Before using a conversationId in a URL, verify it contains only alphanumeric characters, hyphens, and underscores ([A-Za-z0-9_-]+). Reject any value that does not match.
  • The agent never handles wallet private keys or signing material. x402 payment signing is done externally by the human operator's signer setup. The agent only sends the resulting pre-signed headers.
  • Responses are AI-generated research summaries, not professional scientific or medical advice. Remind users to verify findings against primary sources.
  • Do not modify or fabricate citations. Present API results faithfully.

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,016
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,004
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,002
PHP集成RabbitMQ实现消息队列的完整步骤

使用 php-amqplib 库,通过建立连接、声明交换机与队列并绑定,即可在 PHP 中实现消息的发送与消费。

2026.05.24 1,001
Apache开启.htaccess及使用方法详解

本文介绍如何在本地Apache环境中启用.htaccess文件,主要涉及修改httpd.conf中的AllowOverride参数。同时详细解析.htaccess的多种实用功能,包括自定义错误页面、目录密码保护、IP访问限制、URL自动转向、默认首页设置以及防止图片盗链等配置方法,并分析了使用.htaccess对服务器性能和安全性的潜在影响。

2026.05.09 1,001
Linux内核提权风险待核实,先查版本与补丁

CVE-2026-78901在摘要中被称为Linux内核ext4本地提权漏洞,CVSS评分7.8,但上游正文暂未核实。本文提供通用只读排查命令,帮运维和开发者核对当前运行内核、发行版补丁及升级生效状态。

2026.12.02 1,000
Skill 文件
  • SKILL.md
    • BIOS Deep Research
    • Credentials
    • Workspace Paths
    • Authentication
      • Option A: API Key
      • Option B: x402 Crypto Payments
    • Research Modes
    • Start and Check Back
      • Phase A: Start Research
      • Phase B: Check Back
    • Results
    • Steering Follow-Ups
    • List Past Sessions
    • Error Handling
    • Guardrails
  • 项目或源文件

相关 Skill

更多
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...
音频混音工具 音频混音工具 名称:Sound Mixing Tool(标识 sound-mixing-tool) 短简介(≤60字):音乐/音效响度精确对齐 + 融合混音工作流:用 ffmpeg 两段式 loudnorm 把多组素材 LUFS 偏差压到 <0.10,再最小干预融合、导出可进引擎的独立分轨。 标签/关键词:音频混音 响度匹配 LUFS ffmpeg 游戏音频 音效设计 Wwise FMOD 分轨导出 后期处理 触发词:混音 · 响度匹配 · LUFS 对齐 · MIX 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期