MCPcopy Create free account
hub / github.com/Effect-TS/effect / OpenRouterConfig

Class OpenRouterConfig

packages/ai/openrouter/src/OpenRouterConfig.ts:28–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 * @since 4.0.0
27 */
28export class OpenRouterConfig extends Context.Service<
29 OpenRouterConfig,
30 OpenRouterConfig.Service
31>()("@effect/ai-openrouter/OpenRouterConfig") {
32 /**
33 * Gets the configured OpenRouter service from the current context when present.
34 *
35 * @since 4.0.0
36 */
37 static readonly getOrUndefined: Effect.Effect<typeof OpenRouterConfig.Service | undefined> = Effect.map(
38 Effect.context<never>(),
39 Context.getOrUndefined(OpenRouterConfig)
40 )
41}
42
43/**
44 * Types associated with the `OpenRouterConfig` context service.

Callers

nothing calls this directly

Calls 2

contextMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected