Skip to content

Function: createClaudeModelBuilder() ​

ts
function createClaudeModelBuilder(
   alias, 
   options?, 
   accountPool?
): ClaudeModelBuilder;

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

Creates an immutable ClaudeModelBuilder for an Anthropic Claude model configuration.

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

Parameters ​

ParameterTypeDescription
aliasstringLogical alias of the model.
options?ClaudeModelOptionsOptional provider model identifier and effort level.
accountPool?PoolNode<ClaudeAccountSeatNode>Optional compiled pool of Claude account seats.

Returns ​

ClaudeModelBuilder

Immutable builder compiling to ClaudeModelNode.

Throws ​

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

Released under the MIT License.