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
| Parameter | Type | Description |
|---|---|---|
alias | string | Logical alias of the model. |
options? | GeminiModelOptions | Optional provider model identifier and effort level. |
accountPool? | PoolNode<GeminiAccountSeatNode> | Optional compiled pool of Gemini account seats. |
Returns
Immutable builder compiling to GeminiModelNode.
Throws
If alias or options.id is an empty or whitespace-only string.