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()
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
| Parameter | Type | Description |
|---|---|---|
envOrKey | string | EnvRef | Symbolic 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()
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
| Parameter | Type | Description |
|---|---|---|
path | string | Path 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()
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
Frozen passive AST node representing the Gemini account seat.
Overrides
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
id | readonly | string | Unique identifier of the Gemini account seat within capacity pools. | gemini/src/builders/gemini-account-seat-builder.ts:11 |