tinyagent-ts
Version:
Modern TypeScript framework for building AI agents with pluggable tools and ReAct reasoning
8 lines • 338 B
JavaScript
;
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