drop_empty()

Drops blank events of one kind.

Usage

Source

drop_empty(
    *,
    only_from,
)

Assistant turns with a tool-use block are not blank; user turns have no such rescue, so consider_tool_use is keyed off only_from. Defined for the single-kind USERS / ASSISTANTS sets.