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.
@tyrpay/buyer-skill, @tyrpay/buyer-sdk, and a storage adapter.
BuyerSdk with a signer, settlement address, and storage adapter.
createBuyerTools(sdk) with your tool-calling runtime.
tyrpay_ready before the first paid workflow.
tyrpay_post_task with expectations for the default flow, or createOnly: true plus tyrpay_fund_task (with expectations) for explicit control.
tyrpay_ready to verify signer and provider connectivity.
tyrpay_post_task with expectations describing the acceptable commitment terms.
createOnly: true (no expectations needed at creation).
tyrpay_fund_task with expectations to validate and fund.
tyrpay_check_task or tyrpay_list_tasks to monitor progress.
tyrpay_refund_task.
expectations is required on every funding path.
tyrpay_fund_task always requires it. tyrpay_post_task requires it unless createOnly: true.
The chain only records the commitment; it does not validate host, path, models, minimum usage, verifier, or deadline against the buyer's intent.
expectations, preventing the agent from locking funds under unintended terms.
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.
VERIFIED_PASS and VERIFIED_FAIL when a verification report is available.
references/tool-reference.md for the tool contract and status model.
共 1 个版本