Function: withReferenceState()¶
withReferenceState(
state,objectReferences):Record\<string,unknown>
Defined in: src/references/serialize.ts:111
Merge object references into an existing AG-UI state under
REFERENCES_STATE_KEY. Returns a new object; empty input clears the key
so a prior turn's references never leak into the next run.
Parameters¶
state¶
Record\<string, unknown> | undefined
objectReferences¶
Returns¶
Record\<string, unknown>