artkit.model.llm.history.AssistantMessage#

class artkit.model.llm.history.AssistantMessage(text)[source]#

A chat message from an assistant.

Bases:

ChatMessage

Metaclasses:

ABCMeta

Parameters:

text (str) – the content of the message

Method summary

to_expression

Render this object as an expression.

Attribute summary

ROLE

The name of the agent role, returned by role.

role

[see superclass]

text

The content of the message.

Definitions

to_expression()#

Render this object as an expression.

Return type:

Expression

Returns:

the expression representing this object

ROLE = 'assistant'#

The name of the agent role, returned by role.

property role: str#

[see superclass]

text: str#

The content of the message.