Aller directement au contenu principal

openhands.events.serialization.utils

remove_fields

def remove_fields(obj, fields: set[str])

Remove fields from an object.

Arguments:

  • obj: The dictionary, or list of dictionaries to remove fields from
  • fields (set[str]): A set of field names to remove from the object