MCPcopy Create free account
hub / github.com/anus-dev/ANUS / setTools

Method setTools

packages/core/src/core/client.ts:206–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

204 }
205
206 async setTools(): Promise<void> {
207 const toolRegistry = await this.config.getToolRegistry();
208 const toolDeclarations = toolRegistry.getFunctionDeclarations();
209 const tools: Tool[] = [{ functionDeclarations: toolDeclarations }];
210 this.getChat().setTools(tools);
211 }
212
213 async resetChat(): Promise<void> {
214 this.chat = await this.startChat();

Callers 1

mcpCommand.tsFile · 0.45

Calls 3

getChatMethod · 0.95
getToolRegistryMethod · 0.80

Tested by

no test coverage detected