from backend.params_helpers import TARGET_APP_AGENT_HUB, do_for_target_app


def do(payload, config, plugin_config, inputs):
    """
    Main entry point for:
    - The recipe 'Export Agent Hub Data'
    - The dataset 'Agent Hub Table' (python-connectors/agent-hub-table)
    """
    return do_for_target_app(payload, payload.get("rootModel", config), TARGET_APP_AGENT_HUB)
