Type of message that is spoken by the human.
| 25 | |
| 26 | |
| 27 | class UserMessage(BaseMessage): |
| 28 | """Type of message that is spoken by the human.""" |
| 29 | |
| 30 | example: bool = False |
| 31 | |
| 32 | @property |
| 33 | def type(self) -> str: |
| 34 | """Type of the message, used for serialization.""" |
| 35 | return "user" |
| 36 | |
| 37 | |
| 38 | class AIMessage(BaseMessage): |
no outgoing calls