{"version":3,"file":"utils.cjs","names":["addLangChainErrorFields"],"sources":["../../src/prompts/utils.ts"],"sourcesContent":["import { addLangChainErrorFields } from \"../errors/index.js\";\n\nexport const MAX_PROMPT_TEMPLATE_DEPTH = 256;\n\nexport function createPromptTemplateDepthError() {\n  return addLangChainErrorFields(\n    new Error(\n      `Prompt template nesting exceeds maximum depth (${MAX_PROMPT_TEMPLATE_DEPTH}).`\n    ),\n    \"INVALID_PROMPT_INPUT\"\n  );\n}\n"],"mappings":";AAIA,SAAgB,iCAAiC;CAC/C,OAAOA,qBAAAA,wCACL,IAAI,MACF,sDACF,GACA,sBACF;AACF"}