← 返回
未分类 中文

Tyrpay Buyer Skill

Buyer-side TyrPay workflow for LLM agents. Create tasks, optionally wait for seller commitment, fund tasks explicitly, monitor settlement, and request refunds.
面向 LLM 代理的买方 TyrPay 工作流:创建任务、可选等待卖方承诺、显式资助任务、监控结算并申请退款。
10000-c 10000-c 来源
未分类 clawhub v0.1.8 1 版本 100000 Key: 无需
★ 0
Stars
📥 476
下载
💾 0
安装
1
版本
#latest

概述

TyrPay Buyer Skill

Use this skill when an agent needs to act as the buyer in a TyrPay payment flow.

It assumes the runtime already has a configured BuyerSdk and access to the

@tyrpay/buyer-skill tool set.

Quick Start

  1. Install @tyrpay/buyer-skill, @tyrpay/buyer-sdk, and a storage adapter.
  2. Construct BuyerSdk with a signer, settlement address, and storage adapter.
  3. Register createBuyerTools(sdk) with your tool-calling runtime.
  4. Call tyrpay_ready before the first paid workflow.
  5. Use tyrpay_post_task with expectations for the default flow, or createOnly: true plus tyrpay_fund_task (with expectations) for explicit control.

When To Use

  • The agent is responsible for creating and funding a TyrPay task.
  • The agent must enforce buyer-side commitment expectations before payment is locked.
  • The agent needs structured task state that is safe to show to an end user.
  • The buyer workflow must stay non-blocking and recover cleanly after seller-response timeouts.

Workflow

  1. Run tyrpay_ready to verify signer and provider connectivity.
  2. Call tyrpay_post_task with expectations describing the acceptable commitment terms.
  3. If you need explicit orchestration, set createOnly: true (no expectations needed at creation).
  4. When the seller commitment is ready, call tyrpay_fund_task with expectations to validate and fund.
  5. Use tyrpay_check_task or tyrpay_list_tasks to monitor progress.
  6. If proof submission or verification stalls past protocol timeouts, call tyrpay_refund_task.

Mandatory Expectations

  • expectations is required on every funding path.

tyrpay_fund_task always requires it. tyrpay_post_task requires it unless createOnly: true.

  • The on-chain protocol does not enforce that the seller's commitment matches the buyer's requirements.

The chain only records the commitment; it does not validate host, path, models, minimum usage, verifier, or deadline against the buyer's intent.

  • The skill layer rejects any funding call that omits expectations, preventing the agent from locking funds under unintended terms.

Tooling Notes

  • All tools reject malformed inputs with structured BuyerSkillToolError errors.
  • tyrpay_post_task returns timedOut: true instead of throwing when seller wait time expires after task creation.
  • tyrpay_fund_task validates the commitment once, then funds without a second redundant validation pass.
  • Buyer-facing statuses include VERIFIED_PASS and VERIFIED_FAIL when a verification report is available.

Resources

  • references/tool-reference.md for the tool contract and status model.

版本历史

共 1 个版本

  • v0.1.8 当前
    2026-05-21 13:16 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Find Skills

root
帮助用户发现和安装智能体技能,当用户询问如「如何做X」、「找X的技能」、「有能做...的吗」等问题时
★ 1,519 📥 576,104
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,443 📥 328,675
ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 866 📥 345,831