mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-03 10:26:52 +00:00
Fix: agent templates... (#10564)
### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
3d873d98fb
commit
34c54cd459
@ -1,15 +1,14 @@
|
||||
{
|
||||
"id": 26,
|
||||
"title": {
|
||||
"en": "Stock Research Report Workflow",
|
||||
"zh": "股票研究报告工作流"
|
||||
"en": "Stock Research Report Agent",
|
||||
"zh": "股票研究报告智能体"
|
||||
},
|
||||
"description": {
|
||||
"en": "This template helps financial analysts quickly organize information — it can automatically retrieve company data, consolidate financial metrics, and integrate research report insights.",
|
||||
"zh": "这个模板可以帮助金融分析师快速整理信息——它能够自动获取公司数据、整合财务指标,并汇总研报观点。"
|
||||
},
|
||||
"canvas_type": "Recommended",
|
||||
"canvas_category": "dataflow_canvas",
|
||||
"dsl": {
|
||||
"components": {
|
||||
"Agent:ManyToesBrush": {
|
||||
@ -51,7 +51,7 @@ from rag.utils.redis_conn import REDIS_CONN
|
||||
@manager.route('/templates', methods=['GET']) # noqa: F821
|
||||
@login_required
|
||||
def templates():
|
||||
return get_json_result(data=[c.to_dict() for c in CanvasTemplateService.query(canvas_category=CanvasCategory.Agent)])
|
||||
return get_json_result(data=[c.to_dict() for c in CanvasTemplateService.get_all()])
|
||||
|
||||
|
||||
@manager.route('/rm', methods=['POST']) # noqa: F821
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user