Agent 工具

axiom-agent-runtime

@axiomarchitecture1TypeScript更新于 2026-09-17可当场跑

参考原型,探索基于 TypeSafe/Jev 到 Axiom、Argent、Silverscript 在 Kaspa 上的 agentic 商业模式。

英文原文

Reference prototype exploring agentic commerce: TypeSafe/Jev → Axiom → Argent → Silverscript on Kaspa.

axiomarchitecture/axiom-agent-runtime

它在哪儿调用了 Jev

const DEFAULT_ENDPOINT = "https://api.typesafe.ai/v1/systemone";

src/jev/real.ts:24

链接指向我们抓取当天的那个 commit,行号是准的。

它问 Jev 的问题

下面是从这个项目源码里原样取出来的 question 组合。

取自 src/jev/real.ts:156

  1. action选项

    Which economic action does the user explicitly intend? Choose BUY, SELL, PAY, or TRANSFER.

    • BUYThe user intends to purchase an asset.
    • SELLThe user intends to sell an asset.
    • PAYThe user intends to pay or spend funds.
    • TRANSFERThe user intends to transfer assets between accounts or parties.
  2. asset选项

    Which asset is the user referring to? Choose the exact ticker if explicitly identifiable. Choose UNKNOWN if it cannot be determined.

    • KASKaspa (KAS) is the asset being discussed.
    • BTCBitcoin (BTC) is the asset being discussed.
    • USDUnited States dollars (USD) are the asset being discussed.
    • UNKNOWNThe asset cannot be determined from the input.
  3. condition_operator选项

    What price condition does the user express? LT means below/under, LTE means at or below, GT means above/over, GTE means at or above, EQ means exactly equal, NONE means no price condition.

    • LTThe user specifies a price below a threshold.
    • LTEThe user specifies a price at or below a threshold.
    • GTThe user specifies a price above a threshold.
    • GTEThe user specifies a price at or above a threshold.
    • EQThe user specifies an exact price match.
    • NONEThe user does not specify a price condition.

用你自己的内容跑一遍

代码
import { experimental_evaluate as evaluate } from 'ai';

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    action: { type: 'choice', instructions: 'Which economic action does the user explicitly intend? Choose BUY, SELL, PAY, or TRANSFER.',
      criteria: { BUY: 'The user intends to purchase an asset.', SELL: 'The user intends to sell an asset.', PAY: 'The user intends to pay or spend funds.', TRANSFER: 'The user intends to transfer assets between accounts or parties.' } },
    asset: { type: 'choice', instructions: 'Which asset is the user referring to? Choose the exact ticker if explicitly identifiable. Choose UNKNOWN if it cannot be determined.',
      criteria: { KAS: 'Kaspa (KAS) is the asset being discussed.', BTC: 'Bitcoin (BTC) is the asset being discussed.', USD: 'United States dollars (USD) are the asset being discussed.', UNKNOWN: 'The asset cannot be determined from the input.' } },
    condition_operator: { type: 'choice', instructions: 'What price condition does the user express? LT means below/under, LTE means at or below, GT means above/over, GTE means at or above, EQ means exactly equal, NONE means no price condition.',
      criteria: { LT: 'The user specifies a price below a threshold.', LTE: 'The user specifies a price at or below a threshold.', GT: 'The user specifies a price above a threshold.', GTE: 'The user specifies a price at or above a threshold.', EQ: 'The user specifies an exact price match.', NONE: 'The user does not specify a price condition.' } },
  },
});

同类的其他项目