Skip to content

Interface: GeminiNamespace ​

Defined in: gemini/src/builders/gemini-namespace-contract.ts:11

Builder namespace contract exported as gemini by @paraharness/gemini.

Provides entrypoints for declaring passive GeminiAccountSeatNode and GeminiModelNode AST descriptors without import-time or declaration-time side effects.

Methods ​

account() ​

ts
account(id): GeminiAccountSeatBuilder;

Defined in: gemini/src/builders/gemini-namespace-contract.ts:23

Declares a Google Gemini API key or CLI/ADC account seat (type: 'gemini:account-seat').

Supports .apiKey(envRef) for API key seats and .configDir(path) for CLI/ADC seats.

Parameters ​

ParameterTypeDescription
idstringUnique identifier for the Gemini account seat.

Returns ​

GeminiAccountSeatBuilder

Fluent builder for the Gemini account seat.

Throws ​

If id is an empty or whitespace-only string.


cliAccount() ​

ts
cliAccount(id): GeminiAccountSeatBuilder;

Defined in: gemini/src/builders/gemini-namespace-contract.ts:36

Declares a Google Gemini CLI/ADC subscription seat (type: 'gemini:account-seat').

Alias for account(id) supporting .configDir(path) and .apiKey(envRef).

Parameters ​

ParameterTypeDescription
idstringUnique identifier for the Gemini CLI seat.

Returns ​

GeminiAccountSeatBuilder

Fluent builder for the Gemini account seat.

Throws ​

If id is an empty or whitespace-only string.


model() ​

ts
model(alias, options?): GeminiModelBuilder;

Defined in: gemini/src/builders/gemini-namespace-contract.ts:50

Declares a Google Gemini model configuration (type: 'gemini:model', vendor: 'google').

Supports .pool(pool) / .accountPool(pool) and .effort(level) before compiling to GeminiModelNode.

Parameters ​

ParameterTypeDescription
aliasstringLogical model alias (such as 'pro' or 'gemini-3.1-pro').
options?GeminiModelOptionsOptional Gemini model identifier (defaults to alias) and thinking effort.

Returns ​

GeminiModelBuilder

Fluent builder for the Gemini model node.

Throws ​

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

Released under the MIT License.