Skip to content

variables component agent #6333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 21 commits into from

Conversation

isthaison
Copy link
Contributor

@isthaison isthaison commented Mar 20, 2025

What problem does this PR solve?

Add variable component agent
Proceduce:
image
UI:
image
image

agent test:

abc.json

Briefly describe what this PR aims to solve. Include background context that will help reviewers understand the purpose of the PR.

Type of change

  • Bug Fix (non-breaking change which fixes an issue)
  • New Feature (non-breaking change which adds functionality)
  • Documentation Update
  • Refactoring
  • Performance Improvement
  • Other (please describe):

@isthaison isthaison changed the title add variable variables component agent Mar 20, 2025
@isthaison isthaison closed this Mar 20, 2025
@isthaison isthaison reopened this Mar 21, 2025
@isthaison
Copy link
Contributor Author

Hi @KevinHuSh , as you know the request changed. I tried to optimize it. so that the canvas code does not change too much.

@KevinHuSh KevinHuSh added 💞 feature Feature request, pull request that fullfill a new feature. 🌈 python Pull requests that update Python code 🧰 typescript Pull requests that update Typescript code size:L This PR changes 100-499 lines, ignoring generated files. labels Mar 26, 2025
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Mar 31, 2025
@Sci-fiBrain
Copy link
Contributor

This Feature is great. Why hasn't it been merged yet? Are there any problems being solved?

@isthaison
Copy link
Contributor Author

I don't know either, I'm not on their team.

isthaison added 2 commits May 28, 2025 13:33
…-agent

# Conflicts:
#	web/src/pages/flow/constant.tsx
#	web/src/pages/flow/flow-drawer/index.tsx
@coco2006
Copy link

coco2006 commented Jun 9, 2025

if the "Code" component is there, you could use the "Code" snippet to handle the similar scenario.

@isthaison
Copy link
Contributor Author

With the above scenario is simple, but with more complex scenarios, the code component can not handle it.
With this component, the purpose is to use llm to extract information into json, then extract json into the variable of begin. so that the components can use these variables accordingly, here are some examples:
Case 1: Extract normal information to pre-define variables from begin, described initially.
Case 2: Extract dynamic information according to the input value passed in, suppose: there are 10 formdata to process for different actions (this data is stored in retrial , {"type": "action 1", "param1":"" } ,{"type": "action 2", "param2":"" } ), combined with the conversation between the user and AI, to extract. then based on the type to branch for the agent according to each type of action

@KevinHuSh
Copy link
Collaborator

Appreciations!
We're gona refactor this part a lot recently.

@KevinHuSh KevinHuSh closed this Jun 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💞 feature Feature request, pull request that fullfill a new feature. 🌈 python Pull requests that update Python code size:XL This PR changes 500-999 lines, ignoring generated files. 🧰 typescript Pull requests that update Typescript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants