Skip to content
Effect Days 2026 Get your ticket

GoogleLanguageModel

6 exports Added in v1.0.0 Source

AiModel

model

Added in v1.0.0 Source

Signature

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

Constructors

make

Added in v1.0.0 Source

Signature

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

Context

Config

Added in v1.0.0 Source

Signature

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

Layers

layer

Added in v1.0.0 Source

Signature

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

Models

Model type

Added in v1.0.0 Source

Signature

type Model = string

Other

Config

Added in v1.0.0 Source