ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { beforeEach, describe, expect, test } from 'vitest';
import type * as vscode from 'vscode';
import { TestLogService } from '../../../../platform/testing/common/testLogService';
import { NullToolsService } from '../toolsService';
describe('Tool Service', () => {
describe('validateToolInput', () => {
let toolsService: NullToolsService;
beforeEach
logService
toolsService logService
result toolsService
result
error
mockTool vscodeLanguageModelToolInformation
name
description
inputSchema
type
properties
message
type
description
count
type
description
required
tags
source
toolsServicetools vscodeLanguageModelToolInformationmockTool
validResult toolsService
validResult
inputObj message count
invalidResult toolsService
invalidResult
error expect
malformedResult toolsService
malformedResult
error expect
emptyTool vscodeLanguageModelToolInformation
name
description
inputSchema
type
properties
optionalParam
type
description
tags
source
toolsServicetools vscodeLanguageModelToolInformationemptyTool
emptyResult toolsService
emptyResult
inputObj
toolWithoutSchema vscodeLanguageModelToolInformation
name
description
inputSchema
tags
source
toolsServicetools vscodeLanguageModelToolInformationtoolWithoutSchema
result toolsService
result
inputObj anyParam
coercionTool vscodeLanguageModelToolInformation
name
description
inputSchema
type
properties
numberAsString
type
booleanAsString
type
tags
source
toolsServicetools vscodeLanguageModelToolInformationcoercionTool
result toolsService
result
inputObj numberAsString booleanAsString
nestedJsonTool vscodeLanguageModelToolInformation
name
description
inputSchema
type
properties
thread_id
type
description
action_json
type
description
properties
command
type
required
required
tags
source
toolsServicetools vscodeLanguageModelToolInformationnestedJsonTool
result toolsService
result
inputObj
thread_id
action_json command
multiNestedTool vscodeLanguageModelToolInformation
name
description
inputSchema
type
properties
config
type
properties
setting type
metadata
type
properties
tags type
tags
source
toolsServicetools vscodeLanguageModelToolInformationmultiNestedTool
multiResult toolsService
multiResult
inputObj
config setting
metadata tags
multiResult2 toolsService
config setting
metadata tags
multiResult2
inputObj
config setting
metadata tags
malformedResult toolsService
malformedResult
error expect
askQuestionsTool vscodeLanguageModelToolInformation
name
description
inputSchema
type
properties
questions
type
items
type
properties
header type
question type
allowFreeformInput type
options
type
items
type
properties
label type
description type
recommended type
required
required
required
tags
source
toolsServicetools vscodeLanguageModelToolInformationaskQuestionsTool
flattenedInput
result toolsService flattenedInput
result
inputObj
questions
allowFreeformInput
header
question
options
description label recommended
description label
allowFreeformInput
header
question
options
label
label
pollutionTool vscodeLanguageModelToolInformation
name
description
inputSchema
type
properties
data
type
properties value type
required
tags
source
toolsServicetools vscodeLanguageModelToolInformationpollutionTool
malicious
result toolsService malicious
result
error expect
Record polluted
conflictTool vscodeLanguageModelToolInformation
name
description
inputSchema
type
properties
a type
required
tags
source
toolsServicetools vscodeLanguageModelToolInformationconflictTool
conflicting
result toolsService conflicting
result
error expect
indexTool vscodeLanguageModelToolInformation
name
description
inputSchema
type
properties
items
type
items type
required
tags
source
toolsServicetools vscodeLanguageModelToolInformationindexTool
huge
result toolsService huge
result
error expect