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

Method constructor

packages/core/src/core/client.ts:128–136  ·  view source on GitHub ↗
(private config: Config)

Source from the content-addressed store, hash-verified

126 private forceFullIdeContext = true;
127
128 constructor(private config: Config) {
129 if (config.getProxy()) {
130 setGlobalDispatcher(new ProxyAgent(config.getProxy() as string));
131 }
132
133 this.embeddingModel = config.getEmbeddingModel();
134 this.loopDetector = new LoopDetectionService(config);
135 this.lastPromptId = this.config.getSessionId();
136 }
137
138 async initialize(contentGeneratorConfig: ContentGeneratorConfig) {
139 this.contentGenerator = await createContentGenerator(

Callers

nothing calls this directly

Calls 3

getProxyMethod · 0.80
getEmbeddingModelMethod · 0.80
getSessionIdMethod · 0.80

Tested by

no test coverage detected