Agent tooling
Reference prototype exploring agentic commerce: TypeSafe/Jev → Axiom → Argent → Silverscript on Kaspa.
const DEFAULT_ENDPOINT = "https://api.typesafe.ai/v1/systemone";The link points at the commit we read, so the line number still holds.
These question sets are lifted from this project's source exactly as written.
from src/jev/real.ts:156
actionchoiceWhich economic action does the user explicitly intend? Choose BUY, SELL, PAY, or TRANSFER.
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.assetchoiceWhich asset is the user referring to? Choose the exact ticker if explicitly identifiable. Choose UNKNOWN if it cannot be determined.
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_operatorchoiceWhat 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.
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.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.' } },
},
});