Models¶
AssistantMessage¶
Returned by query() and get_last_response(). Every response contains at least one of text or image — never both None.
hermex.models.AssistantMessage
dataclass
¶
Result returned by query() and get_last_response().
State¶
Represents the current UI state of the chatbot. Returned by get_state() and used internally by wait_until_idle().
hermex.models.State
¶
Bases: str, Enum
Current UI state of the chatbot interface.
IDLE = 'idle'
class-attribute
instance-attribute
¶
Ready and waiting for input.
GENERATING = 'generating'
class-attribute
instance-attribute
¶
Model is actively producing a response.
TYPING = 'typing'
class-attribute
instance-attribute
¶
Input box has content that has not been submitted yet.
UPLOADING = 'uploading'
class-attribute
instance-attribute
¶
A file upload is in progress.