跳到主要内容

openhands.events.utils

get_pairs_from_events

def get_pairs_from_events(
events: list[Event]) -> list[tuple[Action, Observation]]

Return the history as a list of tuples (action, observation).