跳到主要内容

openhands.core.config.config_utils

get_field_info

def get_field_info(f)

Extract information about a dataclass field: type, optional, and default.

Arguments:

  • f - The field to extract information from.

  • Returns - A dict with the field's type, whether it's optional, and its default value.