Skip to content

Conversation

@circlecrystalin
Copy link

@circlecrystalin circlecrystalin commented Dec 23, 2025

Description

This PR addresses issue #11796 by including conversation variables configuration in the exported agent JSON file. Previously, only the graph structure (nodes and edges) was exported, making it impossible to fully restore an agent's behavior upon import, especially for agents that rely on dynamic conversation state.

Changes

  • Modified use-export-json.ts to export the full DSL data structure including:
    • graph: nodes and edges (existing)
    • variables: conversation variables configuration (new)
    • components: DSL components (new)
    • globals: global variables (new)

Impact

  • Before: Exported JSON only contained graph structure
  • After: Exported JSON now includes complete agent configuration including conversation variables
  • Benefit: Agents can be fully restored upon import without manual reconfiguration of conversation variables

Testing

  1. Navigate to an Agent with conversation variables configured
  2. Export the agent as JSON
  3. Verify the exported JSON includes the variables field with all conversation variable configurations
  4. Import the JSON to verify conversation variables are restored correctly

Related Issue

Fixes #11796

Contribution by Gittensor, learn more at https://gittensor.io/

### What problem does this PR solve?

Message CRUD.

Issue infiniflow#4213 

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Dec 23, 2025
@circlecrystalin
Copy link
Author

@KevinHuSh Could you please review my pr soon?

KevinHuSh and others added 6 commits December 24, 2025 09:32
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
### What problem does this PR solve?

Fix: Add prompts when merging or deleting metadata.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

---------

Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com>
### What problem does this PR solve?

Deduplicate metadata lists during updates.

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
### What problem does this PR solve?
pr:infiniflow#12117
change:remove duplicate tool_meta

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
### What problem does this PR solve?

As title

### Type of change

- [x] Refactoring

---------

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
### Type of change

- [x] Documentation Update
@KevinHuSh
Copy link
Collaborator

Appreciations!
Why do we need to alter docker/.env and nginx/ragflow.conf?

Woody-Hu and others added 5 commits December 24, 2025 11:00
)

### What problem does this PR solve?

 improve memory service date time consistency

### Type of change

- [x] Refactoring
…nfiniflow#11825 (infiniflow#12147)

### What problem does this PR solve?

Feat: Support Markdown Rendering for tips in user-fill-up Component
infiniflow#11825

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
…2143)

### What problem does this PR solve?

 Fix LLM tool does not exist in multiple retrieval case

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
@circlecrystalin circlecrystalin force-pushed the feature/include-conversation-variables-in-export branch from 246f59b to c9cb4c1 Compare December 24, 2025 06:40
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Dec 24, 2025
@circlecrystalin
Copy link
Author

Thanks for catching that! Those two files (docker/.env and docker/nginx/ragflow.conf) were accidental changes from local development/testing and aren't related to the feature. I've removed them from the commit. The commit now only includes the actual feature change in web/src/pages/agent/hooks/use-export-json.ts.

@JinHai-CN
Copy link
Contributor

JinHai-CN commented Dec 24, 2025

Please merge the latest code and re-run the CI since a critical bug is fixed.

JinHai-CN and others added 8 commits December 24, 2025 15:52
### What problem does this PR solve?

As title

### Type of change

- [x] Refactoring

---------

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
### What problem does this PR solve?

Add MiniMax M2.1.

### Type of change

- [x] New Feature (non-breaking change which adds functionality)

Co-authored-by: Jin Hai <haijin.chn@gmail.com>
### What problem does this PR solve?

Add document metadata setting.

### Type of change

- [x] New Feature (non-breaking change which adds functionality)

Co-authored-by: Jin Hai <haijin.chn@gmail.com>
### What problem does this PR solve?

Fix: type check for chunks

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
### What problem does this PR solve?

Add image table context to pipeline splitter.

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
…#12169)

### What problem does this PR solve?

Fix:Bugs Fixed
- Text overflow issues that caused rendering problems
- Metadata saving, copywriting and other related issues

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
@circlecrystalin
Copy link
Author

@JinHai-CN I merged the latest code.

@yingfeng
Copy link
Member

@circlecrystalin
Can you please resubmit the resolve the conflicts? We've met some CI issues and therefore some of the commits are reset, and now you can see lots of obsolete commits in your PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Exported Agent JSON Should Include Conversation Variables Configuration