Skip to content

Function: createGeminiModelBuilder() ​

ts
function createGeminiModelBuilder(
   alias, 
   options?, 
   accountPool?
): GeminiModelBuilder;

Defined in: gemini/src/builders/create-gemini-model-builder.ts:25

Creates an immutable GeminiModelBuilder for a Google Gemini model configuration.

Validates that both alias and the resolved modelId (options?.id ?? alias) are non-empty strings and compiles to a frozen passive GeminiModelNode without performing network or environment I/O.

Parameters ​

ParameterTypeDescription
aliasstringLogical alias of the model.
options?GeminiModelOptionsOptional provider model identifier and effort level.
accountPool?PoolNode<GeminiAccountSeatNode>Optional compiled pool of Gemini account seats.

Returns ​

GeminiModelBuilder

Immutable builder compiling to GeminiModelNode.

Throws ​

If alias or options.id is an empty or whitespace-only string.

Released under the MIT License.