owner_id = "random123"
public = True
name = "My thread"
metadata = {"purpose": "demo"}
thread = RoleThread(owner_id=owner_id, public=public, name=name, metadata=metadata)
role_user = "user"
role_assistant = "assistant"
thread.post(role=role_user, msg="Hey there!")
thread.post(role=role_assistant, msg="Hello!")
thread.post(role=role_user, msg="What do you see on this picture?", images=["https://upload.wikimedia.org/wikipedia/commons/c/c7/Tabby_cat_with_blue_eyes-3336579.jpg"])
thread.post(role=role_assistant, msg="I see a cat with blue eyes.")