Skip to content

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().

text = None class-attribute instance-attribute

Plain text content of the response, or markdown if get_markdown=True. None if the response is image-only.

image = None class-attribute instance-attribute

Path to the downloaded image file. None if the response contains no image.


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.