a93d28175fadbd9e2985dde1918ba2ad4301b72557343b99929c78620d234c8a.json 23 KB

1
  1. {"ast":null,"code":"import styles from \"ansi-styles\";\nimport { BaseTracer } from \"./base.js\";\nfunction wrap(style, text) {\n return `${style.open}${text}${style.close}`;\n}\nfunction tryJsonStringify(obj, fallback) {\n try {\n return JSON.stringify(obj, null, 2);\n } catch (err) {\n return fallback;\n }\n}\nfunction formatKVMapItem(value) {\n if (typeof value === \"string\") {\n return value.trim();\n }\n if (value === null || value === undefined) {\n return value;\n }\n return tryJsonStringify(value, value.toString());\n}\nfunction elapsed(run) {\n if (!run.end_time) return \"\";\n const elapsed = run.end_time - run.start_time;\n if (elapsed < 1000) {\n return `${elapsed}ms`;\n }\n return `${(elapsed / 1000).toFixed(2)}s`;\n}\nconst {\n color\n} = styles;\n/**\n * A tracer that logs all events to the console. It extends from the\n * `BaseTracer` class and overrides its methods to provide custom logging\n * functionality.\n * @example\n * ```typescript\n *\n * const llm = new ChatAnthropic({\n * temperature: 0,\n * tags: [\"example\", \"callbacks\", \"constructor\"],\n * callbacks: [new ConsoleCallbackHandler()],\n * });\n *\n * ```\n */\nexport class ConsoleCallbackHandler extends BaseTracer {\n constructor() {\n super(...arguments);\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: \"console_callback_handler\"\n });\n }\n /**\n * Method used to persist the run. In this case, it simply returns a\n * resolved promise as there's no persistence logic.\n * @param _run The run to persist.\n * @returns A resolved promise.\n */\n persistRun(_run) {\n return Promise.resolve();\n }\n // utility methods\n /**\n * Method used to get all the parent runs of a given run.\n * @param run The run whose parents are to be retrieved.\n * @returns An array of parent runs.\n */\n getParents(run) {\n const parents = [];\n let currentRun = run;\n while (currentRun.parent_run_id) {\n const parent = this.runMap.get(currentRun.parent_run_id);\n if (parent) {\n parents.push(parent);\n currentRun = parent;\n } else {\n break;\n }\n }\n return parents;\n }\n /**\n * Method used to get a string representation of the run's lineage, which\n * is used in logging.\n * @param run The run whose lineage is to be retrieved.\n * @returns A string representation of the run's lineage.\n */\n getBreadcrumbs(run) {\n const parents = this.getParents(run).reverse();\n const string = [...parents, run].map((parent, i, arr) => {\n const name = `${parent.execution_order}:${parent.run_type}:${parent.name}`;\n return i === arr.length - 1 ? wrap(styles.bold, name) : name;\n }).join(\" > \");\n return wrap(color.grey, string);\n }\n // logging methods\n /**\n * Method used to log the start of a chain run.\n * @param run The chain run that has started.\n * @returns void\n */\n onChainStart(run) {\n const crumbs = this.getBreadcrumbs(run);\n console.log(`${wrap(color.green, \"[chain/start]\")} [${crumbs}] Entering Chain run with input: ${tryJsonStringify(run.inputs, \"[inputs]\")}`);\n }\n /**\n * Method used to log the end of a chain run.\n * @param run The chain run that has ended.\n * @returns void\n */\n onChainEnd(run) {\n const crumbs = this.getBreadcrumbs(run);\n console.log(`${wrap(color.cyan, \"[chain/end]\")} [${crumbs}] [${elapsed(run)}] Exiting Chain run with output: ${tryJsonStringify(run.outputs, \"[outputs]\")}`);\n }\n /**\n * Method used to log any errors of a chain run.\n * @param run The chain run that has errored.\n * @returns void\n */\n onChainError(run) {\n const crumbs = this.getBreadcrumbs(run);\n console.log(`${wrap(color.red, \"[chain/error]\")} [${crumbs}] [${elapsed(run)}] Chain run errored with error: ${tryJsonStringify(run.error, \"[error]\")}`);\n }\n /**\n * Method used to log the start of an LLM run.\n * @param run The LLM run that has started.\n * @returns void\n */\n onLLMStart(run) {\n const crumbs = this.getBreadcrumbs(run);\n const inputs = \"prompts\" in run.inputs ? {\n prompts: run.inputs.prompts.map(p => p.trim())\n } : run.inputs;\n console.log(`${wrap(color.green, \"[llm/start]\")} [${crumbs}] Entering LLM run with input: ${tryJsonStringify(inputs, \"[inputs]\")}`);\n }\n /**\n * Method used to log the end of an LLM run.\n * @param run The LLM run that has ended.\n * @returns void\n */\n onLLMEnd(run) {\n const crumbs = this.getBreadcrumbs(run);\n console.log(`${wrap(color.cyan, \"[llm/end]\")} [${crumbs}] [${elapsed(run)}] Exiting LLM run with output: ${tryJsonStringify(run.outputs, \"[response]\")}`);\n }\n /**\n * Method used to log any errors of an LLM run.\n * @param run The LLM run that has errored.\n * @returns void\n */\n onLLMError(run) {\n const crumbs = this.getBreadcrumbs(run);\n console.log(`${wrap(color.red, \"[llm/error]\")} [${crumbs}] [${elapsed(run)}] LLM run errored with error: ${tryJsonStringify(run.error, \"[error]\")}`);\n }\n /**\n * Method used to log the start of a tool run.\n * @param run The tool run that has started.\n * @returns void\n */\n onToolStart(run) {\n const crumbs = this.getBreadcrumbs(run);\n console.log(`${wrap(color.green, \"[tool/start]\")} [${crumbs}] Entering Tool run with input: \"${formatKVMapItem(run.inputs.input)}\"`);\n }\n /**\n * Method used to log the end of a tool run.\n * @param run The tool run that has ended.\n * @returns void\n */\n onToolEnd(run) {\n var _run$outputs;\n const crumbs = this.getBreadcrumbs(run);\n console.log(`${wrap(color.cyan, \"[tool/end]\")} [${crumbs}] [${elapsed(run)}] Exiting Tool run with output: \"${formatKVMapItem((_run$outputs = run.outputs) === null || _run$outputs === void 0 ? void 0 : _run$outputs.output)}\"`);\n }\n /**\n * Method used to log any errors of a tool run.\n * @param run The tool run that has errored.\n * @returns void\n */\n onToolError(run) {\n const crumbs = this.getBreadcrumbs(run);\n console.log(`${wrap(color.red, \"[tool/error]\")} [${crumbs}] [${elapsed(run)}] Tool run errored with error: ${tryJsonStringify(run.error, \"[error]\")}`);\n }\n /**\n * Method used to log the start of a retriever run.\n * @param run The retriever run that has started.\n * @returns void\n */\n onRetrieverStart(run) {\n const crumbs = this.getBreadcrumbs(run);\n console.log(`${wrap(color.green, \"[retriever/start]\")} [${crumbs}] Entering Retriever run with input: ${tryJsonStringify(run.inputs, \"[inputs]\")}`);\n }\n /**\n * Method used to log the end of a retriever run.\n * @param run The retriever run that has ended.\n * @returns void\n */\n onRetrieverEnd(run) {\n const crumbs = this.getBreadcrumbs(run);\n console.log(`${wrap(color.cyan, \"[retriever/end]\")} [${crumbs}] [${elapsed(run)}] Exiting Retriever run with output: ${tryJsonStringify(run.outputs, \"[outputs]\")}`);\n }\n /**\n * Method used to log any errors of a retriever run.\n * @param run The retriever run that has errored.\n * @returns void\n */\n onRetrieverError(run) {\n const crumbs = this.getBreadcrumbs(run);\n console.log(`${wrap(color.red, \"[retriever/error]\")} [${crumbs}] [${elapsed(run)}] Retriever run errored with error: ${tryJsonStringify(run.error, \"[error]\")}`);\n }\n /**\n * Method used to log the action selected by the agent.\n * @param run The run in which the agent action occurred.\n * @returns void\n */\n onAgentAction(run) {\n const agentRun = run;\n const crumbs = this.getBreadcrumbs(run);\n console.log(`${wrap(color.blue, \"[agent/action]\")} [${crumbs}] Agent selected action: ${tryJsonStringify(agentRun.actions[agentRun.actions.length - 1], \"[action]\")}`);\n }\n}","map":{"version":3,"names":["styles","BaseTracer","wrap","style","text","open","close","tryJsonStringify","obj","fallback","JSON","stringify","err","formatKVMapItem","value","trim","undefined","toString","elapsed","run","end_time","start_time","toFixed","color","ConsoleCallbackHandler","constructor","arguments","Object","defineProperty","enumerable","configurable","writable","persistRun","_run","Promise","resolve","getParents","parents","currentRun","parent_run_id","parent","runMap","get","push","getBreadcrumbs","reverse","string","map","i","arr","name","execution_order","run_type","length","bold","join","grey","onChainStart","crumbs","console","log","green","inputs","onChainEnd","cyan","outputs","onChainError","red","error","onLLMStart","prompts","p","onLLMEnd","onLLMError","onToolStart","input","onToolEnd","_run$outputs","output","onToolError","onRetrieverStart","onRetrieverEnd","onRetrieverError","onAgentAction","agentRun","blue","actions"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@langchain/core/dist/tracers/console.js"],"sourcesContent":["import styles from \"ansi-styles\";\nimport { BaseTracer } from \"./base.js\";\nfunction wrap(style, text) {\n return `${style.open}${text}${style.close}`;\n}\nfunction tryJsonStringify(obj, fallback) {\n try {\n return JSON.stringify(obj, null, 2);\n }\n catch (err) {\n return fallback;\n }\n}\nfunction formatKVMapItem(value) {\n if (typeof value === \"string\") {\n return value.trim();\n }\n if (value === null || value === undefined) {\n return value;\n }\n return tryJsonStringify(value, value.toString());\n}\nfunction elapsed(run) {\n if (!run.end_time)\n return \"\";\n const elapsed = run.end_time - run.start_time;\n if (elapsed < 1000) {\n return `${elapsed}ms`;\n }\n return `${(elapsed / 1000).toFixed(2)}s`;\n}\nconst { color } = styles;\n/**\n * A tracer that logs all events to the console. It extends from the\n * `BaseTracer` class and overrides its methods to provide custom logging\n * functionality.\n * @example\n * ```typescript\n *\n * const llm = new ChatAnthropic({\n * temperature: 0,\n * tags: [\"example\", \"callbacks\", \"constructor\"],\n * callbacks: [new ConsoleCallbackHandler()],\n * });\n *\n * ```\n */\nexport class ConsoleCallbackHandler extends BaseTracer {\n constructor() {\n super(...arguments);\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: \"console_callback_handler\"\n });\n }\n /**\n * Method used to persist the run. In this case, it simply returns a\n * resolved promise as there's no persistence logic.\n * @param _run The run to persist.\n * @returns A resolved promise.\n */\n persistRun(_run) {\n return Promise.resolve();\n }\n // utility methods\n /**\n * Method used to get all the parent runs of a given run.\n * @param run The run whose parents are to be retrieved.\n * @returns An array of parent runs.\n */\n getParents(run) {\n const parents = [];\n let currentRun = run;\n while (currentRun.parent_run_id) {\n const parent = this.runMap.get(currentRun.parent_run_id);\n if (parent) {\n parents.push(parent);\n currentRun = parent;\n }\n else {\n break;\n }\n }\n return parents;\n }\n /**\n * Method used to get a string representation of the run's lineage, which\n * is used in logging.\n * @param run The run whose lineage is to be retrieved.\n * @returns A string representation of the run's lineage.\n */\n getBreadcrumbs(run) {\n const parents = this.getParents(run).reverse();\n const string = [...parents, run]\n .map((parent, i, arr) => {\n const name = `${parent.execution_order}:${parent.run_type}:${parent.name}`;\n return i === arr.length - 1 ? wrap(styles.bold, name) : name;\n })\n .join(\" > \");\n return wrap(color.grey, string);\n }\n // logging methods\n /**\n * Method used to log the start of a chain run.\n * @param run The chain run that has started.\n * @returns void\n */\n onChainStart(run) {\n const crumbs = this.getBreadcrumbs(run);\n console.log(`${wrap(color.green, \"[chain/start]\")} [${crumbs}] Entering Chain run with input: ${tryJsonStringify(run.inputs, \"[inputs]\")}`);\n }\n /**\n * Method used to log the end of a chain run.\n * @param run The chain run that has ended.\n * @returns void\n */\n onChainEnd(run) {\n const crumbs = this.getBreadcrumbs(run);\n console.log(`${wrap(color.cyan, \"[chain/end]\")} [${crumbs}] [${elapsed(run)}] Exiting Chain run with output: ${tryJsonStringify(run.outputs, \"[outputs]\")}`);\n }\n /**\n * Method used to log any errors of a chain run.\n * @param run The chain run that has errored.\n * @returns void\n */\n onChainError(run) {\n const crumbs = this.getBreadcrumbs(run);\n console.log(`${wrap(color.red, \"[chain/error]\")} [${crumbs}] [${elapsed(run)}] Chain run errored with error: ${tryJsonStringify(run.error, \"[error]\")}`);\n }\n /**\n * Method used to log the start of an LLM run.\n * @param run The LLM run that has started.\n * @returns void\n */\n onLLMStart(run) {\n const crumbs = this.getBreadcrumbs(run);\n const inputs = \"prompts\" in run.inputs\n ? { prompts: run.inputs.prompts.map((p) => p.trim()) }\n : run.inputs;\n console.log(`${wrap(color.green, \"[llm/start]\")} [${crumbs}] Entering LLM run with input: ${tryJsonStringify(inputs, \"[inputs]\")}`);\n }\n /**\n * Method used to log the end of an LLM run.\n * @param run The LLM run that has ended.\n * @returns void\n */\n onLLMEnd(run) {\n const crumbs = this.getBreadcrumbs(run);\n console.log(`${wrap(color.cyan, \"[llm/end]\")} [${crumbs}] [${elapsed(run)}] Exiting LLM run with output: ${tryJsonStringify(run.outputs, \"[response]\")}`);\n }\n /**\n * Method used to log any errors of an LLM run.\n * @param run The LLM run that has errored.\n * @returns void\n */\n onLLMError(run) {\n const crumbs = this.getBreadcrumbs(run);\n console.log(`${wrap(color.red, \"[llm/error]\")} [${crumbs}] [${elapsed(run)}] LLM run errored with error: ${tryJsonStringify(run.error, \"[error]\")}`);\n }\n /**\n * Method used to log the start of a tool run.\n * @param run The tool run that has started.\n * @returns void\n */\n onToolStart(run) {\n const crumbs = this.getBreadcrumbs(run);\n console.log(`${wrap(color.green, \"[tool/start]\")} [${crumbs}] Entering Tool run with input: \"${formatKVMapItem(run.inputs.input)}\"`);\n }\n /**\n * Method used to log the end of a tool run.\n * @param run The tool run that has ended.\n * @returns void\n */\n onToolEnd(run) {\n const crumbs = this.getBreadcrumbs(run);\n console.log(`${wrap(color.cyan, \"[tool/end]\")} [${crumbs}] [${elapsed(run)}] Exiting Tool run with output: \"${formatKVMapItem(run.outputs?.output)}\"`);\n }\n /**\n * Method used to log any errors of a tool run.\n * @param run The tool run that has errored.\n * @returns void\n */\n onToolError(run) {\n const crumbs = this.getBreadcrumbs(run);\n console.log(`${wrap(color.red, \"[tool/error]\")} [${crumbs}] [${elapsed(run)}] Tool run errored with error: ${tryJsonStringify(run.error, \"[error]\")}`);\n }\n /**\n * Method used to log the start of a retriever run.\n * @param run The retriever run that has started.\n * @returns void\n */\n onRetrieverStart(run) {\n const crumbs = this.getBreadcrumbs(run);\n console.log(`${wrap(color.green, \"[retriever/start]\")} [${crumbs}] Entering Retriever run with input: ${tryJsonStringify(run.inputs, \"[inputs]\")}`);\n }\n /**\n * Method used to log the end of a retriever run.\n * @param run The retriever run that has ended.\n * @returns void\n */\n onRetrieverEnd(run) {\n const crumbs = this.getBreadcrumbs(run);\n console.log(`${wrap(color.cyan, \"[retriever/end]\")} [${crumbs}] [${elapsed(run)}] Exiting Retriever run with output: ${tryJsonStringify(run.outputs, \"[outputs]\")}`);\n }\n /**\n * Method used to log any errors of a retriever run.\n * @param run The retriever run that has errored.\n * @returns void\n */\n onRetrieverError(run) {\n const crumbs = this.getBreadcrumbs(run);\n console.log(`${wrap(color.red, \"[retriever/error]\")} [${crumbs}] [${elapsed(run)}] Retriever run errored with error: ${tryJsonStringify(run.error, \"[error]\")}`);\n }\n /**\n * Method used to log the action selected by the agent.\n * @param run The run in which the agent action occurred.\n * @returns void\n */\n onAgentAction(run) {\n const agentRun = run;\n const crumbs = this.getBreadcrumbs(run);\n console.log(`${wrap(color.blue, \"[agent/action]\")} [${crumbs}] Agent selected action: ${tryJsonStringify(agentRun.actions[agentRun.actions.length - 1], \"[action]\")}`);\n }\n}\n"],"mappings":"AAAA,OAAOA,MAAM,MAAM,aAAa;AAChC,SAASC,UAAU,QAAQ,WAAW;AACtC,SAASC,IAAIA,CAACC,KAAK,EAAEC,IAAI,EAAE;EACvB,OAAO,GAAGD,KAAK,CAACE,IAAI,GAAGD,IAAI,GAAGD,KAAK,CAACG,KAAK,EAAE;AAC/C;AACA,SAASC,gBAAgBA,CAACC,GAAG,EAAEC,QAAQ,EAAE;EACrC,IAAI;IACA,OAAOC,IAAI,CAACC,SAAS,CAACH,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;EACvC,CAAC,CACD,OAAOI,GAAG,EAAE;IACR,OAAOH,QAAQ;EACnB;AACJ;AACA,SAASI,eAAeA,CAACC,KAAK,EAAE;EAC5B,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IAC3B,OAAOA,KAAK,CAACC,IAAI,CAAC,CAAC;EACvB;EACA,IAAID,KAAK,KAAK,IAAI,IAAIA,KAAK,KAAKE,SAAS,EAAE;IACvC,OAAOF,KAAK;EAChB;EACA,OAAOP,gBAAgB,CAACO,KAAK,EAAEA,KAAK,CAACG,QAAQ,CAAC,CAAC,CAAC;AACpD;AACA,SAASC,OAAOA,CAACC,GAAG,EAAE;EAClB,IAAI,CAACA,GAAG,CAACC,QAAQ,EACb,OAAO,EAAE;EACb,MAAMF,OAAO,GAAGC,GAAG,CAACC,QAAQ,GAAGD,GAAG,CAACE,UAAU;EAC7C,IAAIH,OAAO,GAAG,IAAI,EAAE;IAChB,OAAO,GAAGA,OAAO,IAAI;EACzB;EACA,OAAO,GAAG,CAACA,OAAO,GAAG,IAAI,EAAEI,OAAO,CAAC,CAAC,CAAC,GAAG;AAC5C;AACA,MAAM;EAAEC;AAAM,CAAC,GAAGvB,MAAM;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A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