MCPcopy Create free account

hub / github.com/Seitk/gpt-assistant / functions

Functions32 in github.com/Seitk/gpt-assistant

↓ 5 callersMethodread
Returns the current state of a device with the given entity_id.
gpt_assistant/home_assistant/langchain_tool.py:49
↓ 3 callersMethodvalidate_device
Validates whether a device with the given entity_id exists in the list of devices retrieved from Home Assistant API.
gpt_assistant/home_assistant/langchain_tool.py:20
↓ 2 callersFunctionget_headers
()
gpt_assistant/home_assistant/api.py:14
↓ 2 callersFunctionget_home_assistant_url
()
gpt_assistant/home_assistant/api.py:6
↓ 2 callersMethodrun
Toggles the state of a device with the given entity_id to the specified status.
gpt_assistant/home_assistant/langchain_tool.py:33
↓ 1 callersMethodcommand_info
Extracts entity_id, device_class, status, and friendly_name from a string of commands in JSON format.
gpt_assistant/home_assistant/langchain_tool.py:10
↓ 1 callersFunctiondownload_file
(file, url)
gpt_assistant/text_to_speech/home_assistant_cloud.py:10
↓ 1 callersFunctionfilter_response
(response)
gpt_assistant/home_assistant/api.py:21
↓ 1 callersFunctiongenerate_response
(prompt)
api.py:15
↓ 1 callersFunctionget_api_token
()
gpt_assistant/home_assistant/api.py:10
↓ 1 callersFunctioninit_agent
()
gpt_assistant/llm_agent.py:14
↓ 1 callersFunctionis_speech_ended
(recognizer, source, audio_data)
gpt_assistant/recording.py:26
↓ 1 callersFunctionmain
()
main.py:43
↓ 1 callersFunctionprocess_audio
(audio)
gpt_assistant/recording.py:19
Methoddiscover
Discovers devices by retrieving the list of devices from Home Assistant API.
gpt_assistant/home_assistant/langchain_tool.py:83
Functionexecute
Main execution flow of the assistant
main.py:15
Functionexecute_agent
(prompt: str)
gpt_assistant/llm_agent.py:55
Functiongenerate_response
Generate a chat response with ChatGPT
gpt_assistant/chat/response.py:5
Functionget_devices
()
gpt_assistant/home_assistant/api.py:52
Functionlisten_for_speech
()
gpt_assistant/recording.py:60
Functionlisten_for_wake_word
(callback)
gpt_assistant/wake_word.py:36
Methodon_post
Handle POST requests.
api.py:35
Functionplay
(filename)
gpt_assistant/sound.py:6
Methodread_sensor
Returns the current state of a sensor with the given entity_id.
gpt_assistant/home_assistant/langchain_tool.py:66
Functiontext_to_speech
Convert text to speech using Google TTS.
gpt_assistant/text_to_speech/gtts.py:7
Functiontext_to_speech
Convert text to speech.
gpt_assistant/text_to_speech/tts.py:6
Functiontext_to_speech
Convert text to speech using Home Assistant Cloud TTS.
gpt_assistant/text_to_speech/home_assistant_cloud.py:18
Functiontext_to_speech
Convert text to speech using AWS Polly.
gpt_assistant/text_to_speech/aws_polly.py:10
Functiontoggle_device_state
(entity_id, device_class, state)
gpt_assistant/home_assistant/api.py:68
Functiontranscribe
Transcribe audio into text.
gpt_assistant/speech_to_text/stt.py:5
Functiontranscribe_audio
Transcribe audio using local Whisper
gpt_assistant/speech_to_text/whisper_local.py:5
Functiontranscribe_audio
Transcribe audio using OpenAI's Whisper
gpt_assistant/speech_to_text/openai.py:5