MCPcopy Index your code
hub / github.com/FlowiseAI/Flowise / updateAgentFlowEvent

Function updateAgentFlowEvent

packages/ui/src/views/chatmessage/ChatMessage.jsx:685–696  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

683 }
684
685 const updateAgentFlowEvent = (event) => {
686 if (event === 'INPROGRESS') {
687 setMessages((prevMessages) => [...prevMessages, { message: '', type: 'apiMessage', agentFlowEventStatus: event }])
688 } else {
689 setMessages((prevMessages) => {
690 let allMessages = [...cloneDeep(prevMessages)]
691 if (allMessages[allMessages.length - 1].type === 'userMessage') return allMessages
692 allMessages[allMessages.length - 1].agentFlowEventStatus = event
693 return allMessages
694 })
695 }
696 }
697
698 const updateAgentFlowExecutedData = (agentFlowExecutedData) => {
699 setMessages((prevMessages) => {

Callers 1

onmessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected