UNPKG

tinyagent-ts

Version:

Modern TypeScript framework for building AI agents with pluggable tools and ReAct reasoning

8 lines 338 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.truncateJson = truncateJson; function truncateJson(value, maxLen = 3000) { const text = typeof value === 'string' ? value : JSON.stringify(value); return text.length > maxLen ? '<too large to show>' : text; } //# sourceMappingURL=truncate.js.map