Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AutoPackAI/autopack
/ functions
Functions
130 in github.com/AutoPackAI/autopack
⨍
Functions
130
◇
Types & classes
22
↳
Endpoints
8
↓ 14 callers
Method
global_config
(cls)
autopack/pack_config.py:65
↓ 8 callers
Function
get_pack_details
(pack_id: str, remote=False)
autopack/api.py:15
↓ 7 callers
Function
find_or_create_autopack_dir
Try to find a suitable .autopack directory. Tries in this order: 1. Directory specified in environment variable AUTOPACK_DIR 2. Existing .auto
autopack/utils.py:23
↓ 6 callers
Function
get_pack
Get a pack based on its ID. Args: pack_id (str): The ID of the pack to fetch. remote (bool, Optional): If True, will make ne
autopack/get_pack.py:75
↓ 4 callers
Function
install_pack
(pack_id: str, quiet=True, config: PackConfig = PackConfig.global_config())
autopack/installation.py:86
↓ 4 callers
Method
run
Execute the _run function of the subclass, verifying the arguments. (Will eventually do callbacks or some such) Args: **kwargs (dict)
autopack/pack.py:60
↓ 4 callers
Function
try_get_pack
Get a pack based on its ID. Same as `get_pack` but does not raise an Exception. If there is a problem finding or loading a pack it will retur
autopack/get_pack.py:13
↓ 3 callers
Method
arun
Asynchronously execute the _arun function of the subclass, verifying the arguments. (Will eventually do callbacks or some such) Args:
autopack/pack.py:79
↓ 3 callers
Function
call_llm
Call the given LLM with the specified prompt. The function supports both callable LLMs and LLMs that are instances of the BaseChatModel cla
autopack/utils.py:190
↓ 3 callers
Method
create
(cls, **kwargs)
autopack/pack_config.py:79
↓ 3 callers
Function
get_all_installed_packs
Returns all of the packs that are currently installed
autopack/get_pack.py:47
↓ 3 callers
Method
init_filesystem_manager
(self, file_manager: type["FileManager"] = None)
autopack/pack_config.py:68
↓ 2 callers
Method
call_llm
(self, prompt: str)
autopack/pack.py:115
↓ 2 callers
Function
extract_unique_directory_name
(repo_url: str)
autopack/utils.py:184
↓ 2 callers
Function
functions_bulleted_list
(packs: list[PackResponse])
autopack/selection.py:14
↓ 2 callers
Function
get_all_pack_info
()
autopack/get_pack.py:33
↓ 2 callers
Function
install_dependency
(dependency: str, quiet=True)
autopack/installation.py:29
↓ 2 callers
Function
load_metadata_file
Return the parsed contents of the metadata file, returning an empty dict if not found or otherwise failed
autopack/utils.py:45
↓ 2 callers
Function
main
()
autopack/cli.py:27
↓ 2 callers
Function
pack_search
(query: str)
autopack/api.py:65
↓ 2 callers
Function
run_args_from_args_schema
(args_schema: type[BaseModel])
autopack/utils.py:126
↓ 2 callers
Method
set_global_config
Set the default global config to either a PackConfig object of your choice, or `None` to use the default.
autopack/pack_config.py:57
↓ 2 callers
Function
try_get_packs
Get a list of packs based on their IDs Args: pack_ids (list[str]): The IDs of the packs to fetch. quiet (bool, Optional): If
autopack/get_pack.py:54
↓ 2 callers
Method
validate_tool_args
Validate the arguments against the args_schema model. Args: kwargs (dict[str, Any]): The arguments to validate. Returns:
autopack/pack.py:129
↓ 1 callers
Method
_arun
(self, *args, **kwargs)
autopack/pack.py:105
↓ 1 callers
Method
_run
(self, *args, **kwargs)
autopack/pack.py:101
↓ 1 callers
Function
acall_llm
Asynchronously call the given LLM with the specified prompt. The function supports both callable LLMs and LLMs that are instances of the Ba
autopack/utils.py:216
↓ 1 callers
Method
acall_llm
(self, prompt: str)
autopack/pack.py:120
↓ 1 callers
Function
ask_to_install_dependencies
(dependencies: list[str], force=False, quiet=True)
autopack/installation.py:44
↓ 1 callers
Method
delete_file
Deletes a file from the virtual file system in RAM. Args: file_path (str): The path to the file to be deleted. Returns:
autopack/filesystem_emulation/ram_file_manager.py:48
↓ 1 callers
Function
fetch_pack_object
(pack_data: PackResponse)
autopack/utils.py:83
↓ 1 callers
Function
find_module
(pack_data: PackResponse)
autopack/utils.py:68
↓ 1 callers
Function
format_pack_to_openai_function
(pack: "Pack")
autopack/utils.py:108
↓ 1 callers
Function
get_pack_details_locally
(pack_id: str)
autopack/api.py:22
↓ 1 callers
Function
get_pack_details_remotely
(pack_id: str)
autopack/api.py:43
↓ 1 callers
Method
init_langchain_tool
(self)
autopack/pack.py:143
↓ 1 callers
Function
install_from_git
(pack_data: PackResponse, quiet=True)
autopack/installation.py:61
↓ 1 callers
Function
is_dependency_installed
(dependency: str)
autopack/installation.py:21
↓ 1 callers
Method
list_files
Lists all files in the specified directory in the virtual file system in RAM. Args: dir_path (str): The path to the directory to
autopack/filesystem_emulation/ram_file_manager.py:66
↓ 1 callers
Function
parse_args
()
autopack/cli.py:7
↓ 1 callers
Function
parse_selection_response
Parse the response from the LLM and extract pack IDs. The response is split by commas and newlines, and any arguments provided in the respon
autopack/selection.py:106
↓ 1 callers
Function
print_search
(query: str)
autopack/search.py:6
↓ 1 callers
Method
read_file
Reads a file from the virtual file system in RAM. Args: file_path (str): The path to the file to be read. Returns:
autopack/filesystem_emulation/ram_file_manager.py:15
↓ 1 callers
Function
select_packs
Given a user input describing the task they wish to accomplish, return a list of Pack IDs that the given LLM thinks will be suitable for this task
autopack/selection.py:68
↓ 1 callers
Function
select_packs_prompt
Generate a prompt for the pack selection process based on the task description and an optional function request. Args: packs: (list[
autopack/selection.py:43
↓ 1 callers
Function
update_metadata_file
(pack_id: str, pack_response: PackResponse)
autopack/installation.py:79
↓ 1 callers
Method
write_file
Writes to a file in the virtual file system in RAM. Args: file_path (str): The path to the file to be written to. con
autopack/filesystem_emulation/ram_file_manager.py:32
↓ 1 callers
Function
write_metadata_file
(data: dict[str, Any])
autopack/utils.py:60
Method
__init__
(self, **data)
autopack/pack.py:44
Method
__init__
(self, **kwargs)
autopack/langchain_wrapper.py:12
Method
__init__
(self, config: PackConfig = PackConfig.global_config())
autopack/filesystem_emulation/workspace_file_manager.py:15
Method
__init__
(self, config: PackConfig = PackConfig.global_config())
autopack/filesystem_emulation/filesystem_file_manager.py:15
Method
__init__
(self, config: PackConfig = PackConfig.global_config())
autopack/filesystem_emulation/ram_file_manager.py:11
Method
__init__
(self, config: "PackConfig" = None)
autopack/filesystem_emulation/file_manager.py:12
Method
_arun
(self, text: str)
tests/data/packs/summarization_pack.py:19
Method
_arun
(self, query: str)
tests/data/packs/noop.py:19
Method
_arun
(self, *args, **kwargs)
autopack/langchain_wrapper.py:22
Method
_run
(self, text: str)
tests/data/packs/summarization_pack.py:16
Method
_run
(self, query: str)
tests/data/packs/noop.py:16
Method
_run
(self, *args, **kwargs)
autopack/langchain_wrapper.py:19
Method
adelete_file
Deletes a file from the workspace directory on the local file system asynchronously. Args: file_path (str): The path to the file
autopack/filesystem_emulation/workspace_file_manager.py:106
Method
adelete_file
Deletes a file from the local file system asynchronously. Args: file_path (str): The absolute path to the file to be deleted.
autopack/filesystem_emulation/filesystem_file_manager.py:102
Method
adelete_file
(self, file_path: str)
autopack/filesystem_emulation/ram_file_manager.py:63
Method
adelete_file
(self, file_path: str)
autopack/filesystem_emulation/file_manager.py:38
Method
alist_files
Lists all files in the specified directory in the workspace directory on the local file system asynchronously. Args: dir_path (st
autopack/filesystem_emulation/workspace_file_manager.py:138
Method
alist_files
Lists all files in the specified directory on the local file system asynchronously. Args: dir_path (str): The absolute path to th
autopack/filesystem_emulation/filesystem_file_manager.py:134
Method
alist_files
(self, dir_path: str)
autopack/filesystem_emulation/ram_file_manager.py:87
Method
alist_files
(self, dir_path: str)
autopack/filesystem_emulation/file_manager.py:46
Method
aread_file
Reads a file from the workspace directory on the local file system asynchronously. Args: file_path (str): The path to the file to
autopack/filesystem_emulation/workspace_file_manager.py:38
Method
aread_file
Reads a file from the local file system asynchronously. Args: file_path (str): The absolute path to the file to be read.
autopack/filesystem_emulation/filesystem_file_manager.py:34
Method
aread_file
(self, file_path: str)
autopack/filesystem_emulation/ram_file_manager.py:29
Method
aread_file
(self, file_path: str)
autopack/filesystem_emulation/file_manager.py:22
Method
args
Turn the args schema into a dict that's easier to work with
autopack/pack.py:109
Method
automatically_install_dependencies
(self)
autopack/pack_config.py:85
Method
awrite_file
Writes to a file in the workspace directory on the local file system. Args: file_path (str): The path to the file to be written t
autopack/filesystem_emulation/workspace_file_manager.py:72
Method
awrite_file
Writes to a file on the local file system. Args: file_path (str): The absolute path to the file to be written to. con
autopack/filesystem_emulation/filesystem_file_manager.py:68
Method
awrite_file
(self, file_path: str, content: str)
autopack/filesystem_emulation/ram_file_manager.py:45
Method
awrite_file
(self, file_path: str, content: str)
autopack/filesystem_emulation/file_manager.py:30
Method
delete_file
Deletes a file from the workspace directory on the local file system. Args: file_path (str): The path to the file to be deleted,
autopack/filesystem_emulation/workspace_file_manager.py:90
Method
delete_file
Deletes a file from the local file system. Args: file_path (str): The absolute path to the file to be deleted. Returns:
autopack/filesystem_emulation/filesystem_file_manager.py:86
Method
delete_file
(self, file_path: str)
autopack/filesystem_emulation/file_manager.py:34
Method
filesystem_manager
(self)
autopack/pack.py:126
Function
format_packs_to_openai_functions
(packs: list["Pack"])
autopack/utils.py:104
Function
functions_bulleted_list
(packs: list[Union[PackResponse, type["Pack"]]])
autopack/utils.py:145
Function
functions_summary
(packs: list["Pack"])
autopack/utils.py:180
Function
go_to_tmpdir
(request)
tests/conftest.py:11
Function
installed_valid_pack
(mock_requests_get, pack_response_valid)
tests/test_get_pack.py:28
Method
is_single_input
(self)
autopack/langchain_wrapper.py:25
Method
list_files
Lists all files in the specified directory in the workspace directory on the local file system. Args: dir_path (str): The path to
autopack/filesystem_emulation/workspace_file_manager.py:122
Method
list_files
Lists all files in the specified directory on the local file system. Args: dir_path (str): The absolute path to the directory to
autopack/filesystem_emulation/filesystem_file_manager.py:118
Method
list_files
(self, dir_path: str)
autopack/filesystem_emulation/file_manager.py:42
Function
load_env
()
tests/conftest.py:22
Function
mock_allm
(text_in: str)
tests/test_pack_use.py:18
Function
mock_llm
(text_in: str)
tests/test_pack_use.py:8
Function
mock_requests_get
(mocker)
tests/conftest.py:37
Function
pack_response_invalid_class
(pack_response_valid)
tests/test_get_pack.py:45
Function
pack_response_invalid_path
(pack_response_valid)
tests/test_get_pack.py:38
Function
pack_response_valid
()
tests/test_get_pack.py:13
Method
read_file
Reads a file from the workspace directory on the local file system. Args: file_path (str): The path to the file to be read, relat
autopack/filesystem_emulation/workspace_file_manager.py:22
Method
read_file
Reads a file from the local file system. Args: file_path (str): The absolute path to the file to be read. Returns:
autopack/filesystem_emulation/filesystem_file_manager.py:18
next →
1–100 of 130, ranked by callers