Dynamic context scripting API
API reference for IConvaiDynamicContext — all seven method signatures, default parameters, pre-conversation queueing behavior, and Apply() caveats.
IConvaiDynamicContext context = _character.DynamicContext;Method reference
SetState
SetStatevoid SetState(string name, string value,
ConvaiContextReactionMode reaction = ConvaiContextReactionMode.SyncOnly)Parameter
Type
Default
Description
Condition
Messages sent
SetStates
SetStatesParameter
Type
Default
Description
Condition
Messages sent
AddEvent
AddEventParameter
Type
Default
Description
RemoveState
RemoveStateParameter
Type
Description
Reset
ResetTryGetStateValue
TryGetStateValueParameter
Type
Description
Apply
ApplyParameter
Type
Description
Parameter
Type
Default
Description
Enum reference
ConvaiContextReactionMode
ConvaiContextReactionModeValue
Description
ConvaiContextUpdateMode
ConvaiContextUpdateModeValue
Description
Default reaction mode reference
Method
Default reaction
Next steps
Sync behavior and timingCommand component referenceTroubleshoot dynamic contextLast updated
Was this helpful?