MCPcopy Create free account
hub / github.com/AI45Lab/Code / hasRealProviderConfig

Function hasRealProviderConfig

sdk/node/examples/basic/test_runtime_nesting.ts:45–51  ·  view source on GitHub ↗
(configPath: string)

Source from the content-addressed store, hash-verified

43}
44
45function hasRealProviderConfig(configPath: string): boolean {
46 if (process.env.A3S_CONFIG) return true;
47 if (configPath.endsWith('test_config.acl')) {
48 return Boolean(process.env.OPENAI_API_KEY && process.env.OPENAI_BASE_URL);
49 }
50 return true;
51}
52
53// Simulate NestJS-like environment where Tokio runtime already exists
54async function simulateNestedRuntime() {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected