Function: buildDottedObject()
function buildDottedObject(entries): GatewayJsonObject;
Defined in: src/ai-gateway/nested-values.ts:198
Build a new JSON object from typed dotted-path entries.
Parameters
| Parameter | Type |
|---|---|
entries | readonly GatewayDottedValueEntry[] |
Returns
Example
import { buildDottedObject } from '@cdot65/prisma-airs-sdk';
const config = buildDottedObject([
{ path: 'retry.attempts', value: 3 },
{ path: 'targets[0].provider', value: '@vertex-primary' },
]);
// { retry: { attempts: 3 }, targets: [{ provider: '@vertex-primary' }] }