Skip to content

json内容重复和文件找不到 #33

@MuGuo

Description

@MuGuo

bug描述

运行samples中的attachment_demo.py,会出现智能体传递的json内容中,出现重复内容,log如:
user >>> file_master_agent >>> file_react_agent : [{'part': {'content_type': 'path', 'data': './cache_dir\\uploads\\./cache_dir\\uploads\\20250923112403_demo.txt'}}, {'part': {'content_type': 'path', 'data': './cache_dir\\uploads\\20250923112403_demo.txt'}}, {'part': {'content_type': 'text/plain', 'data': '根据文档内容拟一个合适的标题'}}]
可以看到前端上传了一个文件,但是智能体传递过程中json有两个一样的文件。

bug描述

运行samples中的attachment_demo.py,会出现上传的文件找不到的问题,log如:
WARNING Attachment file not found: ./cache_dir\uploads\./cache_dir\uploads\20250923112403_demo.txt
导致后续问答失败。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions