Skip to content

Interface: GeminiAccountSeatBuilder ​

Defined in: gemini/src/builders/gemini-account-seat-builder.ts:9

Fluent builder for constructing a passive GeminiAccountSeatNode (type: 'gemini:account-seat').

Configures either a Google Gemini API key seat resolved late via P.env(key) or a CLI/ADC seat backed by configDir without import-time I/O.

Extends ​

Methods ​

apiKey() ​

ts
apiKey(envOrKey): GeminiAccountSeatBuilder;

Defined in: gemini/src/builders/gemini-account-seat-builder.ts:37

Binds a literal API key or symbolic P.env(key) reference for Gemini API authentication.

Returns a new immutable builder instance that resolves the key only at leaf turn invocation time.

Parameters ​

ParameterTypeDescription
envOrKeystring | EnvRefSymbolic EnvRef or literal API key string.

Returns ​

GeminiAccountSeatBuilder

New immutable account seat builder with apiKey configured.

Throws ​

If envOrKey is an empty or whitespace-only string.


configDir() ​

ts
configDir(path): GeminiAccountSeatBuilder;

Defined in: gemini/src/builders/gemini-account-seat-builder.ts:24

Binds a filesystem path to a Gemini CLI/ADC configuration directory containing OAuth credentials.

Returns a new immutable builder instance with configDir set while leaving the receiver unchanged.

Parameters ​

ParameterTypeDescription
pathstringPath to the Gemini CLI/ADC directory (such as '~/.gemini-a').

Returns ​

GeminiAccountSeatBuilder

New immutable account seat builder with configDir configured.

Throws ​

If path is an empty or whitespace-only string.


toAST() ​

ts
toAST(): GeminiAccountSeatNode;

Defined in: gemini/src/builders/gemini-account-seat-builder.ts:46

Compiles the builder configuration into a deeply frozen passive GeminiAccountSeatNode AST node.

Preserves a monomorphic property shape with type: 'gemini:account-seat' and zero runtime methods.

Returns ​

GeminiAccountSeatNode

Frozen passive AST node representing the Gemini account seat.

Overrides ​

AstBuilder.toAST

Properties ​

PropertyModifierTypeDescriptionDefined in
idreadonlystringUnique identifier of the Gemini account seat within capacity pools.gemini/src/builders/gemini-account-seat-builder.ts:11

Released under the MIT License.