mycroft.clients package

mycroft.clients.mycroft_client module

class mycroft.clients.mycroft_client.MycroftClient(query_manager)[source]

Bases: object

Provides common behavior like sending and receiving queries Examples clients include the voice client and text client

on_response(format_manager)[source]

Called after send_query. Use format_manager to get outputted response

quit()[source]

Should send a signal to stop the main thread of the client

run()[source]

Executes the main thread for the client

send_query(query)[source]

Ask a question and trigger on_response when an answer is found

mycroft.clients.text_client module

class mycroft.clients.text_client.TextClient(*args, **kwargs)[source]

Bases: mycroft.clients.mycroft_client.MycroftClient

Interact with Mycroft via a terminal

on_response(format_manager)[source]
quit()[source]
run()[source]