AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import { isObject } from '@activepieces/core-utils';
const TRUNCATED_INPUT_PLACEHOLDER_REGEX =
/^\(truncated(, original size \d+(\.\d+)? (KB|MB))?\)$/;
function hasTruncatedValues(input: unknown): boolean {
return (
isObject(input) &&
Object.values(input).some(
(value) =>
typeof value === 'string' &&
TRUNCATED_INPUT_PLACEHOLDER_REGEX.test(value),
)
);
}
export const truncatedInputUtils = { hasTruncatedValues };