add write_file_batch as tool

This commit is contained in:
= 2025-04-26 21:58:22 +08:00
parent 294750d48b
commit c1029e0ab7

View File

@ -19,6 +19,27 @@ tools = [
},
"required": ["file_path","content"],
},
},
},
{
"type": "function",
"function": {
"name": "write_file_batch",
"description": "write contents files, creating directories if they do not exist. If the file already exists, it will be overwritten.",
"parameters": {
"type": "object",
"properties": {
"file_paths": {
"type": "array",
"description": "the path with file name to write to. it can be relative path. e.g. '[test_data/output/test.md]'",
},
"contents": {
"type": "array",
"description": "the contents to write to the files.",
},
},
"required": ["file_paths","contents"],
},
}
},
]