UNPKG

@coinbase/agentkit

Version:

Coinbase AgentKit core primitives

29 lines (28 loc) 956 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PythFetchPriceSchema = exports.PythFetchPriceFeedIDSchema = void 0; const zod_1 = require("zod"); /** * Input schema for Pyth fetch price feed ID action. */ exports.PythFetchPriceFeedIDSchema = zod_1.z .object({ tokenSymbol: zod_1.z.string().describe("The asset ticker/symbol to fetch the price feed ID for"), quoteCurrency: zod_1.z .string() .default("USD") .describe("The quote currency to filter by (defaults to USD)"), assetType: zod_1.z .enum(["crypto", "equity", "fx", "metal"]) .default("crypto") .describe("The asset type to search for (crypto, equity, fx, metal)"), }) .strict(); /** * Input schema for Pyth fetch price action. */ exports.PythFetchPriceSchema = zod_1.z .object({ priceFeedID: zod_1.z.string().describe("The price feed ID to fetch the price for"), }) .strict();