mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-10 03:44:24 +01:00
Add setting for view image tool (#4406)
* Add setting for view image tool * Fix ci
This commit is contained in:
@@ -380,6 +380,7 @@
|
||||
"toolReferenceName": "viewImage",
|
||||
"displayName": "%copilot.tools.viewImage.name%",
|
||||
"userDescription": "%copilot.tools.viewImage.userDescription%",
|
||||
"when": "config.github.copilot.chat.tools.viewImage.enabled",
|
||||
"modelDescription": "View the contents of an image file. Use this instead of read_file for supported image files such as png, jpg, jpeg, gif, and webp. The tool returns the image directly to multimodal models and does not take line ranges or offsets.",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
@@ -3163,6 +3164,15 @@
|
||||
"preview"
|
||||
]
|
||||
},
|
||||
"github.copilot.chat.tools.viewImage.enabled": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"markdownDescription": "%github.copilot.config.tools.viewImage.enabled%",
|
||||
"tags": [
|
||||
"preview",
|
||||
"onExp"
|
||||
]
|
||||
},
|
||||
"github.copilot.chat.anthropic.thinking.budgetTokens": {
|
||||
"type": "number",
|
||||
"markdownDescription": "%github.copilot.config.anthropic.thinking.budgetTokens%",
|
||||
@@ -6222,4 +6232,4 @@
|
||||
"zod": "3.25.76"
|
||||
},
|
||||
"vscodeCommit": "6f7de9c47ab13c3d886928c04c382d527c9bf11d"
|
||||
}
|
||||
}
|
||||
@@ -296,6 +296,7 @@
|
||||
"copilot.tools.readFile.userDescription": "Read the contents of a file",
|
||||
"copilot.tools.viewImage.name": "View Image",
|
||||
"copilot.tools.viewImage.userDescription": "View the contents of an image file",
|
||||
"github.copilot.config.tools.viewImage.enabled": "Enable the view image tool, which allows the agent to view image files such as png, jpg, jpeg, gif, and webp.",
|
||||
"copilot.tools.listDirectory.name": "List Dir",
|
||||
"copilot.tools.listDirectory.userDescription": "List the contents of a directory",
|
||||
"copilot.tools.getTaskOutput.name": "Get Task Output",
|
||||
|
||||
@@ -976,6 +976,7 @@ export namespace ConfigKey {
|
||||
|
||||
export const CopilotMemoryEnabled = defineSetting<boolean>('chat.copilotMemory.enabled', ConfigType.ExperimentBased, false);
|
||||
export const MemoryToolEnabled = defineSetting<boolean>('chat.tools.memory.enabled', ConfigType.ExperimentBased, true);
|
||||
export const ViewImageToolEnabled = defineSetting<boolean>('chat.tools.viewImage.enabled', ConfigType.ExperimentBased, true);
|
||||
}
|
||||
|
||||
export function getAllConfigKeys(): string[] {
|
||||
|
||||
Reference in New Issue
Block a user