Skip to main content Link Search Menu Expand Document (external link)

GoogleAiClient.ts overview

Since v1.0.0


Exports Grouped by Category


Constructors

make

Signature

declare const make: (options: {
  readonly apiKey?: Redacted.Redacted | undefined
  readonly apiUrl?: string | undefined
  readonly transformClient?: ((client: HttpClient.HttpClient) => HttpClient.HttpClient) | undefined
}) => Effect.Effect<GoogleAiClient.Service, never, HttpClient.HttpClient | Scope.Scope>

Source

Since v1.0.0

Context

GoogleAiClient (class)

Signature

declare class GoogleAiClient

Source

Since v1.0.0

Layers

layer

Signature

declare const layer: (options: {
  readonly apiKey?: Redacted.Redacted | undefined
  readonly apiUrl?: string | undefined
  readonly transformClient?: ((client: HttpClient.HttpClient) => HttpClient.HttpClient) | undefined
}) => Layer.Layer<GoogleAiClient, never, HttpClient.HttpClient>

Source

Since v1.0.0

layerConfig

Signature

declare const layerConfig: (
  options: Config.Config.Wrap<{
    readonly apiKey?: Redacted.Redacted | undefined
    readonly apiUrl?: string | undefined
    readonly transformClient?: ((client: HttpClient.HttpClient) => HttpClient.HttpClient) | undefined
  }>
) => Layer.Layer<GoogleAiClient, ConfigError, HttpClient.HttpClient>

Source

Since v1.0.0

utils

GoogleAiClient (namespace)

Source

Since v1.0.0

Service (interface)

Signature

export interface Service {
  readonly client: Generated.Client
  readonly stream: (
    request: typeof Generated.GenerateContentRequest.Encoded
  ) => Stream.Stream<AiResponse.AiResponse, HttpClientError | ParseError>
  readonly streamRequest: (
    request: typeof Generated.GenerateContentRequest.Encoded
  ) => Stream.Stream<typeof Generated.GenerateContentResponse.Type, HttpClientError | ParseError>
}

Source

Since v1.0.0