def to_string()

in utils.py [0:0]


def to_string(conversation):
  convo_parts = [f"|{message['role'].upper()}|: {message['content']}" for message in conversation]
  convo_str = "\n".join(convo_parts)
  return convo_str