GoogleLanguageModel.ts overview
Since v1.0.0
Exports Grouped by Category
AiModel
model
Signature
declare const model: (
model: (string & {}) | Model,
config?: Omit<Config.Service, "model">
) => AiModel.Model<"google", LanguageModel.LanguageModel, GoogleClient>
Since v1.0.0
Constructors
make
Signature
declare const make: (options: {
readonly model: (string & {}) | Model
readonly config?: Omit<Config.Service, "model">
}) => Effect.Effect<LanguageModel.Service, never, GoogleClient>
Since v1.0.0
Context
Config (class)
Signature
declare class Config
Since v1.0.0
Layers
layer
Signature
declare const layer: (options: {
readonly model: (string & {}) | Model
readonly config?: Omit<Config.Service, "model">
}) => Layer.Layer<LanguageModel.LanguageModel, never, GoogleClient>
Since v1.0.0
Models
Model (type alias)
Signature
type Model = string
Since v1.0.0
utils
Config (namespace)
Since v1.0.0
Service (interface)
Signature
export interface Service
extends Simplify<
Partial<
Omit<typeof Generated.GenerateContentRequest.Encoded, "contents" | "tools" | "toolConfig" | "systemInstruction">
>
> {
readonly toolConfig: Partial<{
readonly functionCallingConfig: Omit<typeof Generated.FunctionCallingConfig.Encoded, "mode">
}>
}
Since v1.0.0