MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / constructor

Method constructor

test/core/bridge_coordinator.test.ts:193–313  ·  view source on GitHub ↗
(kind: string, options: { replyPrefix?: string; models?: any[] } = {})

Source from the content-addressed store, hash-verified

191 threadGoals: Map<any, any>;
192
193 constructor(kind: string, options: { replyPrefix?: string; models?: any[] } = {}) {
194 const { replyPrefix = '', models = null } = options;
195 this.kind = kind;
196 this.displayName = kind;
197 this.replyPrefix = replyPrefix;
198 this.models = models ?? [
199 {
200 id: 'gpt-5.4',
201 model: 'gpt-5.4',
202 displayName: 'GPT-5.4',
203 description: 'Latest frontier agentic coding model.',
204 isDefault: true,
205 supportedReasoningEfforts: ['low', 'medium', 'high', 'xhigh'],
206 defaultReasoningEffort: 'medium',
207 },
208 {
209 id: 'gpt-5.2-codex',
210 model: 'gpt-5.2-codex',
211 displayName: 'GPT-5.2-Codex',
212 description: 'Frontier codex model.',
213 isDefault: false,
214 supportedReasoningEfforts: ['low', 'medium', 'high', 'xhigh'],
215 defaultReasoningEffort: 'medium',
216 },
217 {
218 id: 'gpt-5.1-codex-max',
219 model: 'gpt-5.1-codex-max',
220 displayName: 'GPT-5.1-Codex-Max',
221 description: 'Codex-optimized flagship for deep and fast reasoning.',
222 isDefault: false,
223 supportedReasoningEfforts: ['low', 'medium', 'high', 'xhigh'],
224 defaultReasoningEffort: 'high',
225 },
226 {
227 id: 'gpt-5.4-mini',
228 model: 'gpt-5.4-mini',
229 displayName: 'GPT-5.4-Mini',
230 description: 'Smaller frontier coding model.',
231 isDefault: false,
232 supportedReasoningEfforts: ['low', 'medium', 'high', 'xhigh'],
233 defaultReasoningEffort: 'medium',
234 },
235 {
236 id: 'gpt-5.3-codex',
237 model: 'gpt-5.3-codex',
238 displayName: 'GPT-5.3-Codex',
239 description: 'Frontier Codex-optimized codex model.',
240 isDefault: false,
241 supportedReasoningEfforts: ['low', 'medium', 'high', 'xhigh'],
242 defaultReasoningEffort: 'medium',
243 },
244 {
245 id: 'gpt-5.3-codex-spark',
246 model: 'gpt-5.3-codex-spark',
247 displayName: 'GPT-5.3-Codex-Spark',
248 description: 'Ultra-fast coding model.',
249 isDefault: false,
250 supportedReasoningEfforts: ['low', 'medium', 'high', 'xhigh'],

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected