Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/disler/always-on-ai-assistant
/ functions
Functions
105 in github.com/disler/always-on-ai-assistant
⨍
Functions
105
◇
Types & classes
4
↓ 10 callers
Function
get_connection
Return a connection to the SQLite database.
commands/template.py:23
↓ 9 callers
Function
get_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 callers
Function
execute
Execute shell code and return the output as a string.
modules/execute_python.py:12
↓ 4 callers
Method
think_speak
(self, text: str)
modules/typer_agent.py:194
↓ 3 callers
Function
execute_uv_python
Execute the tests and return the output as a string.
modules/execute_python.py:5
↓ 3 callers
Function
prefix_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 callers
Function
build_file_name_session
(name: str, session_id: str)
modules/utils.py:16
↓ 2 callers
Function
caesar_cipher_encrypt
A simple Caesar cipher encryption function.
commands/template.py:124
↓ 2 callers
Function
create_session_logger_id
()
modules/utils.py:50
↓ 2 callers
Method
process_text
Process text input and handle based on execution mode
modules/typer_agent.py:122
↓ 2 callers
Function
setup_logging
Configure logging with session-specific log file and stdout
modules/utils.py:60
↓ 2 callers
Method
speak
(self, text: str)
modules/typer_agent.py:216
↓ 1 callers
Method
_validate_markdown
Validate that file is markdown and has expected structure
modules/typer_agent.py:27
↓ 1 callers
Method
build_agent
Create and configure a new TyperAssistant instance
modules/typer_agent.py:45
↓ 1 callers
Method
build_prompt
Build and format the prompt template with current state
modules/typer_agent.py:62
↓ 1 callers
Function
caesar_cipher_decrypt
A simple Caesar cipher decryption function.
commands/template.py:137
↓ 1 callers
Function
chat
Start a chat session with the plain assistant using speech input
main_base_assistant.py:18
↓ 1 callers
Function
create_db_if_not_exists
Create tables if they do not exist and seed them with mock data.
commands/template.py:28
↓ 1 callers
Function
fill_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 callers
Function
json_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 callers
Function
main
()
commands/template.py:818
↓ 1 callers
Function
prefix_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 callers
Function
prompt
Send a prompt to DeepSeek and get detailed benchmarking response.
modules/deepseek.py:18
↓ 1 callers
Method
speak
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
Function
awaken
Run STT interface that processes speech into typer commands
main_typer_assistant.py:19
Function
backup_data
Back up data to a specified directory, optionally performing a full backup.
commands/template_empty.py:72
Function
backup_data
Back up data to a specified directory, optionally performing a full backup.
commands/template.py:363
Function
build_file_path
(name: str)
modules/utils.py:10
Function
check_version
Checks the version of a local path against a remote source, optionally showing details.
commands/template_empty.py:309
Function
compare_files
Compares two files, optionally showing only differences.
commands/template_empty.py:182
Function
compare_files
Compares two files, optionally showing only differences.
commands/template.py:541
Function
conversational_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
Function
conversational_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
Function
create_user
Creates a new user with an optional role.
commands/template_empty.py:39
Function
create_user
Creates a new user with an optional role.
commands/template.py:262
Function
current_date_str
()
modules/utils.py:38
Function
current_date_time_str
()
modules/utils.py:34
Function
decrypt_data
Decrypts an encrypted file using a key.
commands/template_empty.py:208
Function
decrypt_data
Decrypts an encrypted file using a key (ignored in this mock Caesar cipher).
commands/template.py:612
Function
default_serializer
(obj)
modules/utils.py:23
Function
delete_user
Deletes a user by ID.
commands/template_empty.py:50
Function
delete_user
Deletes a user by ID.
commands/template.py:287
Function
dict_item_diff_by_set
( previous_list: List[Dict], current_list: List[Dict], set_key: str )
modules/utils.py:42
Function
download_file
Downloads a file from a URL with a specified number of retries.
commands/template_empty.py:121
Function
download_file
Downloads a file from a URL with a specified number of retries.
commands/template.py:468
Function
encrypt_data
Encrypts data using a specified algorithm and writes to an output file.
commands/template_empty.py:196
Function
encrypt_data
Encrypts data using a specified algorithm (mocked by Caesar cipher here).
commands/template.py:581
Function
filter_records
Filters records from a data source using a query, limiting the number of results.
commands/template_empty.py:133
Function
filter_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
Method
format
(self, record)
modules/utils.py:81
Function
generate_report
Generates a report of a specified type to a given file.
commands/template_empty.py:61
Function
generate_report
Generates a report from an existing database table and saves it to a file.
commands/template.py:318
Function
get_config_file
Get the config file as a string.
modules/assistant_config.py:38
Function
health_check
Checks the health of a service within a specified timeout, optionally sending alerts.
commands/template_empty.py:260
Function
inspect_task
Inspects a specific task by ID, optionally in JSON format.
commands/template_empty.py:363
Function
inspect_task
Inspects a specific task by ID, optionally in JSON format.
commands/template.py:776
Function
list_files
Lists files in a directory. Optionally show hidden files.
commands/template_empty.py:28
Function
list_files
Lists files in a directory. Optionally show hidden files.
commands/template.py:194
Function
list_tasks
Lists tasks, optionally including completed tasks or sorting by a different field.
commands/template_empty.py:348
Function
list_tasks
Lists tasks, optionally including completed tasks or sorting by a different field.
commands/template.py:734
Function
list_users
Lists all users, optionally filtered by role and sorted by specified field.
commands/template.py:219
Function
migrate_database
Migrates data from an old database to a new one, optionally doing a dry run.
commands/template_empty.py:246
Function
migrate_database
Migrates data from an old database to a new one, optionally doing a dry run.
commands/template.py:643
Function
parse_markdown_backticks
(str)
modules/utils.py:109
Function
ping
()
main_base_assistant.py:13
Function
ping
()
main_typer_assistant.py:14
Function
ping_server
Pings the server, optionally waiting for a response.
commands/template_empty.py:8
Function
ping_server
Pings the server, optionally waiting for a response.
commands/template.py:146
Function
process_text
Process user speech input
main_base_assistant.py:36
Function
process_text
(text)
main_typer_assistant.py:78
Method
process_text
Process text input and generate response
modules/base_assistant.py:44
Function
publish_update
Publishes an update to a specified release channel with optional notes.
commands/template_empty.py:297
Function
queue_task
Queues a task with a specified priority and optional delay.
commands/template_empty.py:323
Function
queue_task
Queues a task with a specified priority and optional delay.
commands/template.py:673
Function
remove_task
Removes a queued task by ID, optionally forcing removal without confirmation.
commands/template_empty.py:337
Function
remove_task
Removes a queued task by ID, optionally forcing removal without confirmation.
commands/template.py:703
Function
restore_data
Restores data from a backup file.
commands/template_empty.py:83
Function
restore_data
Restores data from a backup file.
commands/template.py:389
Function
search_logs
Searches for a keyword in a log file, optionally using case-sensitive mode.
commands/template_empty.py:272
Function
show_config
Shows the current configuration.
commands/template_empty.py:18
Function
show_config
Shows the current configuration from modules/assistant_config.py.
commands/template.py:165
Function
simulate_run
Simulates a scenario for a given number of cycles, optionally showing debug output.
commands/template_empty.py:170
Function
stats_by_date
Shows statistics for a specific date, optionally displaying raw data.
commands/template_empty.py:286
Function
summarize_logs
Summarizes log data from a specified path, limiting lines.
commands/template_empty.py:96
Function
summarize_logs
Summarizes log data from a specified path, limiting lines.
commands/template.py:418
Function
sync_remotes
Syncs with a remote repository, optionally forcing the operation.
commands/template_empty.py:157
Function
test_execute_basic_command
Test basic command execution
tests/execute_python_test.py:7
Function
test_execute_error_command
Test command execution with error
tests/execute_python_test.py:14
Function
test_execute_uv_python_error
Test uv python execution with error
tests/execute_python_test.py:47
Function
test_execute_uv_python_with_args
Test uv python execution with arguments
tests/execute_python_test.py:31
Function
test_execute_uv_python_with_file
Test uv python execution with a temporary python file
tests/execute_python_test.py:20
Function
test_fill_in_the_middle_prompt
Test fill-in-the-middle prompt with an SQL query example
tests/deepseek_test.py:18
Function
test_json_prompt
Test JSON response format
tests/deepseek_test.py:43
Function
test_mock_data_type
()
tests/data_types_test.py:4
Function
test_prefix_prompt
Test prefix-constrained prompt
tests/deepseek_test.py:51
Function
test_prefix_suffix_prompt
Test prefix and suffix constrained prompt
tests/deepseek_test.py:66
Function
test_prompt
Test basic prompt functionality
tests/deepseek_test.py:11
Function
to_json_file_pretty
(name: str, content: Union[Dict, List])
modules/utils.py:22
next →
1–100 of 105, ranked by callers