Skip to content

Function: setPath()

setPath(root, path, value): void

Defined in: packages/aiui-oracle/src/params.ts:400

Write a dotted path, creating objects on the way down.

undefined DELETES the key rather than storing it: the vendor's default and an explicit value are different states, and a session object carrying threshold: undefined would serialize the key away anyway — so deleting is the honest representation of "unset". null is left alone, because for turn_detection and noise_reduction null is a meaningful value.

Parameters

root

Record<string, unknown>

path

string

value

unknown

Returns

void