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

Method constructor

packages/core/src/core/anusChat.ts:123–130  ·  view source on GitHub ↗
(
    private readonly config: Config,
    private readonly contentGenerator: ContentGenerator,
    private readonly generationConfig: GenerateContentConfig = {},
    private history: Content[] = [],
  )

Source from the content-addressed store, hash-verified

121 private sendPromise: Promise<void> = Promise.resolve();
122
123 constructor(
124 private readonly config: Config,
125 private readonly contentGenerator: ContentGenerator,
126 private readonly generationConfig: GenerateContentConfig = {},
127 private history: Content[] = [],
128 ) {
129 validateHistory(history);
130 }
131
132 /**
133 * Handles falling back to Flash model when persistent 429 errors occur for OAuth users.

Callers

nothing calls this directly

Calls 1

validateHistoryFunction · 0.85

Tested by

no test coverage detected