add write_file_batch as tool
This commit is contained in:
parent
294750d48b
commit
c1029e0ab7
@ -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"],
|
||||
},
|
||||
}
|
||||
},
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user