Skip to content

执行过程循环写入错误的问题 #38

@swtseaman

Description

@swtseaman

在执行过程中,需要写入文件的时候,反复出现写入错误

一下是错误内容

Invalid arguments for [edit]. Expected Schema: {"type":"object","properties":{"edits":{"type":"array","items":{"type":"object","properties":{"new_str":{"type":"string","description":"替换后的新内容"},"old_str":{"type":"string","description":"待替换的唯一文本块。必须唯一且包含精确缩进。"},"replace_all":{"type":"boolean","description":"是否替换所有匹配项(仅当 old_str 全文唯一时执行替换)。","default":false}},"required":["old_str","new_str"]},"description":"编辑操作列表"},"file_path":{"type":"string","description":"文件相对路径(如 'src/demo.md')。'.' 表示当前根目录。"}},"required":["file_path","edits"]}. Error: Missing required parameter 'file_path'

大概循环3-5次会成功写入一次,在文档生成的过程太过耗时!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions