MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / setToolKaos

Method setToolKaos

packages/agent-core/src/session/index.ts:228–234  ·  view source on GitHub ↗
(kaos: Kaos)

Source from the content-addressed store, hash-verified

226
227
228 setToolKaos(kaos: Kaos) {
229 this.toolKaos = kaos;
230 for (const agent of this.readyAgents()) {
231 agent.setKaos(kaos.withCwd(agent.config.cwd));
232 }
233 this.refreshAgentBuiltinTools();
234 }
235
236 getAdditionalDirs(): readonly string[] {
237 return this.additionalDirs;

Callers 2

init.test.tsFile · 0.80

Calls 4

readyAgentsMethod · 0.95
setKaosMethod · 0.80
withCwdMethod · 0.65

Tested by

no test coverage detected