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' },
|
reasoning: { effort: 'low', summary: 'detailed' },
|
||||||
tools: Object.values(toolsByFile).map(t => t.def),
|
tools: Object.values(toolsByFile).map(t => t.def),
|
||||||
store: true,
|
store: true,
|
||||||
previous_response_id: this.previousResponseId
|
previous_response_id: this.previousResponseId,
|
||||||
|
parallel_tool_calls: false
|
||||||
}
|
}
|
||||||
|
|
||||||
this.currentStream = openai.responses.stream(call);
|
this.currentStream = openai.responses.stream(call);
|
||||||
|
|||||||
@@ -103,24 +103,24 @@ export default {
|
|||||||
type: "object",
|
type: "object",
|
||||||
properties: {
|
properties: {
|
||||||
path: {
|
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.",
|
description: "Directory or file path relative to the root. Use '/' for the root. Defaults to root if not specified.",
|
||||||
},
|
},
|
||||||
depth: {
|
depth: {
|
||||||
type: "integer",
|
type: ["integer", "null"],
|
||||||
description: "Maximum subdirectory levels to traverse. Use -1 for unlimited depth. Defaults to 1.",
|
description: "Maximum subdirectory levels to traverse. Use -1 for unlimited depth. Defaults to 1.",
|
||||||
minimum: -1,
|
minimum: -1,
|
||||||
},
|
},
|
||||||
includeHidden: {
|
includeHidden: {
|
||||||
type: "boolean",
|
type: ["boolean", "null"],
|
||||||
description: "Whether to include hidden files and directories (starting with '.'). Defaults to false.",
|
description: "Whether to include hidden files and directories (starting with '.'). Defaults to false.",
|
||||||
default: false,
|
default: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
required: ["path", "depth", "includeHidden"],
|
required: [],
|
||||||
additionalProperties: false,
|
additionalProperties: false,
|
||||||
},
|
},
|
||||||
strict: true,
|
strict: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
export async function run(args) {
|
export async function run(args) {
|
||||||
|
|||||||
Reference in New Issue
Block a user