SDK Reference · Method
resetRuntimeField
Resets a named Conversation runtime field.
Declaration
public func resetRuntimeField(_ name: String) -> STResultOverview
Requires initialization. The reset operation is delegated to the Conversation manager.
Clearing field values
Reset the same field name used in the corresponding Conversation or Prompt Module expression. This is useful when previously supplied content should not be reused.
Parameters
- name — String The name identifying the field or resource.
Usage example
_ = conversation.resetRuntimeField("pm.lasagnaRecipe.TextSegment")
Result handling
This method returns an STResult. Check the returned value for success or failure.