Skip to content
Effect 4.0 is here. One ecosystem. Zero dependencies.

GoogleLanguageModel

6 exports Since v1.0.0 Source

AiModel

Since v1.0.0

Signature

declare function model(model: string | string & {}, config?: Omit<Service, "model">): Model<"google", LanguageModel, GoogleClient>

Constructors

Since v1.0.0

Signature

declare const make: (...args: [options: {
readonly config?: Omit<Service, "model">;
readonly model: string | string & {};
}]) => Effect<any, unknown, unknown>

Context

Since v1.0.0

Signature

declare class Config extends any {
constructor();
static readonly getOrUndefined: Effect<Service | undefined>;
}

Layers

Since v1.0.0

Signature

declare function layer(options: {
readonly config?: Omit<Service, "model">;
readonly model: string | string & {};
}): Layer<LanguageModel, never, GoogleClient>

Models

Model

type
Since v1.0.0

Signature

type Model = string

Other

Since v1.0.0