Skip to content

feat(agentFlow) - Add support for listFlows#6005

Merged
j-sanaa merged 2 commits intomainfrom
feat/agentflow-listflows
Mar 18, 2026
Merged

feat(agentFlow) - Add support for listFlows#6005
j-sanaa merged 2 commits intomainfrom
feat/agentflow-listflows

Conversation

@j-sanaa
Copy link
Contributor

@j-sanaa j-sanaa commented Mar 18, 2026

FLOWISE-266
Added listFlows to the registry via chatflowsApi.getAllChatflows(),wired chatflowsApi into ApiServices and useAsyncOptions
Added test cases for chatFlows

listFlows.mov

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces the capability to list various types of flows (chatflows, agentflows) within the application. By integrating the chatflowsApi into the existing useAsyncOptions hook and loadMethodRegistry, it enables dynamic fetching and display of these flows, enhancing the application's ability to manage and interact with different flow types.

Highlights

  • New Feature: listFlows: Introduced a new listFlows load method to fetch and display chatflows and agentflows within the application.
  • API Integration: Integrated chatflowsApi into ApiServices and the useAsyncOptions hook, enabling the new listFlows functionality.
  • Testing: Added comprehensive unit tests for the listFlows functionality within useAsyncOptions and loadMethodRegistry to ensure correct data fetching and mapping.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces support for listFlows to fetch chatflows and agentflows. The changes are well-implemented, including a new listFlows method in the loadMethodRegistry, wiring up the chatflowsApi in the useAsyncOptions hook, and adding comprehensive unit tests. The code is solid and well-tested. I have one suggestion to improve code readability and maintainability, particularly concerning the clarity of conditional logic.

@j-sanaa j-sanaa marked this pull request as ready for review March 18, 2026 00:26
*/
function getChatflowTypeLabel(type: string | undefined): string {
if (type === 'AGENTFLOW') return 'Agentflow V2'
if (type === 'MULTIAGENT') return 'Agentflow V1'
Copy link
Contributor

@jocelynlin-wd jocelynlin-wd Mar 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: are these shown on the UI? might be good to use a const map or use switch but given we only have 3 types right now it's fine to keep current implementation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is visible in the UI in the dropdown. Will leave this as it is for now then!

image

@j-sanaa j-sanaa merged commit 6d1eeb8 into main Mar 18, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants