Feature/agentflow v2 (#4298)

* agent flow v2

* chat message background

* conditon agent flow

* add sticky note

* update human input dynamic prompt

* add HTTP node

* add default tool icon

* fix export duplicate agentflow v2

* add agentflow v2 marketplaces

* refractor memoization, add iteration nodes

* add agentflow v2 templates

* add agentflow generator

* add migration scripts for mysql, mariadb, posrgres and fix date filters for executions

* update agentflow chat history config

* fix get all flows error after deletion and rename

* add previous nodes from parent node

* update generator prompt

* update run time state when using iteration nodes

* prevent looping connection, prevent duplication of start node, add executeflow node, add nodes agentflow, chat history variable

* update embed

* convert form input to string

* bump openai version

* add react rewards

* add prompt generator to prediction queue

* add array schema to overrideconfig

* UI touchup

* update embedded chat version

* fix node info dialog

* update start node and loop default iteration

* update UI fixes for agentflow v2

* fix async drop down

* add export import to agentflowsv2, executions, fix UI bugs

* add default empty object to flowlisttable

* add ability to share trace link publicly, allow MCP tool use for Agent and Assistant

* add runtime message length to variable, display conditions on UI

* fix array validation

* add ability to add knowledge from vector store and embeddings for agent

* add agent tool require human input

* add ephemeral memory to start node

* update agent flow node to show vs and embeddings icons

* feat: add import chat data functionality for AgentFlowV2

* feat: set chatMessage.executionId to null if not found in import JSON file or database

* fix: MariaDB execution migration script to utf8mb4_unicode_520_ci

---------

Co-authored-by: Ong Chung Yau <33013947+chungyau97@users.noreply.github.com>
Co-authored-by: chungyau97 <chungyau97@gmail.com>
This commit is contained in:
Henry Heng
2025-05-10 10:21:26 +08:00
committed by GitHub
parent 82e6f43b5c
commit 7924fbce0d
216 changed files with 33304 additions and 5269 deletions
+5 -2
View File
@@ -2,7 +2,7 @@ import client from './client'
const getAllChatflows = () => client.get('/chatflows?type=CHATFLOW')
const getAllAgentflows = () => client.get('/chatflows?type=MULTIAGENT')
const getAllAgentflows = (type) => client.get(`/chatflows?type=${type}`)
const getSpecificChatflow = (id) => client.get(`/chatflows/${id}`)
@@ -20,6 +20,8 @@ const getIsChatflowStreaming = (id) => client.get(`/chatflows-streaming/${id}`)
const getAllowChatflowUploads = (id) => client.get(`/chatflows-uploads/${id}`)
const generateAgentflow = (body) => client.post(`/agentflowv2-generator/generate`, body)
export default {
getAllChatflows,
getAllAgentflows,
@@ -30,5 +32,6 @@ export default {
updateChatflow,
deleteChatflow,
getIsChatflowStreaming,
getAllowChatflowUploads
getAllowChatflowUploads,
generateAgentflow
}
+15
View File
@@ -0,0 +1,15 @@
import client from './client'
const getAllExecutions = (params = {}) => client.get('/executions', { params })
const deleteExecutions = (executionIds) => client.delete('/executions', { data: { executionIds } })
const getExecutionById = (executionId) => client.get(`/executions/${executionId}`)
const getExecutionByIdPublic = (executionId) => client.get(`/public-executions/${executionId}`)
const updateExecution = (executionId, body) => client.put(`/executions/${executionId}`, body)
export default {
getAllExecutions,
deleteExecutions,
getExecutionById,
getExecutionByIdPublic,
updateExecution
}
+3 -1
View File
@@ -2,8 +2,10 @@ import client from './client'
const sendMessageAndGetPrediction = (id, input) => client.post(`/internal-prediction/${id}`, input)
const sendMessageAndStreamPrediction = (id, input) => client.post(`/internal-prediction/stream/${id}`, input)
const sendMessageAndGetPredictionPublic = (id, input) => client.post(`/prediction/${id}`, input)
export default {
sendMessageAndGetPrediction,
sendMessageAndStreamPrediction
sendMessageAndStreamPrediction,
sendMessageAndGetPredictionPublic
}
+7
View File
@@ -0,0 +1,7 @@
import client from './client'
const checkValidation = (id) => client.get(`/validation/${id}`)
export default {
checkValidation
}