MCPcopy
hub / github.com/Effect-TS/effect / layer

Function layer

packages/ai/amazon-bedrock/src/AmazonBedrockClient.ts:202–211  ·  view source on GitHub ↗
(options: {
  readonly apiUrl?: string | undefined
  readonly accessKeyId: string
  readonly secretAccessKey: Redacted.Redacted<string>
  readonly sessionToken?: Redacted.Redacted<string> | undefined
  readonly region?: string | undefined
  readonly transformClient?: (
    client: HttpClient.HttpClient
  ) => HttpClient.HttpClient
})

Source from the content-addressed store, hash-verified

200 * @category layers
201 */
202export const layer = (options: {
203 readonly apiUrl?: string | undefined
204 readonly accessKeyId: string
205 readonly secretAccessKey: Redacted.Redacted<string>
206 readonly sessionToken?: Redacted.Redacted<string> | undefined
207 readonly region?: string | undefined
208 readonly transformClient?: (
209 client: HttpClient.HttpClient
210 ) => HttpClient.HttpClient
211}): Layer.Layer<AmazonBedrockClient, never, HttpClient.HttpClient> => Layer.scoped(AmazonBedrockClient, make(options))
212
213/**
214 * @since 1.0.0

Callers

nothing calls this directly

Calls 1

makeFunction · 0.70

Tested by

no test coverage detected