MCPcopy Create free account

hub / github.com/disler/always-on-ai-assistant / functions

Functions105 in github.com/disler/always-on-ai-assistant

↓ 10 callersFunctionget_connection
Return a connection to the SQLite database.
commands/template.py:23
↓ 9 callersFunctionget_config
Load a field from the YAML config file using dot notation path. Args: dot_path_key: The key path to look up in the config (e.g. 'par
modules/assistant_config.py:8
↓ 5 callersFunctionexecute
Execute shell code and return the output as a string.
modules/execute_python.py:12
↓ 4 callersMethodthink_speak
(self, text: str)
modules/typer_agent.py:194
↓ 3 callersFunctionexecute_uv_python
Execute the tests and return the output as a string.
modules/execute_python.py:5
↓ 3 callersFunctionprefix_prompt
Send a prompt to DeepSeek with a prefix constraint and get 'prefix + response' Args: prompt: The user prompt to send prefix:
modules/deepseek.py:64
↓ 2 callersFunctionbuild_file_name_session
(name: str, session_id: str)
modules/utils.py:16
↓ 2 callersFunctioncaesar_cipher_encrypt
A simple Caesar cipher encryption function.
commands/template.py:124
↓ 2 callersFunctioncreate_session_logger_id
()
modules/utils.py:50
↓ 2 callersMethodprocess_text
Process text input and handle based on execution mode
modules/typer_agent.py:122
↓ 2 callersFunctionsetup_logging
Configure logging with session-specific log file and stdout
modules/utils.py:60
↓ 2 callersMethodspeak
(self, text: str)
modules/typer_agent.py:216
↓ 1 callersMethod_validate_markdown
Validate that file is markdown and has expected structure
modules/typer_agent.py:27
↓ 1 callersMethodbuild_agent
Create and configure a new TyperAssistant instance
modules/typer_agent.py:45
↓ 1 callersMethodbuild_prompt
Build and format the prompt template with current state
modules/typer_agent.py:62
↓ 1 callersFunctioncaesar_cipher_decrypt
A simple Caesar cipher decryption function.
commands/template.py:137
↓ 1 callersFunctionchat
Start a chat session with the plain assistant using speech input
main_base_assistant.py:18
↓ 1 callersFunctioncreate_db_if_not_exists
Create tables if they do not exist and seed them with mock data.
commands/template.py:28
↓ 1 callersFunctionfill_in_the_middle_prompt
Send a fill-in-the-middle prompt to DeepSeek and get response. The max tokens of FIM completion is 4K. example: prompt="def fib
modules/deepseek.py:28
↓ 1 callersFunctionjson_prompt
Send a prompt to DeepSeek and get JSON response. Args: prompt: The user prompt to send system_prompt: Optional system prompt
modules/deepseek.py:44
↓ 1 callersFunctionmain
()
commands/template.py:818
↓ 1 callersFunctionprefix_then_stop_prompt
Send a prompt to DeepSeek with a prefix and suffix constraint and get 'response' only that will have started with prefix and ended with suffix
modules/deepseek.py:90
↓ 1 callersFunctionprompt
Send a prompt to DeepSeek and get detailed benchmarking response.
modules/deepseek.py:18
↓ 1 callersMethodspeak
Convert text to speech using configured engine
modules/base_assistant.py:81
Method__init__
(self, logger: logging.Logger, session_id: str)
modules/typer_agent.py:19
Method__init__
(self, logger: logging.Logger, session_id: str)
modules/base_assistant.py:16
Functionawaken
Run STT interface that processes speech into typer commands
main_typer_assistant.py:19
Functionbackup_data
Back up data to a specified directory, optionally performing a full backup.
commands/template_empty.py:72
Functionbackup_data
Back up data to a specified directory, optionally performing a full backup.
commands/template.py:363
Functionbuild_file_path
(name: str)
modules/utils.py:10
Functioncheck_version
Checks the version of a local path against a remote source, optionally showing details.
commands/template_empty.py:309
Functioncompare_files
Compares two files, optionally showing only differences.
commands/template_empty.py:182
Functioncompare_files
Compares two files, optionally showing only differences.
commands/template.py:541
Functionconversational_prompt
Send a conversational prompt to Ollama with message history. Args: messages: List of message dicts with 'role' and 'content' keys
modules/ollama.py:5
Functionconversational_prompt
Send a conversational prompt to DeepSeek with message history. Args: messages: List of message dicts with 'role' and 'content' keys
modules/deepseek.py:116
Functioncreate_user
Creates a new user with an optional role.
commands/template_empty.py:39
Functioncreate_user
Creates a new user with an optional role.
commands/template.py:262
Functioncurrent_date_str
()
modules/utils.py:38
Functioncurrent_date_time_str
()
modules/utils.py:34
Functiondecrypt_data
Decrypts an encrypted file using a key.
commands/template_empty.py:208
Functiondecrypt_data
Decrypts an encrypted file using a key (ignored in this mock Caesar cipher).
commands/template.py:612
Functiondefault_serializer
(obj)
modules/utils.py:23
Functiondelete_user
Deletes a user by ID.
commands/template_empty.py:50
Functiondelete_user
Deletes a user by ID.
commands/template.py:287
Functiondict_item_diff_by_set
( previous_list: List[Dict], current_list: List[Dict], set_key: str )
modules/utils.py:42
Functiondownload_file
Downloads a file from a URL with a specified number of retries.
commands/template_empty.py:121
Functiondownload_file
Downloads a file from a URL with a specified number of retries.
commands/template.py:468
Functionencrypt_data
Encrypts data using a specified algorithm and writes to an output file.
commands/template_empty.py:196
Functionencrypt_data
Encrypts data using a specified algorithm (mocked by Caesar cipher here).
commands/template.py:581
Functionfilter_records
Filters records from a data source using a query, limiting the number of results.
commands/template_empty.py:133
Functionfilter_records
Filters records from a data source using a query, limiting the number of results. Example usage: filter_records table_name --query "admin" --
commands/template.py:490
Methodformat
(self, record)
modules/utils.py:81
Functiongenerate_report
Generates a report of a specified type to a given file.
commands/template_empty.py:61
Functiongenerate_report
Generates a report from an existing database table and saves it to a file.
commands/template.py:318
Functionget_config_file
Get the config file as a string.
modules/assistant_config.py:38
Functionhealth_check
Checks the health of a service within a specified timeout, optionally sending alerts.
commands/template_empty.py:260
Functioninspect_task
Inspects a specific task by ID, optionally in JSON format.
commands/template_empty.py:363
Functioninspect_task
Inspects a specific task by ID, optionally in JSON format.
commands/template.py:776
Functionlist_files
Lists files in a directory. Optionally show hidden files.
commands/template_empty.py:28
Functionlist_files
Lists files in a directory. Optionally show hidden files.
commands/template.py:194
Functionlist_tasks
Lists tasks, optionally including completed tasks or sorting by a different field.
commands/template_empty.py:348
Functionlist_tasks
Lists tasks, optionally including completed tasks or sorting by a different field.
commands/template.py:734
Functionlist_users
Lists all users, optionally filtered by role and sorted by specified field.
commands/template.py:219
Functionmigrate_database
Migrates data from an old database to a new one, optionally doing a dry run.
commands/template_empty.py:246
Functionmigrate_database
Migrates data from an old database to a new one, optionally doing a dry run.
commands/template.py:643
Functionparse_markdown_backticks
(str)
modules/utils.py:109
Functionping
()
main_base_assistant.py:13
Functionping
()
main_typer_assistant.py:14
Functionping_server
Pings the server, optionally waiting for a response.
commands/template_empty.py:8
Functionping_server
Pings the server, optionally waiting for a response.
commands/template.py:146
Functionprocess_text
Process user speech input
main_base_assistant.py:36
Functionprocess_text
(text)
main_typer_assistant.py:78
Methodprocess_text
Process text input and generate response
modules/base_assistant.py:44
Functionpublish_update
Publishes an update to a specified release channel with optional notes.
commands/template_empty.py:297
Functionqueue_task
Queues a task with a specified priority and optional delay.
commands/template_empty.py:323
Functionqueue_task
Queues a task with a specified priority and optional delay.
commands/template.py:673
Functionremove_task
Removes a queued task by ID, optionally forcing removal without confirmation.
commands/template_empty.py:337
Functionremove_task
Removes a queued task by ID, optionally forcing removal without confirmation.
commands/template.py:703
Functionrestore_data
Restores data from a backup file.
commands/template_empty.py:83
Functionrestore_data
Restores data from a backup file.
commands/template.py:389
Functionsearch_logs
Searches for a keyword in a log file, optionally using case-sensitive mode.
commands/template_empty.py:272
Functionshow_config
Shows the current configuration.
commands/template_empty.py:18
Functionshow_config
Shows the current configuration from modules/assistant_config.py.
commands/template.py:165
Functionsimulate_run
Simulates a scenario for a given number of cycles, optionally showing debug output.
commands/template_empty.py:170
Functionstats_by_date
Shows statistics for a specific date, optionally displaying raw data.
commands/template_empty.py:286
Functionsummarize_logs
Summarizes log data from a specified path, limiting lines.
commands/template_empty.py:96
Functionsummarize_logs
Summarizes log data from a specified path, limiting lines.
commands/template.py:418
Functionsync_remotes
Syncs with a remote repository, optionally forcing the operation.
commands/template_empty.py:157
Functiontest_execute_basic_command
Test basic command execution
tests/execute_python_test.py:7
Functiontest_execute_error_command
Test command execution with error
tests/execute_python_test.py:14
Functiontest_execute_uv_python_error
Test uv python execution with error
tests/execute_python_test.py:47
Functiontest_execute_uv_python_with_args
Test uv python execution with arguments
tests/execute_python_test.py:31
Functiontest_execute_uv_python_with_file
Test uv python execution with a temporary python file
tests/execute_python_test.py:20
Functiontest_fill_in_the_middle_prompt
Test fill-in-the-middle prompt with an SQL query example
tests/deepseek_test.py:18
Functiontest_json_prompt
Test JSON response format
tests/deepseek_test.py:43
Functiontest_mock_data_type
()
tests/data_types_test.py:4
Functiontest_prefix_prompt
Test prefix-constrained prompt
tests/deepseek_test.py:51
Functiontest_prefix_suffix_prompt
Test prefix and suffix constrained prompt
tests/deepseek_test.py:66
Functiontest_prompt
Test basic prompt functionality
tests/deepseek_test.py:11
Functionto_json_file_pretty
(name: str, content: Union[Dict, List])
modules/utils.py:22
next →1–100 of 105, ranked by callers