Chat

D-Bus structures that defines and powers our chat.

class AttachmentInput(contents='', mimetype='')[source]

Represents an attachment input

Constructor of the class

Parameters:
  • contents (Str) – The contentsz of an attachment

  • mimetype (Str) – The mimetype of the attachment

_abc_impl = <_abc._abc_data object>
property contents: str

Property for internal contents attribute.

Returns:

Value of contents

Return type:

Str

property mimetype: str

Property for internal mimetype attribute.

Returns:

Value of mimetype

Return type:

Str

class ChatEntry(id='', name='', description='', created_at='', updated_at='', deleted_at='')[source]

Represents a single chat item.

Construct of the class

Parameters:
  • id (Str) – The unique identifier for the chat

  • name (Str) – The name of the chat

  • description (Str) – The description of the chat

  • created_at (Str) – Timestamp to identify when it was created

  • updated_at (Str) – Timestamp to identify when it was updated

  • deleted_at (Str) – Timestamp to identify when it was deleted

_abc_impl = <_abc._abc_data object>
property created_at: str

Property for internal created_at attribute.

Returns:

Value of created_at

Return type:

Str

property deleted_at: str

Property for internal deleted_at attribute.

Returns:

Value of deleted_at

Return type:

Str

property description: str

Property for internal description attribute.

Returns:

Value of description

Return type:

Str

property id: str

Property for internal id attribute.

Returns:

Value of id

Return type:

Str

property name: str

Property for internal name attribute.

Returns:

Value of name

Return type:

Str

property updated_at: str

Property for internal updated_at attribute.

Returns:

Value of updated_at

Return type:

Str

class ChatList(chats=None)[source]

Represents a list of chats

Constructor of the class

Parameters:

chats (Optional[List[ChatEntry]], optional) – List of chat entries to hold.

_abc_impl = <_abc._abc_data object>
property chats: List[ChatEntry]

Property for internal chats attribute.

Returns:

Value of chats

Return type:

Str

class Question(message='', stdin=None, attachment=None, terminal=None, systeminfo=None)[source]

Represents the input message to be sent to the backend

Constructor of the class.

Parameters:
  • message (Str) – The user message

  • stdin (Optional[StdinInput], optional) – The stdin object if any

  • attachment (Optional[AttachmentInput], optional) – The attachment input if any

  • terminal (Optional[TerminalInput], optional) – The terminal input if any

  • systeminfo (Optional[SystemInfo], optional) – The system info if any

_abc_impl = <_abc._abc_data object>
property attachment: AttachmentInput

Property for internal attachment_contents attribute.

Returns:

Value of attachment_contents

Return type:

Str

property message: str

Property for internal message attribute.

Returns:

Value of message

Return type:

Str

property stdin: StdinInput

Property for internal stdin attribute.

Returns:

Value of stdin

Return type:

Str

property systeminfo: SystemInfo

Property for internal systeminfo attribute.

Returns:

Value of systeminfo

Return type:

Str

property terminal: TerminalInput

Property for internal terminal_contents attribute.

Returns:

Value of terminal

Return type:

Str

class Response(message='')[source]

Base class for message input and output

Constructor of class.

Parameters:

message (Str) – The message as response from llm.

_abc_impl = <_abc._abc_data object>
property message: str

Property for internal message attribute.

Returns:

Value of message

Return type:

Str

class StdinInput(stdin='')[source]

Represents an stdin input

Constructor of the class

Parameters:

stdin (Str) – Stdin input if any

_abc_impl = <_abc._abc_data object>
property stdin: str

Property for internal stdin attribute.

Returns:

Value of stdin

Return type:

Str

class SystemInfo(os='', version='', arch='', id='')[source]

Represents system information

Constructor of the class

Parameters:
  • os (Str) – The operating system

  • version (Str) – The version of the operating system

  • arch (Str) – The architecture of the operating system

  • id (Str) – The unique identifier of the operating system

_abc_impl = <_abc._abc_data object>
property arch: str

Property for internal arch attribute.

Returns:

Value of arch

Return type:

Str

property id: str

Property for internal id attribute.

Returns:

Value of id

Return type:

Str

property os: str

Property for internal os attribute.

Returns:

Value of os

Return type:

Str

property version: str

Property for internal version attribute.

Returns:

Value of version

Return type:

Str

class TerminalInput(output='')[source]

Represents an terminal input

Constructor of the class

Parameters:

output (Str) – Output from terminal, if any

_abc_impl = <_abc._abc_data object>
property output: str

Property for internal stdin attribute.

Returns:

Value of stdin

Return type:

Str