UNPKG

tensaikit

Version:

An autonomous DeFi AI Agent Kit on Katana enabling AI agents to plan and execute on-chain financial operations.

18 lines (17 loc) 536 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.objectToString = objectToString; function objectToString(obj) { try { if (obj === undefined) return "undefined"; if (obj === null) return "null"; return typeof obj === "string" ? obj : JSON.stringify(obj, (_key, value) => typeof value === "bigint" ? value.toString() : value); } catch (error) { return String(obj); // fallback for circular structures } }