def is_end_of_turn()

in content_api.py [0:0]


def is_end_of_turn(part: ProcessorPart) -> bool:
  """Returns the end of turn event if the part is an end of turn event."""
  if part.role == 'user' and part.get_metadata('end_of_turn'):
    return True
  return False