MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / onLLMStart

Method onLLMStart

packages/components/src/MetricsLogger.ts:77–81  ·  view source on GitHub ↗
(run: Run)

Source from the content-addressed store, hash-verified

75 }
76
77 onLLMStart(run: Run) {
78 const crumbs = this.getBreadcrumbs(run)
79 const inputs = 'prompts' in run.inputs ? { prompts: (run.inputs.prompts as string[]).map((p) => p.trim()) } : run.inputs
80 this.logger.verbose(`[${this.orgId}]: [llm/start] [${crumbs}] Entering LLM run with input: ${tryJsonStringify(inputs, '[inputs]')}`)
81 }
82
83 onLLMEnd(run: Run) {
84 const crumbs = this.getBreadcrumbs(run)

Callers

nothing calls this directly

Calls 2

getBreadcrumbsMethod · 0.95
tryJsonStringifyFunction · 0.90

Tested by

no test coverage detected