Message#

class langworks.messages.Message#

Properties#

role: str#

The role of the agent stating this query, usually ‘user’, ‘system’ or ‘assistant’.

content: Any#

The contents of the message.

type langworks.messages.Thread = list[Message]#

A history of conversational messages.