mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-01 05:00:46 +00:00
feat: Implement CLI and model memory management (#371)
Co-authored-by: N. Taylor Mullen <ntaylormullen@google.com>
This commit is contained in:
parent
d9bd2b0e14
commit
1bdec55fe1
11 changed files with 940 additions and 42 deletions
|
|
@ -20,6 +20,7 @@ import { WriteFileTool } from '../tools/write-file.js';
|
|||
import { WebFetchTool } from '../tools/web-fetch.js';
|
||||
import { ReadManyFilesTool } from '../tools/read-many-files.js';
|
||||
import { BaseTool, ToolResult } from '../tools/tools.js';
|
||||
import { MemoryTool } from '../tools/memoryTool.js';
|
||||
import { StdioServerParameters } from '@modelcontextprotocol/sdk/client/stdio.js';
|
||||
|
||||
export class Config {
|
||||
|
|
@ -188,9 +189,10 @@ function createToolRegistry(config: Config): ToolRegistry {
|
|||
new GlobTool(targetDir),
|
||||
new EditTool(config),
|
||||
new WriteFileTool(targetDir),
|
||||
new WebFetchTool(), // Note: WebFetchTool takes no arguments
|
||||
new WebFetchTool(),
|
||||
new ReadManyFilesTool(targetDir),
|
||||
new ShellTool(config),
|
||||
new MemoryTool(),
|
||||
];
|
||||
|
||||
for (const tool of tools) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue