Update ModelDialog and list_files.js to enhance functionality. Add parallel_tool_calls option in ModelDialog for improved response handling. Modify list_files.js schema to allow null types for path, depth, and includeHidden properties, and remove required fields for greater flexibility.
This commit is contained in:
@@ -94,7 +94,8 @@ class ModelDialog {
|
||||
reasoning: { effort: 'low', summary: 'detailed' },
|
||||
tools: Object.values(toolsByFile).map(t => t.def),
|
||||
store: true,
|
||||
previous_response_id: this.previousResponseId
|
||||
previous_response_id: this.previousResponseId,
|
||||
parallel_tool_calls: false
|
||||
}
|
||||
|
||||
this.currentStream = openai.responses.stream(call);
|
||||
|
||||
@@ -103,24 +103,24 @@ export default {
|
||||
type: "object",
|
||||
properties: {
|
||||
path: {
|
||||
type: "string",
|
||||
type: ["string", "null"],
|
||||
description: "Directory or file path relative to the root. Use '/' for the root. Defaults to root if not specified.",
|
||||
},
|
||||
depth: {
|
||||
type: "integer",
|
||||
type: ["integer", "null"],
|
||||
description: "Maximum subdirectory levels to traverse. Use -1 for unlimited depth. Defaults to 1.",
|
||||
minimum: -1,
|
||||
},
|
||||
includeHidden: {
|
||||
type: "boolean",
|
||||
type: ["boolean", "null"],
|
||||
description: "Whether to include hidden files and directories (starting with '.'). Defaults to false.",
|
||||
default: false,
|
||||
}
|
||||
},
|
||||
required: ["path", "depth", "includeHidden"],
|
||||
required: [],
|
||||
additionalProperties: false,
|
||||
},
|
||||
strict: true,
|
||||
strict: false,
|
||||
};
|
||||
|
||||
export async function run(args) {
|
||||
|
||||
Reference in New Issue
Block a user