mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 21:00:58 +03:00
Fix observation?.includes is not a function (#2696)
This commit is contained in:
@@ -96,6 +96,9 @@ export class DynamicStructuredTool<
|
|||||||
await runManager?.handleToolError(e)
|
await runManager?.handleToolError(e)
|
||||||
throw e
|
throw e
|
||||||
}
|
}
|
||||||
|
if (result && typeof result !== 'string') {
|
||||||
|
result = JSON.stringify(result)
|
||||||
|
}
|
||||||
await runManager?.handleToolEnd(result)
|
await runManager?.handleToolEnd(result)
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user