mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 17:01:00 +03:00
Bugfix/Overrideconfig Analytics in AgentflowV2 (#4599)
* fix(utils/buildAgentflow): enhance analytic handler configuration to support overrides * fix(agentflow): integrate analytic handlers for tool execution tracking
This commit is contained in:
@@ -1503,7 +1503,14 @@ export const executeAgentFlow = async ({
|
||||
|
||||
try {
|
||||
if (chatflow.analytic) {
|
||||
analyticHandlers = AnalyticHandler.getInstance({ inputs: {} } as any, {
|
||||
// Override config analytics
|
||||
let analyticInputs: ICommonObject = {}
|
||||
if (overrideConfig?.analytics && Object.keys(overrideConfig.analytics).length > 0) {
|
||||
analyticInputs = {
|
||||
...overrideConfig.analytics
|
||||
}
|
||||
}
|
||||
analyticHandlers = AnalyticHandler.getInstance({ inputs: { analytics: analyticInputs } } as any, {
|
||||
orgId,
|
||||
workspaceId,
|
||||
appDataSource,
|
||||
|
||||
Reference in New Issue
Block a user