Skip to content

Function: createPrefixGroupBuilder() ​

ts
function createPrefixGroupBuilder(id, options?): PrefixGroupBuilder;

Defined in: builders/create-prefix-group-builder.ts:21

Creates a fluent PrefixGroupBuilder for P.prefixGroup(id).

Defaults toolsMode to 'role-scoped' and accumulates sharedGrounding, sharedInstructions, and sharedRules in declaration order.

Parameters ​

ParameterTypeDescription
idstringUnique identifier of the prefix group.
options?CreatePrefixGroupBuilderStateOptional internal copy-on-write state.

Returns ​

PrefixGroupBuilder

Frozen PrefixGroupBuilder instance.

Released under the MIT License.