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>
Since v1.0.0
Context
GoogleAiClient (class)
Signature
declare class GoogleAiClient
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>
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>
Since v1.0.0
utils
GoogleAiClient (namespace)
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>
}
Since v1.0.0