Commit Graph

35 Commits

Author SHA1 Message Date
Henry Heng 4417102f6c Bugfix/Zod Parsing (#5399)
* implement parseWithTypeConversion - parse a value against a Zod schema with automatic type conversion for common type mismatches

* Enhance parseWithTypeConversion to include maxDepth parameter for recursion control, preventing infinite loops during parsing.
2025-10-31 13:03:12 +00:00
Henry Heng 84a0a45ff7 Chore/leave default timeout for sandbox execution (#5263)
leave default timeout for sandbox execution
2025-09-28 11:27:19 +01:00
Henry Heng 6fb9bb559f Bugfix/Gsuite tool params (#5189)
* fix gsuite tool params

* custom assistant only check for mandatory fields for visible params

* azure chat openai fix for gpt5

* return raw from executeJavaScriptCode

* add json5 for parsing

* azure chatopenai use maxCompletionTokens
2025-09-11 19:33:52 +01:00
Henry Heng dca91b979b Refactor/Update code execution sandbox implementation across components (#4904)
refactor: Update code execution sandbox implementation across components

- Replaced NodeVM usage with a new createCodeExecutionSandbox function for improved sandbox management.
- Enhanced JavaScript code execution with executeJavaScriptCode function, allowing for better handling of libraries and output streaming.
- Updated multiple components to utilize the new sandboxing approach, ensuring consistent execution environment.
- Added validation for UUIDs and URLs in various tools to enhance input safety.
- Refactored input handling in CustomFunction and IfElseFunction to streamline variable management.
2025-07-21 00:09:01 +01:00
Henry Heng 96a57a58e7 Refractor/SecureZodSchemaParser (#4898)
* refactor: Implement SecureZodSchemaParser for safe Zod schema handling and add FilterParser for Supabase filters

* Replaced direct Zod schema evaluation with SecureZodSchemaParser in StructuredOutputParserAdvanced and CustomTool.
* Introduced FilterParser to safely handle Supabase filter strings, preventing arbitrary code execution.
* Added new filterParser.ts file to encapsulate filter parsing logic.
* Updated Supabase vector store to utilize the new FilterParser for RPC filters.
* Created secureZodParser.ts for secure parsing of Zod schemas.

* remove console log
2025-07-19 01:11:31 +01:00
Henry Heng 5a37227d14 Chore/refractor (#4454)
* markdown files and env examples cleanup

* components update

* update jsonlines description

* server refractor

* update telemetry

* add execute custom node

* add ui refractor

* add username and password authenticate

* correctly retrieve past images in agentflowv2

* disable e2e temporarily

* add existing username and password authenticate

* update migration to default workspace

* update todo

* blob storage migrating

* throw error on agent tool call error

* add missing execution import

* add referral

* chore: add error message when importData is undefined

* migrate api keys to db

* fix: data too long for column executionData

* migrate api keys from json to db at init

* add info on account setup

* update docstore missing fields

---------

Co-authored-by: chungyau97 <chungyau97@gmail.com>
2025-05-27 07:29:42 +01:00
Henry Heng 62d5d1e8ef Bugfix/add hidden properties to custom tool (#3875)
add hidden properties to custom tool
2025-01-15 13:43:58 +00:00
Henry Heng 9a417bdc95 Bugfix/update nodevm sandbox options, sanitize tablename (#3818)
* update nodevm sandbox options, sanitize tablename

* sanitize file name when getFileFromStorage
2025-01-07 15:26:25 +00:00
Henry Heng 7a4c7efcab Chore/changed vm2 to @flowiseai/nodevm (#3200)
* changed vm2 to @flowiseai/nodevm

* update set-value and lunary version
2024-09-17 01:57:02 +01:00
Henry Heng b9f0ec3a3f Bugfix/stream custom tool return direct (#3003)
stream custom tool return direct
2024-08-12 18:35:15 +01:00
Henry Heng 3e54d53692 Feat/update ollama for function calling (#2892)
update ollama for function calling
2024-07-27 01:29:36 +01:00
Henry Heng bca4de0c63 Feature/seq agents (#2798)
* update build functions

* sequential agents

* update langchain to 0.2, added sequential agent nodes

* add marketplace templates

* update howto wordings

* Merge branch 'main' into feature/Seq-Agents

# Conflicts:
#	pnpm-lock.yaml

* update deprecated functions and add new sequential nodes

* add marketplace templates

* update marketplace templates, add structured output to llm node

* add multi agents template

* update llm node with bindmodels

* update cypress version

* update templates sticky note wordings

* update tool node to include human in loop action

* update structured outputs error from models

* update cohere package to resolve google genai pipeThrough bug

* update mistral package version, added message reconstruction before invoke seq agent

* add HITL to agent

* update state messages restructuring

* update load and split methods for s3 directory
2024-07-22 17:46:14 +01:00
YISH 18b83333d3 Fix observation?.includes is not a function (#2696) 2024-06-21 16:45:20 +01:00
Henry Heng bb7373ee62 Feature/Custom Tool OverrideConfig (#1979)
add ability to override custom tool
2024-03-18 15:22:36 +08:00
Henry 5a45a99620 Merge branch 'main' into chore/Upgrade-LC-version 2024-02-19 17:39:32 +08:00
chungyau97 342adff8cb fix weird error 2024-02-16 20:20:17 +08:00
Henry 0606d2c6dd upgrade langchain version 0.1.0 2024-01-26 23:41:55 +00:00
Henry 4256655c7b add $vars and $flow to custom function 2024-01-17 23:47:11 +00:00
Henry 02482f1b38 change agent/chain with memory to use runnable 2024-01-08 13:02:56 +00:00
Henry 5a76076ce4 ability to use flow.input within custom tool 2023-12-26 16:00:46 +00:00
Henry f0cdf48d54 update ui changes 2023-12-21 17:28:25 +00:00
Henry 48b17fc785 pass sessionId to custom tool 2023-12-20 23:59:04 +00:00
Henry be31a4f669 Merge branch 'main' into feature/env-vars 2023-12-20 01:39:45 +00:00
abhishekshankr 37030b9ace Updated tools and utilities icons 2023-12-18 04:05:51 -05:00
Henry 911b4fe7fb add new utilties - customfunction, setter/getter, replace code editor 2023-12-15 17:15:00 +00:00
vinodkiran ef3f1b34b1 Environment Variables: renaming overrideConfig node to envVars 2023-12-12 22:22:25 +05:30
vinodkiran c2e97b54ac Environment Variables: Validations and minor fixes 2023-12-12 16:19:52 +05:30
vinodkiran bfa870e56b Environment Variables: injection of variables ($env) into the custom tool and addition of ($flow) object 2023-12-12 12:19:35 +05:30
vinodkiran 0bf5536095 Environment Variables: injection of variables into the custom script 2023-12-10 22:39:06 +05:30
Henry 82074ee7a1 add datagrid field type 2023-10-31 22:12:09 +00:00
Henry 68b6d4f30a add override customToolFunc 2023-08-07 01:45:40 +01:00
Henry 05dd23b01d - update marketplaces
- add version to nodes and credentials
- hover over node actions
2023-07-28 15:56:40 +01:00
Henry 61dabbb7da Merge branch 'main' into feature/Credential
# Conflicts:
#	README.md
#	docker/.env.example
#	packages/components/nodes/documentloaders/Notion/NotionDB.ts
#	packages/components/nodes/memory/DynamoDb/DynamoDb.ts
#	packages/components/nodes/memory/MotorheadMemory/MotorheadMemory.ts
#	packages/components/nodes/memory/ZepMemory/ZepMemory.ts
#	packages/components/package.json
#	packages/components/src/utils.ts
#	packages/server/.env.example
#	packages/server/README.md
#	packages/server/marketplaces/chatflows/Conversational Retrieval QA Chain.json
#	packages/server/src/ChildProcess.ts
#	packages/server/src/DataSource.ts
#	packages/server/src/commands/start.ts
#	packages/server/src/index.ts
#	packages/server/src/utils/index.ts
#	packages/server/src/utils/logger.ts
2023-07-27 11:26:34 +01:00
Henry 7ec8f8ea28 address vm2 security 2023-07-16 14:32:47 +01:00
Henry 70da39629c add custom tool 2023-06-21 18:31:53 +01:00