Message#

class langworks.messages.Message#

Properties#

content: Any#

The contents of the message.

role: str#

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

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

A history of conversational messages.