mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
Refactor: Standardize Tool Naming and Configuration System (#1004)
This commit is contained in:
@@ -14,6 +14,7 @@ import * as process from 'process';
|
||||
|
||||
import { QWEN_DIR } from '../utils/paths.js';
|
||||
import type { Config } from '../config/config.js';
|
||||
import { ToolDisplayNames, ToolNames } from './tool-names.js';
|
||||
|
||||
export interface TodoItem {
|
||||
id: string;
|
||||
@@ -422,12 +423,12 @@ export class TodoWriteTool extends BaseDeclarativeTool<
|
||||
TodoWriteParams,
|
||||
ToolResult
|
||||
> {
|
||||
static readonly Name: string = todoWriteToolSchemaData.name!;
|
||||
static readonly Name: string = ToolNames.TODO_WRITE;
|
||||
|
||||
constructor(private readonly config: Config) {
|
||||
super(
|
||||
TodoWriteTool.Name,
|
||||
'TodoWrite',
|
||||
ToolDisplayNames.TODO_WRITE,
|
||||
todoWriteToolDescription,
|
||||
Kind.Think,
|
||||
todoWriteToolSchemaData.parametersJsonSchema as Record<string, unknown>,
|
||||
|
||||
Reference in New Issue
Block a user