Optional
stateSchema: TStateSchema<T>The schema containing the state’s unique name and optional properties to override.
The unique identifier of the state to override, matching IStateSchema<T>["stateName"]
.
The updated state schema as applied by the swarm’s state schema service.
Overrides an existing state schema in the swarm system with a new or partial schema. This function updates the configuration of a state identified by its
stateName
, applying the provided schema properties. It operates outside any existing method or execution contexts to ensure isolation, leveragingbeginContext
for a clean execution scope. Logs the override operation if logging is enabled in the global configuration.