agentStateUpdateFromEvent
Reads a render-store update from a custom event: the data of an event named
state_update when that data is an object, and undefined for anything else.
Each key is a path in the render store and each value replaces what is there.
import { agentStateUpdateFromEvent } from '@threadplane/core';Declaration · overload 1
export declare function agentStateUpdateFromEvent(event: AgentSessionCustomEvent): Readonly<Record<string, PlainValue>> | undefined;Parameters
event· requiredAgentSessionCustomEvent
Returns
Readonly<Record<string, PlainValue>> | undefined